Normal Class
Normal distribution configuration.
- Inheritance
-
azure.ai.ml.entities._job.sweep.search_space.SweepDistributionNormal
Constructor
Normal(mu: float | None = None, sigma: float | None = None, **kwargs: Any)
Parameters
Name | Description |
---|---|
mu
|
Mean of the distribution. default value: None
|
sigma
|
Standard deviation of the distribution. default value: None
|
Examples
Configuring Normal distributions for a hyperparameter sweep on a Command job.
from azure.ai.ml import command
job = command(
inputs=dict(kernel="linear", penalty=1.0),
compute=cpu_cluster,
environment=f"{job_env.name}:{job_env.version}",
code="./scripts",
command="python scripts/train.py --kernel $kernel --penalty $penalty",
experiment_name="sklearn-iris-flowers",
)
from azure.ai.ml.sweep import Normal, Randint
# we can reuse an existing Command Job as a function that we can apply inputs to for the sweep configurations
job_for_sweep = job(
penalty=Randint(upper=5),
kernel=Normal(mu=2.0, sigma=1.0),
)
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.
Azure SDK for Python
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for