lore_sa.bbox.AbstractBBox
- class lore_sa.bbox.AbstractBBox(classifier)[source]
Generic Black Box class witch provides two sklearn-like methods.
pass
Methods
__init__
(classifier)model
()Provides the bbox.
predict
(sample_matrix)Wrap of sklearn predict method, that predict the class labels for the provided data.
predict_proba
(sample_matrix)Wrap of sklearn predict_proba method, that return probability estimates for the test data.
- abstract predict(sample_matrix: list)[source]
Wrap of sklearn predict method, that predict the class labels for the provided data.
- Parameters
sample_matrix – {array-like, sparse matrix} of shape (n_queries, n_features) samples.
- Returns
ndarray of shape (n_queries, n_classes), or a list of n_outputs of such arrays if n_outputs > 1.
- abstract predict_proba(sample_matrix: list)[source]
Wrap of sklearn predict_proba method, that return probability estimates for the test data.
- Parameters
sample_matrix – {array-like, sparse matrix} of shape (n_queries, n_features) samples
- Returns
ndarray of shape (n_queries, n_classes), or a list of n_outputs of such arrays if n_outputs > 1.