|
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
)
Protected Function InnerLearn(Of T) (
x As T(),
weights As Double(),
extractor As Func(Of T, TExtractor, IEnumerable(Of TPoint))
) As TModel
Request Example
View SourceParameters
- 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:
TModelThe trained model.
See Also