DataPredict

API Reference - Models - AgglomerativeHierarchical

AgglomerativeHierarchical clustering groups similar data points into clusters based on distance, in a bottom-up approach.

Stored Model Parameters

Contains a matrix.

Constructors

new()

Create new model object. If any of the arguments are nil default argument values for that argument will be used.

AgglomerativeHierarchical.new(numberOfClusters: integer, distanceFunction: string, linkageFunction: string): ModelObject

Parameters:

Returns:

Functions

setParameters()

Set model’s parameters. When any of the arguments are nil previous argument values for that argument will be used.

AgglomerativeHierarchical:setParameters(numberOfClusters: integer, distanceFunction: string, linkageFunction: string)

Parameters:

train()

Train the model.

AgglomerativeHierarchical:train(featureMatrix: Matrix)

Parameters:

Returns:

predict()

Predict which cluster does it belong to for a given data.

AgglomerativeHierarchical:predict(featureMatrix: Matrix): integer, number

Parameters:

Returns:

Inherited From