Skip to content

Conversation

@CurtisColwell
Copy link
Contributor

Fixed a typo in the predict.py example and added what worked for me to the TOML example

Fixed a typo in the predict.py example and added what worked for me to the TOML example
specific_parameters.executable = "/home/user/miniconda3/condabin/conda"
specific_parameters.args = "run -n qptuna python predict.py"
specific_parameters.property = "predictions"
Add this to the TOML file under an ExternalProcess.endpoint:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure why this needs to be changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it makes it a bit more clear. Your call

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The mechanisms of running the script directly with a Python interpretor or through conda run are very different. The latter ensures that the environment is properly set up while the former may break e.g. because an environment variable is not set. Direct runs are faster but make only sense when you are sure that it is going to work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to know, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants