Class NearestNeighborModelEvaluator
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.PMML
Assembly: Syncfusion.PMML.UWP.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