8000 AttributeError: 'NoneType' object has no attribute 'seed_model' · Issue #1 · Yatoom/arbok · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AttributeError: 'NoneType' object has no attribute 'seed_model' #1

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

Open
ajoeajoe opened this issue Jul 10, 2019 · 0 comments
Open

AttributeError: 'NoneType' object has no attribute 'seed_model' #1

ajoeajoe opened this issue Jul 10, 2019 · 0 comments

Comments

@ajoeajoe
Copy link
ajoeajoe commented Jul 10, 2019
import openml
from arbok import AutoSklearnWrapper, TPOTWrapper
openml.config.apikey = 'my key'
task = openml.tasks.get_task(31)
dataset = task.get_dataset()
# Get the AutoSklearn wrapper and pass parameters like you would to AutoSklearn
clf = AutoSklearnWrapper(
    time_left_for_this_task=3600, per_run_time_limit=360
)
# Execute the task
run = openml.runs.run_model_on_task(clf,task)
#run.publish()
#print('URL for run: %s/run/%d' % (openml.config.server, run.run_id))

----------------------Get the following Errors:

AttributeError Traceback (most recent call last)
in ()
12
13 # Execute the task
---> 14 run = openml.runs.run_model_on_task(clf,task)
15 #run.publish()
16

1 frames
/usr/local/lib/python3.6/dist-packages/openml/runs/functions.py in run_model_on_task(model, task, avoid_duplicate_runs, flow_tags, seed, add_local_measures, upload_flow, return_flow)
104 seed=seed,
105 add_local_measures=add_local_measures,
--> 106 upload_flow=upload_flow,
107 )
108 if return_flow:

/usr/local/lib/python3.6/dist-packages/openml/runs/functions.py in run_flow_on_task(flow, task, avoid_duplicate_runs, flow_tags, seed, add_local_measures, upload_flow)
172 task, flow = flow, task
173
--> 174 flow.model = flow.extension.seed_model(flow.model, seed=seed)
175
176 # We only need to sync with the server right now if we want to upload the flow,

AttributeError: 'NoneType' object has no attribute 'seed_model'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0