你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LogNormal 类

LogNormal 分发配置。

继承
azure.ai.ml.entities._job.sweep.search_space.Normal
LogNormal

构造函数

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

参数

名称 说明
mu

分发的日志的平均值。

默认值: None
sigma

分布区对数的标准偏差。

默认值: None

示例

为命令作业上的超参数扫描配置 LogNormal 分布。


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