openml-labs / gama

An automated machine learning tool aimed to facilitate AutoML research.
https://openml-labs.github.io/gama/master/
Apache License 2.0
92 stars 30 forks source link

Import warnings #20

Closed joaquinvanschoren closed 5 years ago

joaquinvanschoren commented 5 years ago

On import, a lot of warnings are thrown:

anaconda3/lib/python3.6/site-packages/deap/tools/_hypervolume/pyhv.py:33: ImportWarning: Falling back to the python version of hypervolume module. Expect this to be very slow.
  "module. Expect this to be very slow.", ImportWarning)
anaconda3/lib/python3.6/importlib/_bootstrap.py:219: ImportWarning: can't resolve package from __spec__ or __package__, falling back on __name__ and __path__
  return f(*args, **kwds)

Is there something we can do about this? Is this specific to my anaconda setup? Especially the first warning doesn't look so good.

PGijsbers commented 5 years ago

Thank you for the notice. I don't personally get the message on a fresh Ubuntu install. Looks like I should enforce DEAP >= 1.2.1 as per deap#240. Can you verify that your current DEAP version is 1.2.0 and that the error is not there after updating to v1.2.1?

joaquinvanschoren commented 5 years ago

I'm running deap 1.2.2

macwin029:gama joa$ pip show deap
Name: deap
Version: 1.2.2
Summary: Distributed Evolutionary Algorithms in Python
Home-page: https://www.github.com/deap
Author: deap Development Team
Author-email: deap-users@googlegroups.com
License: LGPL
Location: /Users/joa/anaconda3/lib/python3.6/site-packages
Requires:
Required-by: gama, TPOT
PGijsbers commented 5 years ago

Seems like other people on the mentioned issue also had to use various other ways to make the error disappear. Seeing that it is a DEAP specific issue, and the genetic_programming branch was planning to remove the dependency on DEAP anyway (currently only the NSGA-II selection is used from the DEAP package), I think I won't fix this.

joaquinvanschoren commented 5 years ago

Ok. When do you expect genetic_programming to be merged?

PGijsbers commented 5 years ago

A week or two. While it does not change the way gama works, the back-end changes are substantial so I do want to run additional tests to make sure it did not break anything or degrades performance.

PGijsbers commented 5 years ago

merged. DEAP is no longer a dependency.