AETROS' Python SDK allows you to communicate with AETROS server in your model script. You can send the progress of your model, custom metrics (shown as graphs in AETROS Trainer), a KPI, images or text logs.
You are now ready to use AETROS in your model.
In order to let your model communicate with AETROS Trainer you need to prepare three little steps
Log in and open AETROS Trainer. After loading you see at the very left bottom a button "CREATE MODEL". Press this button and enter a unique model name. Also specify as type "Python". "Python" should be used as soon as you have a model written in Python.
Open /user/settings/api and copy your API key. Make sure this key stays private.
Now its getting serious. We use then our model name we just created and our copied API key.
You can then execute your model via:
You can also make API_KEY available in the current terminal session, so you don't need to write it everytime.
export API_KEY="my-super-key" to your
~/.bash_profile` file if you want to have it available at any time (after restart, across new terminals).
This is the most basic integration of AETROS' Python SDK. You always need to call
aetros.backend.start_job with your model name and API key. After this call
you can start creating channels, sending log and update the progress.
You can also specify the API KEY directly in
aetros.backend.start_job(name, API_KEY), however you shouldn't do this if you want to run your model on
servers or if you save your model in a shared git repository. Do this only for prototyping or testing.
A more sophisticated integration could look like:
See at the left all sub sections of Python SDK to see how you can interact with AETROS Trainer within your model.