This commit is contained in:
Marvin Buss 2020-04-15 16:57:50 +02:00
Родитель 8071a654ab
Коммит 942acae077
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -101,7 +101,7 @@ A sample file can be found in this repository in the folder `.cloud/.azure`. The
| Parameter | Required | Allowed Values | Default | Description |
| ----------------------- | -------- | -------------- | ---------- | ----------- |
| model_file_name | | str | `"model.pkl"` | The file name for the model asset. You only have to specify the name of the model file (e.g. (`"model.pkl"`)) and not the path (e.g. `"outputs/model.pkl"`). The can take care of the path that was used to store the file. |
| model_name | | str | <REPO_NAME>-<BRANCH_NAME> |The name to register the model with. |
| model_name | | str | <REPO_NAME>-<BRANCH_NAME> |The name to register the model with. It must only consist of letters, numbers, dashes, periods, or underscores, start with a letter or number, and be between 1 and 32 characters long. |
| model_framework | | str: `"scikitlearn"`, `"onnx"`, `"tensorflow"`, `"keras"`, `"custom"` | `"custom"` | The framework of the registered model. |
| model_framework_version | | str | null | The framework version of the registered model. |
| model_tags | | dict: {"<your-run-tag-key>": "<your-run-tag-value>", ...} | null | An optional dictionary of key value tags to assign to the model. |

Просмотреть файл

@ -117,7 +117,7 @@ def main():
compare_metrics(
workspace=ws,
run=best_run,
model_name=parameters.get("model_name", default_model_name),
model_name=parameters.get("model_name", default_model_name)[:32],
metrics_max=parameters.get("metrics_max", []),
metrics_min=parameters.get("metrics_min", [])
)
@ -161,7 +161,7 @@ def main():
try:
model = best_run.register_model(
model_name=parameters.get("model_name", default_model_name),
model_name=parameters.get("model_name", default_model_name)[:32],
model_path=model_path,
tags=parameters.get("model_tags", None),
properties=parameters.get("model_properties", None),