Click or drag to resize
Accord.NET (logo)

BagOfWordsLearn Method (String, Double)

Learns a model that can map the given inputs to the desired outputs.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.7.0
Syntax
public BagOfWords Learn(
	string[] x,
	double[] weights = null
)
Request Example View Source

Parameters

x
Type: SystemString
The model inputs.
weights (Optional)
Type: SystemDouble
The weight of importance for each input sample.

Return Value

Type: BagOfWords
A model that has learned how to produce suitable outputs given the input data x.
See Also