lale.lib.lale.sample_based_voting module

class lale.lib.lale.sample_based_voting.SampleBasedVotingImpl(hyperparams=None)[source]

Bases: object

set_meta_data(meta_data_dict)[source]
transform(X, end_index_list=None)[source]

Treat the input as labels and use the end_index_list to produce labels using voting. Note that here, X contains the label and no y is accepted.

Parameters
  • X ([type]) – X is actually the labels from the previous component in a pipeline.

  • end_index_list ([type], optional) – For each output label to be produced, end_index_list is supposed to contain the index of the last element corresponding to the original input.

Returns

[description]

Return type

[type]