Class NearestNeighborModelEvaluator
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.PMML
Assembly: Syncfusion.PMML.Base.dll
Syntax
public class NearestNeighborModelEvaluator : PMMLEvaluator, IDisposable
Constructors
NearestNeighborModelEvaluator(PMMLDocument)
Creates an Instance for NearestNeighborModelEvaluator
Declaration
public NearestNeighborModelEvaluator(PMMLDocument pmmlDocument)
Parameters
Type | Name | Description |
---|---|---|
PMMLDocument | pmmlDocument | PMML file |
Methods
GetResult(Object, IModelOptions)
Returns predicted result. Evaluates the given input against the scoring procedure of the KNN model and returns the predicted result.
Declaration
public override PredictedResult GetResult(object obj, IModelOptions modelOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object data |
IModelOptions | modelOptions | model options values, always null |
Returns
Type | Description |
---|---|
PredictedResult | Returns the predicted result |
Overrides
Implements
System.IDisposable