drivendataorg / visiomel-melanoma-runtime

3 stars 16 forks source link

Please provide a environment to run the scoring script file #26

Closed johntiger1 closed 1 year ago

johntiger1 commented 1 year ago

https://github.com/drivendataorg/visiomel-melanoma-runtime/blob/df507909360246bc5a8e0852dd2a08724e8c1a38/README.md?plain=1#L154


Traceback (most recent call last):
  File "/Users/johnchen/self/visiomel-melanoma-runtime/scripts/score.py", line 4, in <module>
    from loguru import logger
ModuleNotFoundError: No module named 'loguru'```
ejm714 commented 1 year ago

The environment is specified in the environment-*.yml files in the runtime folder.

For example, to create a conda environment for a CPU machine, you'd run

conda env create -f runtime/environment-cpu.yml
source activate condaenv
ejm714 commented 1 year ago

There are also only three requirements for the scoring script (as you can see from the imports at the top of the script) so you could instead create a new environment and then simply pip install pandas, loguru, and scikit-learn.

johntiger1 commented 1 year ago

Got it that makes sense, thanks !