com.datumbox.framework.core.machinelearning.clustering
Class HierarchicalAgglomerative
- java.lang.Object
-
- com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractModeler<MP,TP>
-
- com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractClusterer<HierarchicalAgglomerative.Cluster,HierarchicalAgglomerative.ModelParameters,HierarchicalAgglomerative.TrainingParameters>
-
- com.datumbox.framework.core.machinelearning.clustering.HierarchicalAgglomerative
-
- All Implemented Interfaces:
- Savable, Parallelizable, PredictParallelizable, Trainable<HierarchicalAgglomerative.ModelParameters,HierarchicalAgglomerative.TrainingParameters>, TrainParallelizable, java.lang.AutoCloseable
public class HierarchicalAgglomerative extends AbstractClusterer<HierarchicalAgglomerative.Cluster,HierarchicalAgglomerative.ModelParameters,HierarchicalAgglomerative.TrainingParameters> implements PredictParallelizable, TrainParallelizable
This class implements the Hierarchical Agglomerative clustering algorithm supporting different Linkage and Distance methods. References: http://nlp.stanford.edu/IR-book/html/htmledition/hierarchical-agglomerative-clustering-1.html http://php-nlp-tools.com/posts/faster-hierarchical-clustering.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classHierarchicalAgglomerative.Clusterstatic classHierarchicalAgglomerative.ModelParametersBase class for every ModelParameter class in the framework.static classHierarchicalAgglomerative.TrainingParametersThe AbstractTrainingParameters class stores the parameters that can be changed before training the algorithm.-
Nested classes/interfaces inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractClusterer
AbstractClusterer.AbstractCluster, AbstractClusterer.AbstractModelParameters<CL extends AbstractClusterer.AbstractCluster>
-
Nested classes/interfaces inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer
AbstractTrainer.AbstractTrainingParameters
-
Nested classes/interfaces inherited from interface com.datumbox.framework.core.machinelearning.common.interfaces.PredictParallelizable
PredictParallelizable.Prediction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description PredictParallelizable.Prediction_predictRecord(Record r)Takes a single record, makes a prediction using the model and returns the result wrapped in the Prediction tuple.booleanisParallelized()Getter for the parallelized parameter.voidsetParallelized(boolean parallelized)Setter for the parallelized parameter.-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractClusterer
getClusters
-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.modelers.AbstractModeler
predict
-
Methods inherited from class com.datumbox.framework.core.machinelearning.common.abstracts.AbstractTrainer
close, delete, fit, getModelParameters, getTrainingParameters, save
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.datumbox.framework.core.machinelearning.common.interfaces.PredictParallelizable
_predictDatasetParallel, _predictDatasetParallel
-
-
-
-
Method Detail
-
isParallelized
public boolean isParallelized()
Getter for the parallelized parameter.- Specified by:
isParallelizedin interfaceParallelizable- Returns:
-
setParallelized
public void setParallelized(boolean parallelized)
Setter for the parallelized parameter.- Specified by:
setParallelizedin interfaceParallelizable
-
_predictRecord
public PredictParallelizable.Prediction _predictRecord(Record r)
Takes a single record, makes a prediction using the model and returns the result wrapped in the Prediction tuple. The method assumes that the KnowledgeBase is be loaded.- Specified by:
_predictRecordin interfacePredictParallelizable- Returns:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG