openml-labs / gama

An automated machine learning tool aimed to facilitate AutoML research.
https://openml-labs.github.io/gama/master/
Apache License 2.0
96 stars 31 forks source link

KeyError: 'ignore' when running example #179

Closed hanafimajidd closed 2 years ago

hanafimajidd commented 2 years ago

Received below after running example in colab:

DEBUG:gama:Removing StreamHandlers registered by previous GAMA instance(s). INFO:gama.gama:Using GAMA version 21.0.1. INFO:gama.gama:INIT:GamaClassifier(scoring=neg_log_loss,regularize_length=True,max_pipeline_length=None,random_state=None,max_total_time=180,max_eval_time=None,n_jobs=None,max_memory_mb=None,verbosity=30,search=AsyncEA(),post_processing=BestFitPostProcessing(),output_directory=gama_7c14b52a-399d-43da-b8a2-75451b99789b,store=nothing,goal=simplicity) DEBUG:gama.gama:n_jobs defaulted to 1 INFO:gama.utilities.generic.timekeeper:START: preprocessing default Starting fit which will take roughly 3 minutes.

KeyError Traceback (most recent call last) in 10 automl = GamaClassifier(max_total_time=180, store="nothing") 11 print("Starting fit which will take roughly 3 minutes.") ---> 12 automl.fit(X_train, y_train) 13 14 label_predictions = automl.predict(X_test)

6 frames /usr/local/lib/python3.7/dist-packages/category_encoders/one_hot.py in _fit(self, X, y, **kwargs) 115 'value': 'value', 116 'indicator': 'return_nan', --> 117 }[self.handle_missing] 118 self.ordinal_encoder = OrdinalEncoder( 119 verbose=self.verbose,

KeyError: 'ignore'

PGijsbers commented 2 years ago

It looks like you are using an outdated version of gama. Upgrading to the latest version (22.0.0) should resolve this issue.