ClimbsRocks / auto_ml

[UNMAINTAINED] Automated machine learning for analytics & production
http://auto-ml.readthedocs.io
MIT License
1.64k stars 310 forks source link

Error n_jobs >1 #426

Open ghk829 opened 5 years ago

ghk829 commented 5 years ago

I trained a model with parameters : model_names model_names=['GradientBoostingRegressor','RandomForestRegressor'] Then Error occured in

#predictor.py : line 42

  if m.im_self is None:
AttributeError: 'function' object has no attribute 'im_self'
ghk829 commented 5 years ago

I run this code


import os
os.environ['is_test_suite']="True"
from auto_ml import Predictor
from auto_ml.utils import get_boston_dataset
from auto_ml.utils_models import load_ml_model

# Load data
df_train, df_test = get_boston_dataset()

# Tell auto_ml which column is 'output'
# Also note columns that aren't purely numerical
# Examples include ['nlp', 'date', 'categorical', 'ignore']
#
column_descriptions = {
  'CHAS': 'output'

}

ml_predictor = Predictor(type_of_estimator='regressor', column_descriptions=column_descriptions)
ml_predictor.train(df_train,model_names=['GradientBoostingRegressor','RandomForestRegressor'])