ebilab.api

実験を定義するためのAPIを提供します。

Classes

BaseExperiment

class ebilab.api.BaseExperiment(options)[ソース]

ベースクラス: object

Inherit this class to define an experiment.

async cleanup()[ソース]

Override this method to define the cleanup steps.

columns: list[str] = []
name: str = 'experiment'
classmethod register_plotter(plotter_class: type[BasePlotter]) type[BasePlotter][ソース]

decorator to register a plotter class

async setup()[ソース]

Override this method to initialize the experiment.

async steps()[ソース]

Override this method to define the experiment steps.

BasePlotter

class ebilab.api.BasePlotter[ソース]

ベースクラス: object

可視化ロジックを定義するための基底クラス。

name: str = 'Unnamed Plotter'
setup()[ソース]

プロットの初期設定を行う。プロットがアクティブになった際に一度だけ呼ばれる。

update(df: DataFrame)[ソース]

新しいデータを受け取り、プロットを更新する。

パラメータ:

df -- 実験データのDataFrame。

Field Classes

パラメータを定義するためのフィールドクラスです。

class ebilab.api.FloatField(default: 'float', max: 'float | None' = None, min: 'float | None' = None)[ソース]
default: float
max: float | None = None
min: float | None = None
class ebilab.api.IntField(default: 'int', max: 'int | None' = None, min: 'int | None' = None)[ソース]
default: int
max: int | None = None
min: int | None = None
class ebilab.api.StrField(default: 'str', allow_blank: 'bool' = False)[ソース]
allow_blank: bool = False
default: str
class ebilab.api.BoolField(default: 'bool' = False)[ソース]
default: bool = False
class ebilab.api.SelectField(choices: 'list[Any]', default_index: 'int' = 0)[ソース]
choices: list[Any]
default_index: int = 0