LogNormal Class

LogNormal distribution configuration.

Inheritance
azure.ai.ml.entities._job.sweep.search_space.Normal
LogNormal

Constructor

LogNormal(mu: float | None = None, sigma: float | None = None, **kwargs: Any)

Parameters

Name Description
mu

Mean of the log of the distribution.

Default value: None
sigma

Standard deviation of the log of the distribution.

Default value: None

Examples

Configuring LogNormal 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 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),
   )