LogNormal Classe
Configuration de distribution LogNormal.
- Héritage
-
azure.ai.ml.entities._job.sweep.search_space.NormalLogNormal
Constructeur
LogNormal(mu: float | None = None, sigma: float | None = None, **kwargs: Any)
Paramètres
Nom | Description |
---|---|
mu
|
Moyenne du journal de la distribution. valeur par défaut: None
|
sigma
|
Écart type du journal de la distribution. valeur par défaut: None
|
Exemples
Configuration des distributions LogNormal pour un balayage d’hyperparamètre sur un travail De commande.
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 LogNormal, QLogNormal
# we can reuse an existing Command Job as a function that we can apply inputs to for the sweep configurations
job_for_sweep = job(
kernel=LogNormal(mu=0.0, sigma=1.0),
penalty=QLogNormal(mu=5.0, sigma=2.0),
)
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage. Pour plus d’informations, consultez notre guide du contributeur.
Azure SDK for Python