Skip to content

Commit 29c8d48

Browse files
authored
making classes public (Azure#31922)
1 parent 810b23c commit 29c8d48

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/constants/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
MonitorModelType,
2929
MonitorFeatureType,
3030
MonitorDatasetContext,
31+
MonitorTargetTasks,
3132
)
3233

3334
TabularTrainingMode.__module__ = __name__
@@ -57,5 +58,6 @@
5758
"MonitorModelType",
5859
"MonitorFeatureType",
5960
"MonitorDatasetContext",
61+
"MonitorTargetTasks",
6062
"IPProtectionLevel",
6163
]

sdk/ml/azure-ai-ml/azure/ai/ml/entities/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
UsernamePasswordConfiguration,
5252
AccessKeyConfiguration,
5353
ApiKeyConfiguration,
54+
NoneCredentialConfiguration,
5455
)
5556
from ._datastore.adls_gen1 import AzureDataLakeGen1Datastore
5657
from ._datastore.azure_storage import AzureBlobDatastore, AzureDataLakeGen2Datastore, AzureFileDatastore
@@ -165,6 +166,7 @@
165166
PackageInputPathVersion,
166167
)
167168
from ._monitoring.alert_notification import AlertNotification
169+
from ._monitoring.compute import ServerlessSparkCompute
168170
from ._monitoring.definition import MonitorDefinition
169171
from ._monitoring.input_data import MonitorInputData
170172
from ._monitoring.schedule import MonitorSchedule
@@ -176,6 +178,9 @@
176178
CustomMonitoringSignal,
177179
MonitorFeatureFilter,
178180
DataSegment,
181+
FADProductionData,
182+
ProductionData,
183+
ReferenceData,
179184
)
180185
from ._monitoring.target import MonitoringTarget
181186
from ._monitoring.thresholds import (
@@ -184,6 +189,8 @@
184189
PredictionDriftMetricThreshold,
185190
FeatureAttributionDriftMetricThreshold,
186191
CustomMonitoringMetricThreshold,
192+
CategoricalDriftMetrics,
193+
NumericalDriftMetrics,
187194
)
188195

189196
from ._workspace_hub.workspace_hub import WorkspaceHub, WorkspaceHubConfig
@@ -397,6 +404,7 @@
397404
"Route",
398405
"AccessKeyConfiguration",
399406
"AlertNotification",
407+
"ServerlessSparkCompute",
400408
"ApiKeyConfiguration",
401409
"MonitorDefinition",
402410
"MonitorInputData",
@@ -408,14 +416,20 @@
408416
"CustomMonitoringSignal",
409417
"MonitorFeatureFilter",
410418
"DataSegment",
419+
"FADProductionData",
420+
"ProductionData",
421+
"ReferenceData",
411422
"MonitoringTarget",
412423
"DataDriftMetricThreshold",
413424
"DataQualityMetricThreshold",
414425
"PredictionDriftMetricThreshold",
415426
"FeatureAttributionDriftMetricThreshold",
416427
"CustomMonitoringMetricThreshold",
428+
"CategoricalDriftMetrics",
429+
"NumericalDriftMetrics",
417430
"DataCollector",
418431
"IntellectualProperty",
419432
"DeploymentCollection",
420433
"RequestLogging",
434+
"NoneCredentialConfiguration",
421435
]

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_monitoring/signals.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,6 @@ class MonitoringSignal(RestTranslatableMixin):
288288
289289
This class should not be instantiated directly. Instead, use one of its subclasses.
290290
291-
:keyword target_dataset: The target dataset definition for monitor input.
292-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
293291
:keyword baseline_dataset: The baseline dataset definition for monitor input.
294292
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
295293
:keyword metric_thresholds: The metric thresholds for the signal.
@@ -351,8 +349,6 @@ class DataSignal(MonitoringSignal):
351349
352350
This class should not be instantiated directly. Instead, use one of its subclasses.
353351
354-
:keyword target_dataset: The target dataset definition for monitor input.
355-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
356352
:keyword baseline_dataset: The baseline dataset definition for monitor input.
357353
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
358354
:keyword features: The features to include in the signal.
@@ -484,8 +480,6 @@ class PredictionDriftSignal(MonitoringSignal):
484480
:vartype type: str
485481
:keyword baseline_dataset: The dataset to calculate drift against.
486482
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
487-
:keyword target_dataset: The dataset for which drift will be calculated.
488-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
489483
:keyword metric_thresholds: A list of metrics to calculate and their associated thresholds
490484
:paramtype metric_thresholds: list[~azure.ai.ml.entities.PredictionDriftMetricThreshold]
491485
:keyword alert_enabled: Whether or not to enable alerts for the signal. Defaults to True.
@@ -548,8 +542,6 @@ class DataQualitySignal(DataSignal):
548542
549543
:ivar type: The type of the signal. Set to "data_quality" for this class.
550544
:vartype type: str
551-
:keyword target_dataset: The data for which quality will be calculated.
552-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
553545
:keyword baseline_dataset: The data to calculate quality against.
554546
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
555547
:keyword metric_thresholds: A list of metrics to calculate and their
@@ -632,8 +624,6 @@ class ModelSignal(MonitoringSignal):
632624
633625
This class should not be instantiated directly. Instead, use one of its subclasses.
634626
635-
:keyword target_dataset: The data for which quality will be calculated.
636-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
637627
:keyword baseline_dataset: The data to calculate quality against.
638628
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
639629
:keyword metric_thresholds: A list of metrics to calculate and their
@@ -717,8 +707,6 @@ class FeatureAttributionDriftSignal(RestTranslatableMixin):
717707
718708
:ivar type: The type of the signal. Set to "feature_attribution_drift" for this class.
719709
:vartype type: str
720-
:keyword target_dataset: The data for which drift will be calculated.
721-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
722710
:keyword baseline_dataset: The data to calculate drift against.
723711
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
724712
:keyword metric_thresholds: A list of metrics to calculate and their
@@ -774,8 +762,6 @@ def _from_rest_object(cls, obj: RestFeatureAttributionDriftMonitoringSignal) ->
774762
class ModelPerformanceSignal(ModelSignal):
775763
"""Model performance signal.
776764
777-
:keyword target_dataset: The data for which performance will be calculated.
778-
:paramtype target_dataset: ~azure.ai.ml.entities.TargetDataset
779765
:keyword baseline_dataset: The data to calculate performance against.
780766
:paramtype baseline_dataset: ~azure.ai.ml.entities.MonitorInputData
781767
:keyword metric_thresholds: A list of metrics to calculate and their

0 commit comments

Comments
 (0)