Skip to content

Latest commit

 

History

History
83 lines (44 loc) · 3.44 KB

Kale-Katib-Project.md

File metadata and controls

83 lines (44 loc) · 3.44 KB

LAB / PROJECT: KALE (Kubeflow Automated PipeLines Engine) and KATIB (AutoML: Finding Best Hyperparameter Values)

This lab/project shows:

  • how to use KALE and KATIB in a project.

Prerequisite

Steps

  • Create a new notebook server pod and connect:

    image

  • Run Terminal to download examples:

    image

  • Clone Kale Examples:

git clone https://github.com/kubeflow-kale/kale
  • Open the ipynb file (kale/examples/openvaccine-kaggle-competition/open-vaccine.ipynb)

  • Run the cell "pip install -r requirements.txt" to install requirements

    image

  • Then, after installing required packages, restart the kernel.

    image

  • Open the KALE section from left and enable KALE

    image

  • After opening KALE feature, it is seen that each cells are tagged with steps (e.g. imports, pipeline-parameters, etc.)

    image

  • At the end of the notebook, add new cell with "print(validation_loss)" and change the tag (cell-type) "Pipeline Metrics"

    image

  • Enable KATIB:

    image

  • After opening KATIB setting parameters:

    image

    image

  • Run "Compile and Run KATIB Job", this will run KALE and KATIB:

    image

  • After running, click "View" button:

    image

  • We can see the hyperparameter and trials:

    image

  • After waiting some time to finish all trials to find best hyperparameters:

    image

    image

  • In the "Run" section, it can be seen that pipeline is completed and details can be reachable clicking on the each block step:

    image

References