public override string ToString() { var sb = new StringBuilder(); sb.AppendLine("Mining Task Specifications:"); sb.AppendLine(SubtreeType.ToString()); sb.AppendLine(MineOrdered ? "Ordered" : "Unordered"); if (MineFrequent) { sb.AppendLine("Frequent"); } if (MineClosed) { sb.AppendLine("Closed"); } if (MineMaximal) { sb.AppendLine("Maximal"); } sb.AppendLine(string.Format("SupportType=[{0}]", SupportType)); sb.AppendLine(string.Format("RootThreshold=[{0}]", ThresholdRoot)); sb.AppendLine(string.Format("TransactionThreshold=[{0}]", ThresholdTransaction)); return(sb.ToString()); }
protected MiningParams(MiningParams another) { subtreeType = another.SubtreeType; mineOrdered = another.MineOrdered; mineFrequent = another.MineFrequent; mineClosed = another.MineClosed; mineMaximal = another.MineMaximal; supportType = another.SupportType; thresholdRoot = another.ThresholdRoot; thresholdTransaction = another.ThresholdTransaction; separator = another.separator; backTrackSymbol = string.Copy(another.backTrackSymbol); }
public MiningParams( SubtreeType subtreeType, bool mineOrdered, bool mineFrequent, bool mineClosed, bool mineMaximal, SupportType supportType, int thresholdRoot, int thresholdTransaction, char separator, string backTrackSymbol) { switch (subtreeType) { case SubtreeType.Induced: this.subtreeType = subtreeType; break; default: throw new NotSupportedException("subtreeType"); } if (string.IsNullOrEmpty(backTrackSymbol)) { throw new ArgumentNullException("backTrackSymbol"); } this.mineOrdered = mineOrdered; this.mineFrequent = mineFrequent; this.mineClosed = mineClosed; this.mineMaximal = mineMaximal; this.supportType = supportType; this.thresholdRoot = thresholdRoot; this.thresholdTransaction = thresholdTransaction; this.separator = separator; this.backTrackSymbol = string.Copy(backTrackSymbol); }