AxeldeRomblay / MLBox

MLBox is a powerful Automated Machine Learning python library.

Home Page:https://mlbox.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

module mlbox.preprocessing not found error when my mlbox.py in the same folder

Nithanaroy opened this issue · comments

When I have mlbox.py file in the same folder,

from mlbox.preprocessing import *
from mlbox.optimisation import *
from mlbox.prediction import *

throws an error saying module mlbox.preprocessing not found. On changing the filename of that python file to something else, it works fine. However, it was a little confusion why the above lines were executing the code from my mlbox.py file.

commented

Hello @Nithanaroy, when you run the import command in python you can both import from a package or from a script. That's why here it is confusing because you don't have a preprocessing function in your script mlbox.py...