Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
1 Star 0 Fork 6

readerloop/MLflow

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (15)
Tags (16)
master
pr-template
disable_sagemaker_docker_build
branch-0.9
revert-968-notebook-link-query-params
readme-patch
branch-0.8
mateiz-jackson-databind
branch-0.7
h2o_model_snippets
pytorch_model_snippets
dbczumar-model-arg
java-client
branch-0.5
v0.5.2_release_branch
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.0
v0.7
v0.6.0
v0.5.2
v0.5.1
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
master
Branches (15)
Tags (16)
master
pr-template
disable_sagemaker_docker_build
branch-0.9
revert-968-notebook-link-query-params
readme-patch
branch-0.8
mateiz-jackson-databind
branch-0.7
h2o_model_snippets
pytorch_model_snippets
dbczumar-model-arg
java-client
branch-0.5
v0.5.2_release_branch
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.0
v0.7
v0.6.0
v0.5.2
v0.5.1
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (15)
Tags (16)
master
pr-template
disable_sagemaker_docker_build
branch-0.9
revert-968-notebook-link-query-params
readme-patch
branch-0.8
mateiz-jackson-databind
branch-0.7
h2o_model_snippets
pytorch_model_snippets
dbczumar-model-arg
java-client
branch-0.5
v0.5.2_release_branch
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.0
v0.7
v0.6.0
v0.5.2
v0.5.1
v0.5.0
v0.4.2
v0.4.1
v0.4.0
v0.3.0
v0.2.1
v0.2.0
MLflow
/
examples
/
hyperparam
contribute
Sync branch
See difference Through Pull Request Sync
Sync branch
Through Pull Request Sync
A Pull Request will be created to the current
branch and will be merged in to complete the sync
File empty ...
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

Hyperparameter Tuning Example

Example of how to do hyperparameter tuning with MLflow and some popular optimization libraries.

This example tries to optimize the RMSE metric of a Keras deep learning model on a wine quality dataset. The Keras model is fitted by the train entry point and has two hyperparameters that we try to optimize: learning-rate and momentum. The input dataset is split into three parts: training, validation, and test. The training dataset is used to fit the model and the validation dataset is used to select the best hyperparameter values, and the test set is used to evaluate expected performance and to verify that we did not overfit on the particular training and validation combination. All three metrics are logged with MLflow and you can use the MLflow UI to inspect how they vary between different hyperparameter values.

examples/hyperparam/MLproject has 4 targets:
  • train train simple deep learning model on the wine-quality dataset from our tutorial. It has 2 tunable hyperparameters: learning-rate and momentum. Contains examples of how Keras callbacks can be used for MLflow integration.
  • random perform simple random search over the parameter space.
  • gpyopt use Hyperopt to optimize hyperparameters.

All the hyperparameter targets take an optional experiment ID for training runs. If provided, training runs are logged under this experiment ID. This organizes the runs so that it is easy to view individual training runs and the hyperparameter runs separately.

Running this Example

You can run any of the targets as a standard MLflow run.

mlflow experiments create individual_runs

Creates experiment for individual runs and return its experiment ID.

mlflow experiments create hyper_param_runs

Creates an experiment for hyperparam runs and return its experiment ID.

mlflow run -e train --experiment-id <individual_runs_experiment_id> examples/hyperparam

Runs the Keras deep learning training with default parameters and log it in experiment 1.

mlflow run -e random --experiment-id <hyperparam_experiment_id> -P \
 training_experiment_id=<individual_runs_experiment_id> examples/hyperparam
mlflow run -e gpyopt --experiment-id <hyperparam_experiment_id> -P \
 training_experiment_id=<individual_runs_experiment_id> examples/hyperparam
mlflow run -e hyperopt --experiment-id <hyperparam_experiment_id> -P \
 training_experiment_id=<individual_runs_experiment_id> examples/hyperparam

Runs the hyperparameter tuning with either random search or GpyOpt or Hyperopt and log the results under hyperparam_experiment_id.

You can compare these results by using mlflow ui.

Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

MLflow 是由 Apache Spark 技术团队开源的一个机器学习平台,主打开放性: 开放接口:可与任意 ML 库、算法、部署工具或编程语言一起使用
Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/readerloop/MLflow.git
git@gitee.com:readerloop/MLflow.git
readerloop
MLflow
MLflow
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /