Skip to content

[AssertionError in fit_pipeline() when pipeline_options is not None #463

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

Closed
1 of 3 tasks
PhMueller opened this issue Aug 8, 2022 · 2 comments · Fixed by #466
Closed
1 of 3 tasks

[AssertionError in fit_pipeline() when pipeline_options is not None #463

PhMueller opened this issue Aug 8, 2022 · 2 comments · Fixed by #466
Labels
bug Something isn't working

Comments

@PhMueller
Copy link

Hi guys,

I was trying out your fantastic tool and found a small bug.

  • I'm submitting a ...
    • bug report
    • feature request
    • support request => Please do not submit support request here, see note at the top of this template.

Issue Description

  • An exception will be raised when specifying the argument pipeline_options in the fit_pipeline function.

  • Steps To Reproduce

    1. api = TabularRegressionTask(...)
    2. api.fit_pipeline(..., pipeline_options={'early_stopping': 100})

Problem/Solution:

In api/base_task Line 1635-1638

pipeline_options = self.pipeline_options.copy().update(pipeline_options) if pipeline_options is not None \
    else self.pipeline_options.copy()

assert pipeline_options is not None

The update() function returns None.

Replacing it with the following would remove the error:

pipeline_options = {**self.pipeline_option, **pipeline_options} if pipeline_options is not None \
    else self.pipeline_options.copy()

assert pipeline_options is not None

Current workaround:

api.set_pipeline_config(**{'early_stopping': 50})
api.fit_pipeline(...) # do not specify `pipeline_options` here. 

Your Local environment

  • AutoPytorch Version: 0.2 (current master)
@ravinkohli
Copy link
Contributor

Hey, thanks for reporting this bug. We'll incorporate this in the next release which should be released very soon.

@ravinkohli ravinkohli added the bug Something isn't working label Aug 8, 2022
@ravinkohli ravinkohli linked a pull request Aug 9, 2022 that will close this issue
10 tasks
@ravinkohli
Copy link
Contributor

Hi, we have fixed this issue in the latest release. You can install it using pip install autoPyTorch==0.2.1. I am closing this issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants