Decision Tree (Linq) Expression Creator.
コード例 #1
0
ファイル: DecisionTree.cs プロジェクト: colinnuk/accord
        /// <summary>
        ///   Creates an <see cref="Expression">Expression Tree</see> representation
        ///   of this decision tree, which can in turn be compiled into code.
        /// </summary>
        ///
        /// <returns>A tree in the form of an expression tree.</returns>
        ///
        public Expression <Func <double[], int> > ToExpression()
        {
            DecisionTreeExpressionCreator compiler = new DecisionTreeExpressionCreator(this);

            return(compiler.Create());
        }
コード例 #2
0
ファイル: DecisionTree.cs プロジェクト: xyicheng/Accord
 /// <summary>
 ///   Creates an <see cref="Expression">Expression Tree</see> representation
 ///   of this decision tree, which can in turn be compiled into code.
 /// </summary>
 /// 
 /// <returns>A tree in the form of an expression tree.</returns>
 /// 
 public Expression<Func<double[], int>> ToExpression()
 {
     DecisionTreeExpressionCreator compiler = new DecisionTreeExpressionCreator(this);
     return compiler.Create();
 }