ATOMModel
Convert an estimator to a model that can be ingested by ATOM. Note that only estimators that follow sklearn's API are compatible. Read more about using custom estimators in the user guide.
Parameters: |
estimator: estimator class or instance
acronym: str or None, optional (default=None)
fullname: str or None, optional (default=None)
needs_scaling: bool, optional (default=False) |
Returns: |
estimator: estimator Provided estimator with custom attributes for ATOM's pipeline. |
Example
from atom import ATOMRegressor, ATOMModel
from sklearn.linear_model import HuberRegressor
model = ATOMModel(HuberRegressor, name="hub", fullname="Huber")
atom = ATOMRegressor(X, y)
atom.run(model)
atom.hub.predict(X_new)