This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def log_run(gridsearch: sklearn.GridSearchCV, experiment_name: str, model_name: str, run_index: int, conda_env, tags={}): | |
"""Logging of cross validation results to mlflow tracking server | |
Args: | |
experiment_name (str): experiment name | |
model_name (str): Name of the model | |
run_index (int): Index of the run (in Gridsearch) | |
conda_env (str): A dictionary that describes the conda environment (MLFlow Format) | |
tags (dict): Dictionary of extra data and tags (usually features) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kfp | |
@kfp.components.func_to_container_op | |
def print_func(param: int): | |
print(str(param)) | |
@kfp.components.func_to_container_op | |
def list_func(param: int) -> list: | |
return list(range(param)) |