Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Python API #300

Merged
merged 12 commits into from
Oct 22, 2019
Merged

Adding Python API #300

merged 12 commits into from
Oct 22, 2019

Conversation

bouthilx
Copy link
Member

No description provided.

@bouthilx
Copy link
Member Author

Add python API

@bouthilx bouthilx force-pushed the feature/python_api branch 2 times, most recently from 51c2abf to 1c2d865 Compare October 21, 2019 16:22
@bouthilx bouthilx marked this pull request as ready for review October 21, 2019 22:10
@bouthilx
Copy link
Member Author

Why:

The definition of the storage config was slightly different in some
places and was also different that algo or database config.
Why:

We need to fetch the metadata in `build()` in a manner that is agnostic
to the API. The current implementation was expecting the commandline
arguments as inputs.

How:

Function arguments are now user and user_args. If user_args are None, do
nothing, else parse the commandline arguments to fetch script path and
rest of arguments and save in metadata.
Why:

Even when using the legacy backend, the Python API does not required
using a file to pass the results.
Why:

The python API gives the capacity to push results in storage. This
should be only allowed if the trial is currently reserved by the current
process.
Why:

The interface of config and python API was incoherent, since the former
required editing `producer.strategy` while the latter required editing
`strategy` directly. To be coherent with other objects in configuration
such as `algorthims` and `space`, we make `strategy` configurable at root.
@bouthilx bouthilx merged commit f989603 into Epistimio:develop Oct 22, 2019
This was referenced Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants