Catboost: ImportError: cannot import name 'CatBoostRegressor'

Created on 24 Jul 2018  路  2Comments  路  Source: catboost/catboost

Problem: {After installing for first time the code ran. Then I closed and re-opened spyder and I got this error:
```from catboost import CatBoostRegressor
Traceback (most recent call last):

File "", line 1, in
from catboost import CatBoostRegressor

File "C:\Users\gkourogiorgas\Documents\MEGAsync\Demand Forecasting\catboost.py", line 33, in
from catboost import CatBoostRegressor

ImportError: cannot import name 'CatBoostRegressor'```}
catboost version: {0.9.1.1}
Operating System: {Win10 64bit}
CPU: {i7}

GPU: {integrated}

Most helpful comment

Never mind. The error was that I named the code file catboost.py and it was conflicting with the import statement

All 2 comments

Never mind. The error was that I named the code file catboost.py and it was conflicting with the import statement

Never mind. The error was that I named the code file catboost.py and it was conflicting with the import statement
Got the same issue, catboost.py caused the problem.

Was this page helpful?
0 / 5 - 0 ratings