giotto.ml.classifier package

Submodules

giotto.ml.classifier.manager module

giotto.ml.classifier.random_forest module

Randome Forest Classifer Module

class giotto.ml.classifier.random_forest.MLRandomForest(dictionary=None, serialized=False)[source]

Bases: giotto.ml.database.classifier.MLClassifier

Random Forest classifier class

This class train a Random Forest classifier using a dataset passed to the train function. Then, it makes a prediction using timeseries data given to the “predict” function. If you want to implement a classifier class using other models, replicate this class. The class have to implement two functions at least, train and predict.

extract_features(dataset)[source]

Extracts features from a given dataset

Extracts features with the preprocess function. The function is implemented in the MLClassifier class.

predict(timeseries)[source]

Makes a prediction using a pre-trained random forest classifier

train(dataset)[source]

Trains a random forest classifier

Module contents