Skip to content

Commit

Permalink
Issue #356, Default Telemetry (Off) (#619)
Browse files Browse the repository at this point in the history
* Added framework parameter to opt out of MLNet-Telemetry by default.
  • Loading branch information
mcnojo authored Apr 26, 2024
1 parent b90cd9b commit d5a90a8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frameworks/MLNet/exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def run(dataset: Dataset, config: TaskConfig):
train_time_in_seconds = config.max_runtime_seconds
sub_command = config.type

# Opt-out of Telemetry via framework parameter
MLDOTNET_CLI_TELEMETRY_OPTOUT = config.framework_params.get('_telemetry_disabled', 'False')
os.environ['MLDOTNET_CLI_TELEMETRY_OPTOUT'] = MLDOTNET_CLI_TELEMETRY_OPTOUT

# set up MODELBUILDER_AUTOML
MODELBUILDER_AUTOML = config.framework_params.get('automl_type', 'NNI')
os.environ['MODELBUILDER_AUTOML'] = MODELBUILDER_AUTOML
Expand Down
2 changes: 2 additions & 0 deletions resources/frameworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ MLNet:
version: 'latest'
description: |
MLNET.CLI is a automated machine learning tool implemented by ml.net.
params:
_telemetry_disabled: ‘True'

MLPlan:
version: 'stable'
Expand Down

0 comments on commit d5a90a8

Please sign in to comment.