h1st.core.ensemble module

class h1st.core.ensemble.StackEnsemble(models, ensembler)[source]

Bases: h1st.core.model.Model

__init__(models, ensembler)[source]

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

predict(input_data)[source]

Predicts output for input_data. The predicted class or predicted value of an input sample is estmiated prediction based on individual models prediction.

Parameters

input_data – dictionary with values is a dataframe of numpy array.

Returns

dictionary of predicted value/class. The key must be results and values is Pandas Dataframe or numpy array

train(prepared_data)[source]

Trains the StackEnsemble.

Parameters

prepared_data – Dictionary object contains train data, labels and validation data.

class h1st.core.ensemble.MultiOutputClassifierEnsemble(models)[source]

Bases: h1st.core.ensemble.StackEnsemble

__init__(models)[source]

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