predict
method predict(X, pipeline=None, verbose=None)
[source]
Transform new data through all transformers in the current branch and
return class predictions. If called from a trainer, the best model in
the pipeline (under the winner
attribute) is used. If called from a
model, that model is used. The estimator must have a predict
method.
Parameters: |
X: dict, list, tuple, np.ndarray or pd.DataFrame Transformers to use on the data before predicting.
verbose: int or None, optional (default=None) |
Returns: |
p: np.ndarray Predicted targets with shape=(n_samples,). |
Example
from atom import ATOMClassifier
atom = ATOMClassifier(X, y)
atom.run(["Tree", "AdaB"], metric="AP", n_calls=10)
# Make predictions on new data
predictions = atom.adab.predict(X_new)