datarobot-oss / custom-models-action

Contains the implementation of GitHub actions to manage custom inference models and deployments using a CI/CD workflows
Other
8 stars 3 forks source link

[RAPTOR-9312] Add a missing mapping of Anomaly target type + refactoring #325

Closed zohar-mizrahi closed 1 year ago

zohar-mizrahi commented 1 year ago

This repository is public. Do not put here any private DataRobot or customer's data, code, datasets, model artifacts, .etc.

RATIONAL

When creating a new custom model, the action maps the TARGET_TYPE values from ModelSchema to values that are expected from the API. This done via MODEL_TARGET_TYPE_MAP in dr_client.py.

The Type map was missing a mapping for Anomaly Detection models. Thus, when using Anomaly Detection as the target type no value was passed to the API leading to an error.

CHANGES


CAUTION: changing any of the checkbox states will immediately terminate a previous run that is in progress.