-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer Transformers Not Working #1360
Comments
TPOT can only import from modules. To get this to work you first have to put your custom class in a module. For example
where myclassfile.py contains your custom class. For example myclassfile.py
init.py
myscript.py
(This is not necessary in TPOT2 which uses a different API) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TPOT does not work with custom transformers. When I ran to optimization below, I got the warning that "Warning: Normalization2 is not available and will not be used by TPOT."
class Normalization2(BaseEstimator, TransformerMixin):
def init(self, method='minmax', feature_range=(0, 1)):
self.method = method
self.feature_range = feature_range
self.min_ = None
self.max_ = None
}
spot = TPOTRegressor(
generations=100,
population_size=100,
cv=3
config_dict=config,
verbosity=2,
n_jobs=-1,
max_eval_time_mins=10
)
The text was updated successfully, but these errors were encountered: