Accord.MachineLearning.Boosting.Learners.DecisionStump.Compute C# (CSharp) Method

Compute() public method

Computes the output class label for a given input.
public Compute ( double inputs ) : int
inputs double The input vector.
return int
        public int Compute(double[] inputs)
        {
            return inputs[featureIndex] < threshold ? sign : -sign;
        }