dlpy.layers.Clustering

class dlpy.layers.Clustering(n_clusters, alpha=1.0, name=None, src_layers=None, **kwargs)

Bases: dlpy.layers.Layer

Clustering layer

Parameters:
n_clusters: int

Specifies the number of clusters for the cluster layer.

alpha: double, optional

Specifies the degree of freedom of the t-distribution kernel for the cluster layer.

name : string, optional

Specifies the name of the layer.

src_layers : Layers, optional

Specifies the layer directed to this layer.

Returns:
Clustering
__init__(n_clusters, alpha=1.0, name=None, src_layers=None, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(n_clusters[, alpha, name, src_layers]) Initialize self.
count_instances()
format_name([block_num, local_count]) Format the name of the layer
get_number_of_instances()
to_model_params() Convert the model configuration to CAS action parameters