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

Some examples don't work #65

Closed
qo4on opened this issue May 5, 2021 · 1 comment
Closed

Some examples don't work #65

qo4on opened this issue May 5, 2021 · 1 comment
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@qo4on
Copy link

qo4on commented May 5, 2021

I'm a new to DeepTables. How can I fix them?
automl:

      9 best_trial = hdt.get_best_trial()
---> 10 print(f'best reward:{best_trial.reward}')

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

batch_trainer and batch_trainer-cv:

----> 2 from deeptables.utils import consts, dt_logging, batch_trainer

/usr/local/lib/python3.7/dist-packages/deeptables/utils/dart_early_stopping.py
----> 5 from lightgbm.compat import range_
ImportError: cannot import name 'range_' from 'lightgbm.compat' (/usr/local/lib/python3.7/dist-packages/lightgbm/compat.py)

dt_cross_validation:

roc_auc_score(y_train, oof_proba)
ValueError: bad input shape (627, 2)
@jackguagua jackguagua added the documentation Improvements or additions to documentation label May 18, 2021
@lixfz
Copy link
Collaborator

lixfz commented May 24, 2021

@qo4on

  1. To run automl example, update the lastest notebook code from the master branch pls.
  2. To run batch_trainer-cv example, downgrade lightgbm to 3.1.1 pls. We'll remove the dependency in future.

@lixfz lixfz closed this as completed Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants