Why we need to use jobs function to train models?

Why need to transfer code to .py file?

If you want to use jobs or schedules function to training model with different parameter in the same time. You can modify .ipynb code to .py code and help you run the code easily.

Tutorial

Prerequisite

  1. Finish writing the .ipynb code and want to transfer the code to .py file.
  2. Arrange the parameter we want to add into the code. Here, we use json format to input the parameter.

Step 1: Transfer .ipynb code to .py file.

Step 2: Use sys python package to setting parameter.

Step 3. Assign the job to run the script file.