automl / ParameterImportance

Parameter Importance Analysis Tool
http://www.ml4aad.org/
BSD 3-Clause "New" or "Revised" License
76 stars 19 forks source link

Missing installation #2

Closed mlindauer closed 7 years ago

mlindauer commented 7 years ago

Since we cannot install the package right now, you have to run it in the root directory of the repo. You should use the following (ugly) code in evaluate.py to enable running in other directories:

import sys
import os
import inspect
cmd_folder = os.path.realpath(os.path.abspath(os.path.split(inspect.getfile( inspect.currentframe() ))[0]))
cmd_folder = os.path.realpath(os.path.join(cmd_folder, ".."))
if cmd_folder not in sys.path:
    sys.path.insert(0,cmd_folder)
AndreBiedenkapp commented 7 years ago

Tanks. Fixed that