Click or drag to resize
Accord.NET (logo)

BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInputInnerLearnT Method

Generic learn method implementation that should work for any input type. This method is useful for re-using code between methods that accept Bitmap, BitmapData, UnmanagedImage, filenames as strings, etc.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
protected TModel InnerLearn<T>(
	T[] x,
	double[] weights,
	Func<T, TExtractor, IEnumerable<TPoint>> extractor
)
Request Example View Source

Parameters

x
Type: T
The inputs.
weights
Type: SystemDouble
The weights.
extractor
Type: SystemFuncT, TExtractor, IEnumerableTPoint
A function that knows how to process the input and extract features from them.

Type Parameters

T
The input type.

Return Value

Type: TModel
The trained model.
See Also