liblaf.cherries
¤
Modules:
Classes:
-
AddTag
– -
AddTags
– -
AssetKind
– -
BaseConfig
– -
ConcreteImpl
– -
End
– -
Experiment
– -
ImplDef
– -
LogAsset
– -
LogCode
– -
LogMetric
– -
LogMetrics
– -
LogOther
– -
LogOthers
– -
LogParam
– -
LogParams
– -
MetaAsset
– -
Plugin
– -
SpecDef
– -
Start
–
Functions:
-
as_os_path
– -
as_path
– -
as_posix
– -
current_exp
– -
data
– -
end
– -
entrypoint
– -
exp_dir
– -
get_assets
– -
get_inputs
– -
get_outputs
– -
git_root
– -
git_root_safe
– -
impl
– -
input
– -
inputs
– -
log_input
– -
log_output
– -
output
– -
outputs
– -
params
– -
path
– -
run
– -
spec
– -
src
– -
start
–
Attributes:
-
add_tag
(AddTag
) – -
add_tags
(AddTags
) – -
log_asset
(LogAsset
) – -
log_code
(LogCode
) – -
log_metric
(LogMetric
) – -
log_metrics
(LogMetrics
) – -
log_other
(LogOther
) – -
log_others
(LogOthers
) – -
log_param
(LogParam
) – -
log_params
(LogParams
) –
AddTag
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(tag: str, /, **kwargs) -> None
Source code in src/liblaf/cherries/integration/_abc.py
62 63 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
AddTags
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
Source code in src/liblaf/cherries/integration/_abc.py
68 69 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
AssetKind
¤
BaseConfig
¤
Bases: BaseSettings
Attributes:
model_config
class-attribute
instance-attribute
¤
model_config = SettingsConfigDict(cli_parse_args=True)
ConcreteImpl
¤
Bases: ImplDef
Parameters:
-
name
(str
) – -
after
(str | Sequence[str]
, default:()
) – -
before
(str | Sequence[str]
, default:()
) – -
priority
(int
, default:0
) – -
fn
(TypeVar
) – -
plugin_name
(str
) –
Attributes:
End
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(**kwargs) -> None
Source code in src/liblaf/cherries/integration/_abc.py
74 75 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
Experiment
¤
Attributes:
-
add_tag
(AddTag
) – -
add_tags
(AddTags
) – -
end
(End
) – -
log_asset
(LogAsset
) – -
log_code
(LogCode
) – -
log_metric
(LogMetric
) – -
log_metrics
(LogMetrics
) – -
log_other
(LogOther
) – -
log_others
(LogOthers
) – -
log_param
(LogParam
) – -
log_params
(LogParams
) – -
start
(Start
) –
Methods:
-
log_input
– -
log_output
–
add_tags
class-attribute
instance-attribute
¤
log_asset
class-attribute
instance-attribute
¤
log_code
class-attribute
instance-attribute
¤
log_metric
class-attribute
instance-attribute
¤
log_metrics
class-attribute
instance-attribute
¤
log_metrics: LogMetrics = field(
factory=LogMetrics, init=False
)
log_other
class-attribute
instance-attribute
¤
log_others
class-attribute
instance-attribute
¤
log_param
class-attribute
instance-attribute
¤
log_params
class-attribute
instance-attribute
¤
ImplDef
¤
LogAsset
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(
path: PathLike, /, prefix: str | None = None, **kwargs
) -> None
Source code in src/liblaf/cherries/integration/_abc.py
80 81 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogCode
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(path: PathLike, /, **kwargs) -> None
Source code in src/liblaf/cherries/integration/_abc.py
86 87 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogMetric
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(
key: str,
value: float,
/,
step: int | None = None,
epoch: int | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/integration/_abc.py
92 93 94 95 96 97 98 99 100 101 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogMetrics
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(
metrics: Mapping[str, Any],
/,
step: int | None = None,
epoch: int | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/integration/_abc.py
106 107 108 109 110 111 112 113 114 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogOther
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
Source code in src/liblaf/cherries/integration/_abc.py
119 120 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogOthers
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
Source code in src/liblaf/cherries/integration/_abc.py
125 126 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogParam
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
Source code in src/liblaf/cherries/integration/_abc.py
131 132 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
LogParams
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
Source code in src/liblaf/cherries/integration/_abc.py
137 138 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
MetaAsset
¤
MetaAsset(
kind: AssetKind, extra: PathProvider | None = None
)
Methods:
Attributes:
Source code in src/liblaf/cherries/config/_asset.py
27 28 29 |
|
get_extra
¤
Source code in src/liblaf/cherries/config/_asset.py
31 32 33 34 35 36 37 38 |
|
Plugin
¤
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(*args: args, **kwargs: kwargs) -> T
Source code in src/liblaf/cherries/integration/_abc.py
24 25 26 27 28 29 30 31 32 33 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
SpecDef
¤
Start
¤
Bases: Plugin
Parameters:
-
priority
(int
, default:0
) – -
_children
(list[str]
, default:<dynamic>
) –Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
Methods:
Attributes:
__attrs_post_init__
¤
__attrs_post_init__() -> None
Source code in src/liblaf/cherries/integration/_abc.py
21 22 |
|
__call__
¤
__call__(**kwargs) -> None
Source code in src/liblaf/cherries/integration/_abc.py
143 144 |
|
__eq__
¤
Source code in src/liblaf/cherries/integration/_abc.py
40 41 42 43 |
|
__lt__
¤
Source code in src/liblaf/cherries/integration/_abc.py
35 36 37 38 |
|
add
¤
add(*children: Plugin) -> None
Source code in src/liblaf/cherries/integration/_abc.py
49 50 51 |
|
extend
¤
Source code in src/liblaf/cherries/integration/_abc.py
53 54 |
|
as_os_path
¤
as_os_path(path: PathLike) -> str
as_os_path(path: None) -> None
as_os_path(path: PathLike | None) -> str | None
Source code in src/liblaf/cherries/pathutils/_convert.py
11 12 13 14 |
|
as_path
¤
as_path(path: PathLike) -> Path
as_path(path: None) -> None
as_path(path: PathLike | None) -> Path | None
Source code in src/liblaf/cherries/pathutils/_convert.py
21 22 23 24 |
|
as_posix
¤
as_posix(path: PathLike) -> str
as_posix(path: None) -> None
as_posix(path: PathLike | None) -> str | None
Source code in src/liblaf/cherries/pathutils/_convert.py
31 32 33 34 35 36 |
|
current_exp
¤
current_exp() -> Experiment
Source code in src/liblaf/cherries/integration/_exp.py
100 101 |
|
data
¤
Source code in src/liblaf/cherries/pathutils/_special.py
14 15 |
|
end
¤
end() -> None
Source code in src/liblaf/cherries/_run.py
50 51 |
|
entrypoint
¤
Source code in src/liblaf/cherries/pathutils/_path.py
11 12 13 14 15 |
|
exp_dir
¤
Source code in src/liblaf/cherries/pathutils/_path.py
34 35 36 37 38 |
|
get_assets
¤
Source code in src/liblaf/cherries/config/_asset.py
41 42 43 44 45 46 47 48 49 50 51 52 |
|
get_inputs
¤
Source code in src/liblaf/cherries/config/_asset.py
55 56 |
|
get_outputs
¤
Source code in src/liblaf/cherries/config/_asset.py
59 60 |
|
git_root
¤
git_root() -> Path
Source code in src/liblaf/cherries/pathutils/_path.py
18 19 20 21 22 |
|
git_root_safe
¤
git_root_safe() -> Path
Source code in src/liblaf/cherries/pathutils/_path.py
25 26 27 28 29 30 31 |
|
impl
¤
impl(
fn: Callable | None = None,
/,
*,
name: str,
after: str | Sequence[str] = (),
before: str | Sequence[str] = (),
priority: int = 0,
) -> Decorator | Callable
Source code in src/liblaf/cherries/core/_spec.py
163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
|
input
¤
input(
path: PathLike,
extra: PathProvider | None = None,
**kwargs,
) -> Path
Source code in src/liblaf/cherries/config/_asset.py
63 64 65 66 |
|
inputs
¤
Source code in src/liblaf/cherries/pathutils/_special.py
18 19 20 21 |
|
log_input
¤
log_input(path: PathLike, /, **kwargs) -> None
Source code in src/liblaf/cherries/integration/_exp.py
104 105 |
|
log_output
¤
log_output(path: PathLike, /, **kwargs) -> None
Source code in src/liblaf/cherries/integration/_exp.py
108 109 |
|
output
¤
output(
path: PathLike,
extra: PathProvider | None = None,
**kwargs,
) -> Path
Source code in src/liblaf/cherries/config/_asset.py
69 70 71 72 |
|
outputs
¤
Source code in src/liblaf/cherries/pathutils/_special.py
24 25 26 27 |
|
params
¤
Source code in src/liblaf/cherries/pathutils/_special.py
30 31 32 33 |
|
path
¤
Source code in src/liblaf/cherries/pathutils/_special.py
36 37 |
|
run
¤
run(
main: Callable[[], T] | Callable[[C], T],
*,
play: bool = False,
preset: Preset = default,
) -> T
Source code in src/liblaf/cherries/_run.py
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
|
spec
¤
Source code in src/liblaf/cherries/core/_spec.py
131 132 133 134 135 136 137 138 139 140 141 142 |
|
src
¤
Source code in src/liblaf/cherries/pathutils/_special.py
40 41 |
|
start
¤
start(
preset: Preset = default, *, play: bool = False
) -> Experiment
Source code in src/liblaf/cherries/_run.py
37 38 39 40 41 42 43 44 45 46 47 |
|