C# Class numl.Supervised.KNN.KNNGenerator

A knn generator.
Inheritance: Generator
Datei anzeigen Open project: sethjuarez/numl

Public Methods

Method Description
Generate ( Matrix X, Vector y ) : IModel

Generate model based on a set of examples.

KNNGenerator ( int k = 5 ) : System

Constructor.

Method Details

Generate() public method

Generate model based on a set of examples.
public Generate ( Matrix X, Vector y ) : IModel
X Matrix The Matrix to process.
y numl.Math.LinearAlgebra.Vector The Vector to process.
return IModel

KNNGenerator() public method

Constructor.
public KNNGenerator ( int k = 5 ) : System
k int (Optional) the int to process.
return System