Click or drag to resize
Accord.NET (logo)

BalancedKMeansLearn Method

Learns a model that can map the given inputs to the desired outputs. Note: the model created by this function will not be able to produce balanced clusterings. To retrieve the balanced labels, check the Labels property of this class after calling this function.

Namespace:  Accord.MachineLearning
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
public override KMeansClusterCollection Learn(
	double[][] x,
	double[] weights = null
Request Example View Source


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

Return Value

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


IUnsupervisedLearningTModel, TInput, TOutputLearn(TInput, Double)
See Also