optuna.distributions.IntUniformDistribution
- class optuna.distributions.IntUniformDistribution(low, high, step=1)[source]
整数の一様分布。
このオブジェクトは
suggest_int()
によって生成され、 一般にsamplers
に渡されます。Note
範囲 \([\mathsf{low}, \mathsf{high}]\) が \(\mathsf{step}\) で割り切れない場合、 \(\mathsf{high}\) は \(k \times \mathsf{step} + \mathsf{low} < \mathsf{high}\) の最大値で置き換えられます。ここで \(k\) は整数です。
- low
分布の範囲の下限。
low
は範囲に含まれます。low
はhigh
以下でなければなりません。
- high
分布の範囲の上限。
high
は範囲に含まれます。high
はlow
以上でなければなりません。
- step
離散化ステップ。
step
は正の整数でなければなりません。
Warning
v3.0.0 で非推奨となりました。この機能は将来的に削除される予定です。 この機能の削除は現在 v6.0.0 で予定されていますが、このスケジュールは変更される可能性があります。 https://github.com/optuna/optuna/releases/tag/v3.0.0 を参照してください。
IntDistribution
を使用してください。メソッド
single
()Test whether the range of this distribution contains just a single value.
to_external_repr
(param_value_in_internal_repr)Convert internal representation of a parameter value into external representation.
to_internal_repr
(param_value_in_external_repr)Convert external representation of a parameter value into internal representation.
- single()
この分布の範囲が単一の値のみを含むかどうかをテストします。
- to_external_repr(param_value_in_internal_repr)
パラメータ値の内部表現を外部表現に変換します。