Click or drag to resize
Accord.NET (logo)

KModesTLearn Method

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.8.0
Syntax
public KModesClusterCollection<T> Learn(
	T[][] x,
	double[] weights = null
)
Request Example View Source

Parameters

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

Return Value

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

Implements

IUnsupervisedLearningTModel, TInput, TOutputLearn(TInput, Double)
Exceptions
ExceptionCondition
ArgumentNullExceptionpoints
ArgumentExceptionNot enough points. There should be more points than the number K of clusters.
See Also