Skip to content
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

cannot import name 'TabularPrediction' #2

Open
galievaz opened this issue Jun 3, 2021 · 2 comments
Open

cannot import name 'TabularPrediction' #2

galievaz opened this issue Jun 3, 2021 · 2 comments

Comments

@galievaz
Copy link

galievaz commented Jun 3, 2021

Hi,
in first, thank you for providing of library, it's realy useful.
When is executing training job in Sagemaker (code-free-automl), there is import error:

Traceback (most recent call last):
File "autogluon-tab-with-test.py", line 13, in
from autogluon import TabularPrediction as task
ImportError: cannot import name 'TabularPrediction'

I guess that's why upgrade of new release of autogluon.
How can I resolve this?
Thanks

@azdaly
Copy link

azdaly commented Aug 4, 2021

Yep! Having the same issue - this shows that TabularPrediction has been deprecated in favor for TabularDataset, TabularPredictor. I'll circle back if I successfully update the code!

@edgarinvillegas
Copy link

edgarinvillegas commented Feb 15, 2022

Here my solution:

  1. Untar sourcedir.tar.gz
  2. Edit autogluon-tab-with-test.py
    Replace
    os.system('pip install autogluon')
    by
    os.system('pip install autogluon==0.0.15 autogluon.tabular "mxnet<2.0.0"')
  3. Tar again to sourcedir.tar.gz
  4. Upload sourcedir.tar.gz to s3 as indicated in the instructions.

The next train job will now work succesfully.

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

3 participants