예제 #1
0
 public InputTransform(DataSection dataSec)
 {
     string[] fields = dataSec.Name.Split(':');
     this.inputID = int.Parse(fields[1]);
     for (int i = 0; i < dataSec.Data.Length; i++)
     {
         if (dataSec.Data[i].StartsWith("Name="))
         {
             fields = dataSec.Data[i].Split('=');
             this.ftrName = fields[1];
         }
         else if (dataSec.Data[i].StartsWith("Transform="))
         {
             fields = dataSec.Data[i].Split('=');
             this.funcName = fields[1];
             this.transformFunc = TransformFunction.Create(this.funcName, dataSec.Data, i + 1);
         }
     }
 }
예제 #2
0
 public InputTransform(InputTransform inTransform)
 {
     this.ftrName = inTransform.ftrName;
     this.funcName = inTransform.funcName;
     this.inputID = inTransform.inputID;
     this.transformFunc = (TransformFunction)inTransform.transformFunc.Clone();
 }
예제 #3
0
 public InputTransform(DTNode[] dtNodes, int inID)
 {
     this.ftrName = "AnchorMostFrequent";
     this.funcName = "DecisionTree";
     this.inputID = inID;
     this.transformFunc = new DecisionTreeTransform(dtNodes);
 }