paris-saclay-cds / ramp-workflow

Toolkit for building predictive workflows on top of pydata (pandas, scikit-learn, pytorch, keras, etc.).
https://paris-saclay-cds.github.io/ramp-docs/
BSD 3-Clause "New" or "Revised" License
68 stars 42 forks source link

Error when running `ramp-test` #218

Closed glemaitre closed 4 years ago

glemaitre commented 4 years ago

We are seeking for ./problem.py while we should preprend the path to the submission kit. Otherwise running ramp-test will fail if we are not in the kit directory which is annoying in ramp-board for the dispatcher.

lucyleeow commented 4 years ago

I can't seem to replicate the problem. We are looking in <ramp_kit_dir>/problem.py for the problem file:

def assert_read_problem(ramp_kit_dir='.'):
    # giving a random name to the module so it passes looped tests
    return import_module_from_source(
        os.path.join(ramp_kit_dir, 'problem.py'), 'problem'
    )

I can run:

ramp-test --ramp-kit-dir './iris' --ramp-data-dir './iris' --ramp-submission-dir './iris/submissions'

from outside the kit dir and it works. You do have to specify the data dir and submission dir, but I assume this was to offer flexibility, in case the submissions and data are not in the same dir as the kit dir. @glemaitre

glemaitre commented 4 years ago

Uhm I might have mess-up then