/// <summary> /// Predicts the target for a new instance of the data using the algorithm's trained model. /// </summary> /// <param name="instance">New instance</param> /// <returns>Prediction</returns> public double Predict(InsightVector instance) { return Predict(instance.ToRowMatrix())[0]; }
/// <summary> /// Classifies a new instance of the data using the algorithm's trained model. /// </summary> /// <param name="instance">New instance</param> /// <returns>Classification</returns> public int Classify(InsightVector instance) { return Classify(instance.ToRowMatrix())[0]; }