Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
83a137e
Add dotnet-api product slug to sample metadata script (#34706)
azure-sdk Mar 8, 2024
1923e0d
[Perf] corehttp - updating async stream upload httpx test (#34674)
swathipil Mar 8, 2024
9b96ce5
Remove defunct user from CODEOWNERS (#34707)
JimSuplizio Mar 8, 2024
256e783
Sync .github/workflows directory with azure-sdk-tools for PR 7845 (#3…
azure-sdk Mar 8, 2024
ee767c2
Update Prepare-Release.ps1 to handle only one previous release (#34708)
azure-sdk Mar 8, 2024
87bca57
remove upper bound in setup.py (#34402)
xiangyan99 Mar 8, 2024
23121a5
Add myself/mccoy to the tools directory codeowners (#34524)
scbedd Mar 8, 2024
b4a18bc
Update github-event-processor version (#34720)
azure-sdk Mar 11, 2024
9edbe4a
Add date for release 1.14.0 (#34710)
YusakuNo1 Mar 11, 2024
f2cb087
Update GitHubEventProcessor to 20240311.2 (#34723)
azure-sdk Mar 11, 2024
3e3d34b
[Monitor] Pylint updates (#34429)
pvaneck Mar 11, 2024
51b9eab
[Cosmos] fixing bug with not passing kwargs/ response_hook in `create…
simorenoh Mar 11, 2024
91fc86f
Remove experimental annotation from provision network (#34690)
fredms Mar 11, 2024
36e3080
[Storage] Add Peter as Storage CODEOWNER (#34701)
jalauzon-msft Mar 11, 2024
428c2b6
Add live metrics collection of requests/dependencies/exceptions (#34673)
lzchen Mar 11, 2024
5170e10
Skip env processing on matrix import step (#34728)
azure-sdk Mar 11, 2024
4207b9f
Remaining livetest matrices, `ci.yml` uses `image.yml` variables (#34…
scbedd Mar 11, 2024
8f8ec65
[Monitor Query] Update swagger (#34614)
pvaneck Mar 12, 2024
07995c5
[EventGrid] api events (#34514)
l0lawrence Mar 12, 2024
863ccdd
[Cosmos] archboard review item - update batch error description (#34473)
simorenoh Mar 12, 2024
dc7fc74
[ml] Enable strict sphinx check (#34688)
diondrapeck Mar 12, 2024
59e7d23
update typespec-python (#34736)
iscai-msft Mar 12, 2024
f12ac3a
[Monitor] Improve docs regarding sovereign clouds (#33196)
pvaneck Mar 12, 2024
5a2d195
Support for file contents in simulated messages (#34726)
nagkumar91 Mar 12, 2024
bf5fc50
Increment package version after release of azure-eventgrid (#34737)
azure-sdk Mar 12, 2024
c3c285e
Turn on EnforceMaxLifeOfIssues (#34731)
ronniegeraghty Mar 12, 2024
b3411ac
Add process/cpu live metrics (#34735)
lzchen Mar 13, 2024
5cff7c9
Update FastAPI sample with instrumentation (#34738)
jeremydvoss Mar 13, 2024
40cd480
APIView - send package version param for automatic API review request…
azure-sdk Mar 13, 2024
f12a5b9
Python SDK : Communication messages (#33946)
Shamkh Mar 13, 2024
04ad332
Data Collector Data field string fix (#34739)
TajiHarrisMicrosoft Mar 13, 2024
add1a48
code and test (#34375)
azure-sdk Mar 14, 2024
bc6f787
feat: support set environment variables on flow.dag.yaml (#34450)
elliotzh Mar 14, 2024
65af272
update typespec-python vesrion to 0.22.4 (#34765)
msyyc Mar 14, 2024
b4a0143
[WebPubSub] Update 1.1.0 (#34552)
xingsy97 Mar 14, 2024
5dde263
upgrade autorest.python to 6.13.7 (#34766)
msyyc Mar 14, 2024
d8597c2
Send pacakge version for Python api review (#34746)
praveenkuttappan Mar 14, 2024
071609d
[Cosmos] Last review comments (#34759)
annatisch Mar 14, 2024
dbef227
Live metric feature detection for statsbeat (#34752)
lzchen Mar 14, 2024
43646c0
Simulator bugfixes (#34753)
nagkumar91 Mar 14, 2024
138fdde
fix sb tests imports (#34772)
kashifkhan Mar 14, 2024
97b34d7
Sync eng/common directory with azure-sdk-tools for PR 7877 (#34774)
azure-sdk Mar 14, 2024
2d44f8d
Refactor statsbeat constants (#34742)
lzchen Mar 14, 2024
c6dc6af
[Cosmos] update versions for stable release (#34775)
simorenoh Mar 14, 2024
feeefb0
Resolve failing `storage` build (#34740)
scbedd Mar 14, 2024
f0a7ed4
add using system account support (#34754)
xiangyan99 Mar 14, 2024
9c4e540
[AppConfig] Support monitor page changes by page etag (#34346)
Mar 15, 2024
6bed7da
[AutoRelease] t2-compute-2024-03-14-25862(can only be merged by SDK o…
azure-sdk Mar 15, 2024
21d0ed4
[Monitor Query] Rename MetricsClient param (#34760)
pvaneck Mar 15, 2024
72d40f6
Sync eng/common directory with azure-sdk-tools for PR 7892 (#34789)
azure-sdk Mar 15, 2024
1c64ce7
Increment package version after release of azure-appconfiguration (#3…
azure-sdk Mar 15, 2024
645f4a6
[Identity Broker] Propagate enable support logging (#34780)
pvaneck Mar 16, 2024
8fb3490
Link to Python's test guidance in manage_recordings.py (#34794)
mccoyp Mar 16, 2024
75c3683
[AutoRelease] t2-confluent-2024-03-01-81493(can only be merged by SDK…
azure-sdk Mar 18, 2024
f59a585
[AutoRelease] t2-batch-2024-02-29-16578(can only be merged by SDK own…
azure-sdk Mar 18, 2024
9556fa3
[AutoRelease] t2-nginx-2024-03-01-05314(can only be merged by SDK own…
azure-sdk Mar 18, 2024
c1d6214
[AutoRelease] t2-search-2024-02-28-86521(can only be merged by SDK ow…
azure-sdk Mar 18, 2024
26137ce
code and test (#34733)
azure-sdk Mar 18, 2024
400c0c2
[AutoRelease] t2-cosmosdbforpostgresql-2024-02-28-31084(can only be m…
azure-sdk Mar 18, 2024
a51127d
[AutoRelease] t2-communication-2024-02-28-44167(can only be merged by…
azure-sdk Mar 18, 2024
3b74339
[AutoRelease] t2-mobilenetwork-2024-02-21-79731(can only be merged by…
azure-sdk Mar 18, 2024
d3f4840
code and test (#34594)
azure-sdk Mar 18, 2024
a68e182
[AutoRelease] t2-newrelicobservability-2024-02-19-32263(can only be m…
azure-sdk Mar 18, 2024
aa03c97
code and test (#34802)
azure-sdk Mar 18, 2024
5934b3c
Enable mgmt from tsp (#34805)
msyyc Mar 18, 2024
2e3eb58
[Cache] Fix the wrong cache when local file input in a pipeline (#34743)
lalala123123 Mar 18, 2024
e153238
Create api review script changes to add a param to set release tag (#…
azure-sdk Mar 18, 2024
6272970
Title samples readme (#34813)
jeremydvoss Mar 18, 2024
f9c0eda
Users/singankit/model config optional (#34812)
singankit Mar 18, 2024
47f7df4
[ServiceBus] update ValueError to AMQPConnectionError for closed conn…
swathipil Mar 18, 2024
b22e5cc
doc: Add ivar comments for scheduletriggerresult (#34818)
kdestin Mar 18, 2024
cec4fdc
remove all references to docker (#34811)
azure-sdk Mar 18, 2024
0b70d6e
Add feature store provision role assignment location (#34646)
runhli Mar 18, 2024
9814f59
fix: Expose DataAsset class publicly (#34814)
kdestin Mar 19, 2024
6f5a43b
Update cosmos-sdk-client.yml (#34824)
ChenxiJiang333 Mar 19, 2024
6cd9716
Add content_type for aio (#34826)
xingsy97 Mar 19, 2024
571f231
[AutoRelease] t2-apimanagement-2024-03-19-08399(can only be merged by…
azure-sdk Mar 19, 2024
9194dc1
[AutoRelease] t2-servicelinker-2024-03-07-57247(can only be merged by…
azure-sdk Mar 19, 2024
ae4b125
Generate APIView using eng common script (#34817)
praveenkuttappan Mar 19, 2024
b89c0a2
Simulator quiet run and progress bar (#34809)
nagkumar91 Mar 19, 2024
ac364fb
Fix Weekly Test Failures (#34823)
scbedd Mar 19, 2024
4ec2cb8
Bump the proxy version to the last one resolving mac timeout issues (…
azure-sdk Mar 19, 2024
b71f012
fix: Fix typing of include_spark parameter (#34815)
kdestin Mar 19, 2024
53ba5aa
modify built-in chat eval flow: (#34511)
qusongms Mar 19, 2024
1986997
setting up testing for both preview and GA API versions for AOAI (#34…
kristapratico Mar 19, 2024
9cf64ed
[Monitor Query] Remove audience docstring (#34819)
pvaneck Mar 19, 2024
9ea120e
rename use_operating_system_account to use_default_broker_account (#3…
xiangyan99 Mar 19, 2024
510318f
repair communication livetests (#34842)
scbedd Mar 19, 2024
e5ac2c0
remove inaccurate keep alive logging (#34793)
swathipil Mar 20, 2024
cfcb683
Update apiview_reqs.txt (#34749)
tjprescott Mar 20, 2024
576393d
[SB] Link-Detach (#34820)
l0lawrence Mar 20, 2024
9151697
Increment package version after release of azure-cosmos (#34779)
azure-sdk Mar 20, 2024
58810f9
[SB] Update Changelog (#34856)
kashifkhan Mar 20, 2024
4714399
Update azure-sdk-build-tools Repository Resource Refs in Yaml files (…
azure-sdk Mar 20, 2024
2a9b1f2
increase live test timeout + fixes for GA version (#34861)
kristapratico Mar 20, 2024
006b249
Increment package version after release of azure-servicebus (#34865)
azure-sdk Mar 20, 2024
4360768
[AutoRelease] t2-netapp-2024-02-29-57016(can only be merged by SDK ow…
azure-sdk Mar 21, 2024
9cb2276
code and test (#34851)
azure-sdk Mar 21, 2024
bec65d2
[AutoRelease] t2-quantum-2024-03-07-62962(can only be merged by SDK o…
azure-sdk Mar 21, 2024
c5c596f
[AutoRelease] t2-workloadssapvirtualinstance-2024-02-20-43646(can onl…
azure-sdk Mar 21, 2024
41556d7
[AutoRelease] t2-storageactions-2024-03-07-00002(can only be merged b…
azure-sdk Mar 21, 2024
91eb194
[AutoRelease] t2-notificationhubs-2024-03-21-57186(can only be merged…
azure-sdk Mar 21, 2024
b8ec1af
remove outdated useless folder (#34872)
msyyc Mar 21, 2024
ed7cbc7
Edit pass on Monitor Query README (#34864)
scottaddie Mar 21, 2024
b5c8353
add sample code about extracting table cell values (#34686)
TakaValley Mar 21, 2024
6c9ae15
Bump typing-extensions dependency to >= 4.6.0 to fix import name issu…
YaroBear Mar 21, 2024
fc939b3
[EventHub] Fix race condition when buffered mode is enabled (#34712)
falcaopetri Mar 21, 2024
5e297c0
Update SUPPORT.md (#34885)
ronniegeraghty Mar 21, 2024
c083eab
Update network settings docs (#34848)
nemanjarajic Mar 21, 2024
a15e312
add sys data to properties (#34549)
nemanjarajic Mar 21, 2024
484c233
Sanitize OAuth requests/responses throughout SDK (#34866)
mccoyp Mar 21, 2024
b564177
Conversation turn fix (#34886)
nagkumar91 Mar 22, 2024
4b0a56d
Fix de/serialization bugs in FeatureFlagConfigurationSetting (#34852)
Mar 22, 2024
def777e
fix: upgrade dependent image from docker.io to mcr (#34825)
elliotzh Mar 22, 2024
a3039b1
Increment package version after release of azure-appconfiguration (#3…
azure-sdk Mar 22, 2024
c931abf
Update CODEOWNERS (#34860)
tjprescott Mar 22, 2024
9ee4a7d
Increment package version after release of azure-purview-datamap (#34…
azure-sdk Mar 22, 2024
ee6635b
Increment package version after release of azure-healthinsights-radio…
azure-sdk Mar 22, 2024
37eb477
Increment package version after release of azure-messaging-webpubsubc…
azure-sdk Mar 22, 2024
b8011c9
Enforce strict checking during the Sphinx documentation build process…
Lakicar95 Mar 22, 2024
cab510b
33601: Fix Sphinx error for azure-maps-geolocation (#34875)
Lakicar95 Mar 22, 2024
d58e28f
Enforce strict checking during the Sphinx documentation build process…
Lakicar95 Mar 22, 2024
a9b8513
update canary test resource region (#34884)
swathipil Mar 22, 2024
2ae2928
Update conftest.py (#34906)
msyyc Mar 25, 2024
fa016ac
update docs on buffered producer timeout (#34912)
kashifkhan Mar 25, 2024
e5a65e0
[EH] Update README Link (#34911)
kashifkhan Mar 25, 2024
fcaa29d
Update Azure AD and docs.microsoft.com links (#34913)
scottaddie Mar 25, 2024
ebe2d01
[Text Translation] Add support for AAD authentication (#34883)
MikeyMCZ Mar 25, 2024
8d51344
Compute Instance OS patching and Release quota (#34563)
nemanjarajic Mar 25, 2024
ba48e9c
add pipeline info to properties in batch-deployments (#34905)
nemanjarajic Mar 25, 2024
5e42039
[python] Update CODEOWNERS for AppConfig service (#34773)
avanigupta Mar 25, 2024
ce9bea7
CPM Python Package Release failure fix (#34893)
Shamkh Mar 25, 2024
3a4636e
adding max_simulation_results for sync call (#34923)
nagkumar91 Mar 26, 2024
34ff73f
[AutoRelease] t2-sphere-2024-03-26-73149(can only be merged by SDK ow…
azure-sdk Mar 26, 2024
9973a20
Qunsong/qa eval groundedness service (#34797)
qusongms Mar 26, 2024
b03b460
update built-in chat eval flow (#34896)
qusongms Mar 26, 2024
67cdd8b
Increment package version after release of azure-communication-messag…
azure-sdk Mar 26, 2024
7c4c062
Batch Deployment fix (#34925)
nemanjarajic Mar 26, 2024
df2d397
Allow replace_dev_reqs to pull from prebuilt wheels (#34924)
jalauzon-msft Mar 26, 2024
352c191
[Batch] Data plane SDK v14.2.0 (#34898)
cRui861 Mar 26, 2024
391fee8
update codeowner for search (#34938)
xiangyan99 Mar 26, 2024
ec78666
Support all developer tools for user-based auth in tests (#34927)
mccoyp Mar 26, 2024
bea2d61
Call GetDocsMsDevLanguageSpecificPackageInfoFn if it's defined (#34943)
azure-sdk Mar 26, 2024
b07db72
ensure integration build still runs (#34944)
scbedd Mar 26, 2024
157226e
[Storage] Fix `datetime` parsing docstring (#34926)
vincenttran-msft Mar 26, 2024
0527e86
[skip ci] Delete azure-devtools and deps/references
mccoyp Mar 19, 2024
773cb29
[Storage] [Blob] Fixed next pylint errors (#34945)
weirongw23-msft Mar 27, 2024
28a603a
Update number lookup feature from GA to Preview (#34547)
ericasp16 Mar 27, 2024
91018f4
[AutoRelease] t2-iotfirmwaredefense-2024-03-07-08506(can only be merg…
azure-sdk Mar 27, 2024
8215247
update dependency (#34934)
msyyc Mar 27, 2024
805820d
fix pipeline (#34956)
msyyc Mar 27, 2024
9d08ae8
add dependency (#34957)
msyyc Mar 27, 2024
4d603b9
CodeGen from PR 26644 in Azure/azure-rest-api-specs
Mar 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[ml] Enable strict sphinx check (Azure#34688)
* Remove Optional type annotation from get() methods

* Remove duplicate overloads

* Fix sphinx errors

* Fix indentation

* Turn on strict sphinx check

* Implicitly expose search_space and _credentials classes to avoid duplicate object exposures

* Add deprecation warning message for imports and update CHANGELOG

* Update formatting

* Ignore mypy error
  • Loading branch information
diondrapeck authored Mar 12, 2024
commit dc7fc742907a1a5469eee75350d09c469856cdbb
16 changes: 16 additions & 0 deletions sdk/ml/azure-ai-ml/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@

### Other Changes

- The following classes will still be able to be imported from `azure.ai.ml`, but the import is deprecated and emits a warning. Instead, please import them from `azure.ai.ml.entities`.
- `AmlTokenConfiguration`
- `ManagedIdentityConfiguration`
- `UserIdentityConfiguration`
- The following classes will still be able to be imported from `azure.ai.ml.entities`, but the import is deprecated and emits a warning. Instead, please import them from `azure.ai.ml.sweep`.
- `Choice`
- `Uniform`
- `LogUniform`
- `QLogUniform`
- `QUniform`
- `QLogNormal`
- `QNormal`
- `LogNormal`
- `Normal`
- `Randint`

## 1.14.0 (2024-03-11)

### Features Added
Expand Down
37 changes: 33 additions & 4 deletions sdk/ml/azure-ai-ml/azure/ai/ml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

import logging
from typing import Any, Optional

# from .entities._builders.parallel_func import parallel
from azure.ai.ml.entities._inputs_outputs import Input, Output
Expand All @@ -14,7 +15,6 @@
from ._version import VERSION
from .entities._builders.command_func import command
from .entities._builders.spark_func import spark
from .entities._credentials import AmlTokenConfiguration, ManagedIdentityConfiguration, UserIdentityConfiguration
from .entities._job.distribution import MpiDistribution, PyTorchDistribution, RayDistribution, TensorFlowDistribution
from .entities._load_functions import (
load_batch_deployment,
Expand Down Expand Up @@ -52,9 +52,6 @@
"PyTorchDistribution",
"TensorFlowDistribution",
"RayDistribution",
"ManagedIdentityConfiguration",
"AmlTokenConfiguration",
"UserIdentityConfiguration",
"load_batch_deployment",
"load_batch_endpoint",
"load_component",
Expand All @@ -77,3 +74,35 @@
]

__version__ = VERSION


# Allow importing these types for backwards compatibility


def __getattr__(name: str):
requested: Optional[Any] = None

if name == "AmlTokenConfiguration":
from .entities._credentials import AmlTokenConfiguration

requested = AmlTokenConfiguration
if name == "ManagedIdentityConfiguration":
from .entities._credentials import ManagedIdentityConfiguration

requested = ManagedIdentityConfiguration
if name == "UserIdentityConfiguration":
from .entities._credentials import UserIdentityConfiguration

requested = UserIdentityConfiguration

if requested:
if not getattr(__getattr__, "warning_issued", False):
logging.warning(
" %s will be removed from the azure.ai.ml namespace in a future release."
" Please use the azure.ai.ml.entities namespace instead.",
name,
)
__getattr__.warning_issued = True # type: ignore[attr-defined]
return requested

raise AttributeError(f"module 'azure.ai.ml' has no attribute {name}")
84 changes: 62 additions & 22 deletions sdk/ml/azure-ai-ml/azure/ai/ml/entities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
# pylint: disable=naming-mismatch
__path__ = __import__("pkgutil").extend_path(__path__, __name__)

import logging
from typing import Any, Optional

from azure.ai.ml._restclient.v2022_10_01.models import CreatedByType
from azure.ai.ml._restclient.v2022_10_01_preview.models import UsageUnit

Expand Down Expand Up @@ -138,18 +141,6 @@
from ._job.spark_job import SparkJob
from ._job.spark_job_entry import SparkJobEntry, SparkJobEntryType
from ._job.spark_resource_configuration import SparkResourceConfiguration
from ._job.sweep.search_space import (
Choice,
LogNormal,
LogUniform,
Normal,
QLogNormal,
QLogUniform,
QNormal,
QUniform,
Randint,
Uniform,
)
from ._monitoring.alert_notification import AlertNotification
from ._monitoring.compute import ServerlessSparkCompute
from ._monitoring.definition import MonitorDefinition
Expand Down Expand Up @@ -325,16 +316,6 @@
"ParallelComponent",
"CommandComponent",
"SparkComponent",
"Choice",
"Normal",
"LogNormal",
"QNormal",
"QLogNormal",
"Randint",
"Uniform",
"QUniform",
"LogUniform",
"QLogUniform",
"ResourceRequirementsSettings",
"ResourceSettings",
"AssignedUserConfiguration",
Expand Down Expand Up @@ -472,3 +453,62 @@
"RequestLogging",
"NoneCredentialConfiguration",
]

# Allow importing these types for backwards compatibility


def __getattr__(name: str):
requested: Optional[Any] = None

if name == "Choice":
from ..sweep import Choice

requested = Choice
if name == "LogNormal":
from ..sweep import LogNormal

requested = LogNormal
if name == "LogUniform":
from ..sweep import LogUniform

requested = LogUniform
if name == "Normal":
from ..sweep import Normal

requested = Normal
if name == "QLogNormal":
from ..sweep import QLogNormal

requested = QLogNormal
if name == "QLogUniform":
from ..sweep import QLogUniform

requested = QLogUniform
if name == "QNormal":
from ..sweep import QNormal

requested = QNormal
if name == "QUniform":
from ..sweep import QUniform

requested = QUniform
if name == "Randint":
from ..sweep import Randint

requested = Randint
if name == "Uniform":
from ..sweep import Uniform

requested = Uniform

if requested:
if not getattr(__getattr__, "warning_issued", False):
logging.warning(
" %s will be removed from the azure.ai.ml.entities namespace in a future release."
" Please import from the azure.ai.ml.sweep namespace instead.",
name,
)
__getattr__.warning_issued = True # type: ignore[attr-defined]
return requested

raise AttributeError(f"module 'azure.ai.ml.entities' has no attribute {name}")
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
V = TypeVar("V")


class _AttrDict(Generic[K, V], dict, ABC):
class _AttrDict(Generic[K, V], Dict, ABC):
"""This class is used for accessing values with instance.some_key. It supports the following scenarios:

1. Setting arbitrary attribute, eg: obj.resource_layout.node_count = 2
Expand All @@ -34,6 +34,7 @@ def __init__(self, allowed_keys: Optional[Dict] = None, **kwargs: Any):

:param allowed_keys: A dictionary of keys that allowed to set as arbitrary attributes. None means all keys can
be set as arbitrary attributes.

:type dict
:param kwargs: A dictionary of additional configuration parameters.
:type kwargs: dict
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,19 @@ def __init__(
:param early_termination: Early termination policy for sweep job.
:type early_termination: ~azure.ai.ml.entities._job.sweep.early_termination_policy.EarlyTerminationPolicy
:param search_space: Search space for sweep job.
:type search_space: Dict[str, Union[~azure.ai.ml.sweep.Choice, ~azure.ai.ml.sweep.LogNormal,
~azure.ai.ml.sweep.LogUniform, ~azure.ai.ml.sweep.Normal, ~azure.ai.ml.sweep.QLogNormal,
~azure.ai.ml.sweep.QLogUniform, ~azure.ai.ml.sweep.QNormal, ~azure.ai.ml.sweep.QUniform,
~azure.ai.ml.sweep.Randint, ~azure.ai.ml.sweep.Uniform]]
:type search_space: Dict[str, Union[
~azure.ai.ml.sweep.Choice,
~azure.ai.ml.sweep.LogNormal,
~azure.ai.ml.sweep.LogUniform,
~azure.ai.ml.sweep.Normal,
~azure.ai.ml.sweep.QLogNormal,
~azure.ai.ml.sweep.QLogUniform,
~azure.ai.ml.sweep.QNormal,
~azure.ai.ml.sweep.QUniform,
~azure.ai.ml.sweep.Randint,
~azure.ai.ml.sweep.Uniform

]]
:param queue_settings: Queue settings for sweep job.
:type queue_settings: ~azure.ai.ml.entities.QueueSettings
:param resources: Compute Resource configuration for the job.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ def _from_rest_object(cls, obj: List) -> "Randint":

class Uniform(SweepDistribution):
"""
:noindex:

Uniform distribution configuration.

Expand Down
14 changes: 12 additions & 2 deletions sdk/ml/azure-ai-ml/azure/ai/ml/entities/_job/sweep/sweep_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,21 @@ class SweepJob(Job, ParameterizedSweep, JobIOMixin):
:paramtype identity: Union[
~azure.ai.ml.ManagedIdentityConfiguration,
~azure.ai.ml.AmlTokenConfiguration,
~azure.ai.ml.UserIdentityConfiguration]
~azure.ai.ml.UserIdentityConfiguration

]

:keyword inputs: Inputs to the command.
:paramtype inputs: dict
:keyword outputs: Mapping of output data bindings used in the job.
:paramtype outputs: dict[str, ~azure.ai.ml.Output]
:keyword sampling_algorithm: The hyperparameter sampling algorithm to use over the `search_space`. Defaults to
"random".

:paramtype sampling_algorithm: str
:keyword search_space: Dictionary of the hyperparameter search space. The key is the name of the hyperparameter
and the value is the parameter expression.

:paramtype search_space: Dict
:keyword objective: Metric to optimize for.
:paramtype objective: Objective
Expand All @@ -111,12 +116,17 @@ class SweepJob(Job, ParameterizedSweep, JobIOMixin):
~azure.ai.ml.entities.CommandComponent

]

:keyword early_termination: The early termination policy to use. A trial job is canceled
when the criteria of the specified policy are met. If omitted, no early termination policy will be applied.

:paramtype early_termination: Union[
~azure.mgmt.machinelearningservices.models.BanditPolicy,
~azure.mgmt.machinelearningservices.models.MedianStoppingPolicy,
~azure.mgmt.machinelearningservices.models.TruncationSelectionPolicy]
~azure.mgmt.machinelearningservices.models.TruncationSelectionPolicy

]

:keyword limits: Limits for the sweep job.
:paramtype limits: ~azure.ai.ml.entities.SweepJobLimits
:keyword queue_settings: Queue settings for the job.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,31 @@

# pylint: disable=protected-access

import warnings
from os import PathLike
from pathlib import Path
import warnings
from typing import IO, Any, AnyStr, Dict, List, Optional, Type, Union, cast

from azure.ai.ml._restclient.v2023_08_01_preview.models import (
WorkspaceConnectionPropertiesV2BasicResource as RestWorkspaceConnection,
)
from azure.ai.ml._restclient.v2024_01_01_preview.models import (
ConnectionCategory,
NoneAuthTypeWorkspaceConnectionProperties,
)
from azure.ai.ml._restclient.v2023_08_01_preview.models import (
WorkspaceConnectionPropertiesV2BasicResource as RestWorkspaceConnection,
)
from azure.ai.ml._schema.workspace.connections.workspace_connection import WorkspaceConnectionSchema
from azure.ai.ml._utils._experimental import experimental
from azure.ai.ml._utils.utils import _snake_to_camel, camel_to_snake, dump_yaml_to_file
from azure.ai.ml.constants._common import (
BASE_PATH_CONTEXT_KEY,
PARAMS_OVERRIDE_KEY,
WorkspaceConnectionTypes,
)
from azure.ai.ml.constants._common import BASE_PATH_CONTEXT_KEY, PARAMS_OVERRIDE_KEY, WorkspaceConnectionTypes
from azure.ai.ml.entities._credentials import (
AccessKeyConfiguration,
ApiKeyConfiguration,
ManagedIdentityConfiguration,
NoneCredentialConfiguration,
PatTokenConfiguration,
SasTokenConfiguration,
ServicePrincipalConfiguration,
UsernamePasswordConfiguration,
NoneCredentialConfiguration,
_BaseIdentityConfiguration,
)
from azure.ai.ml.entities._resource import Resource
Expand Down Expand Up @@ -174,6 +170,7 @@ def credentials(
~azure.ai.ml.entities.ServicePrincipalConfiguration,
~azure.ai.ml.entities.AccessKeyConfiguration,
~azure.ai.ml.entities.ApiKeyConfiguration

]
"""
return self._credentials
Expand Down Expand Up @@ -373,8 +370,8 @@ def _get_entity_class_from_type(cls, conn_type: Optional[str]) -> Type:
from .workspace_connection_subtypes import (
AzureAISearchWorkspaceConnection,
AzureAIServiceWorkspaceConnection,
AzureOpenAIWorkspaceConnection,
AzureBlobStoreWorkspaceConnection,
AzureOpenAIWorkspaceConnection,
)

# Connection categories don't perfectly follow perfect camel casing, so lower
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ def archive(
:end-before: [END model_operations_archive]
:language: python
:dedent: 8
:caption: Archive a model example.
:caption: Archive a model.
"""
_archive_or_restore(
asset_operations=self,
Expand Down Expand Up @@ -451,7 +451,7 @@ def restore(
:end-before: [END model_operations_restore]
:language: python
:dedent: 8
:caption: Restore a model example.
:caption: Restore an archived model.
"""
_archive_or_restore(
asset_operations=self,
Expand Down
2 changes: 1 addition & 1 deletion sdk/ml/azure-ai-ml/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pyright = false
type_check_samples = false
verifytypes = false
pylint = true
strict_sphinx = false
strict_sphinx = true


[tool.isort]
Expand Down
9 changes: 9 additions & 0 deletions sdk/ml/azure-ai-ml/samples/ml_samples_misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,17 @@ def ml_misc_config_0(self):
},
stage="Production",
)
ml_client.models.create_or_update(model)
# [END model_entity_create]

# [START model_operations_archive]
ml_client.models.archive(name="model1", version="5")
# [END model_operations_archive]

# [START model_operations_restore]
ml_client.models.restore(name="model1", version="5")
# [END model_operations_restore]

# [START model_batch_deployment_settings_entity_create]
from azure.ai.ml.entities._deployment.model_batch_deployment_settings import ModelBatchDeploymentSettings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def sample_pipeline_func(pipeline_input1, pipeline_input2):
settings=PipelineJobSettings(force_rerun=True, default_compute="cpu-cluster"),
jobs={"component1": component_func(component_in_number=1.0, component_in_path=uri_file_input)},
)

ml_client.jobs.create_or_update(pipeline_job)
# [END configure_pipeline_job_and_settings]

Expand Down