Jobs

Assuming that you have already a project created and initialized, and you uploaded your code containing a file prepare_data.py that does some preprocessing of your data. Of course you can call this file directly from your experiments, but that will lead to basically doing the same operation for all experiments.

Updating the polyaxonfile.yml

Running a job is very similar to running an experiment, in the sense that you need to have a polyaxonfile and code to run.

The polyaxonfile will define the environment requirements needed to run your job.

---
...

build
  image: tensorflow/tensorflow:1.4.1-py3
  build_steps:
    - pip install scikit-learn

run:
  cmd: python3 prepare_data.py

More details

For more details about the run section check the run section reference

Running a job

To run this polyaxonfile execute

$ polyaxon run -f my_polyaxonfile.yml

Job 1 was created.

More details

For more details about this command please run polyaxon run --help, or check the command reference

Checking the jobs of a project

We can check that the project has now a job creted. For that we can use Polyaxon dashboard or Polyaxon CLI,

$ polyaxon project jobs

More details

For more details about this command please run polyaxon job --help, or check the command reference