lale.lib.lale.sample_based_voting module¶
- class lale.lib.lale.sample_based_voting.SampleBasedVoting(*args, _lale_trained=False, _lale_impl=None, **kwargs)¶
Bases:
TrainedIndividualOp
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.
This documentation is auto-generated from JSON schemas.
- transform(X, y=None)¶
Transform the data.
- Parameters
X (array of items : Any) – Labels from the previous component in a pipeline.
end_index_list (Any, 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
result
- Return type
array of items : Any