liblaf.cherries.plugins.git_
¤
Classes:
-
Git
–
Functions:
-
enc_hook
–
Git
¤
Bases: Run
Parameters:
-
plugins
(dict[str, str]
, default:<class 'dict'>
) –dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
-
inputs
(list[Path]
, 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.
-
outputs
(list[Path]
, 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.
-
repo
(Repo
, default:None
) –
Methods:
-
delegate
– -
end
– -
get_others
– -
get_params
– -
get_url
– -
log_asset
– -
log_input
– -
log_metric
– -
log_metrics
– -
log_other
– -
log_others
– -
log_output
– -
log_parameter
– -
log_parameters
– -
plugin_id_cls
– -
register
– -
start
–
Attributes:
-
data_dir
(Path
) – -
entrypoint
(Path
) – -
exp_dir
(Path
) – -
inputs
(list[Path]
) – -
name
(str
) – -
outputs
(list[Path]
) – -
params
(Mapping[str, Any]
) – -
plugin_id
(str
) – -
plugin_root
(Self
) – -
plugins
(dict[str, Plugin]
) – -
project_name
(str | None
) – -
repo
(Repo
) – -
root_dir
(Path
) – -
start_time
(datetime
) – -
url
(str
) –
plugins
class-attribute
instance-attribute
¤
delegate
¤
delegate(
method: MethodName,
args: Sequence[Any] = (),
kwargs: Mapping[str, Any] = {},
*,
first_result: bool = False,
) -> Any
Source code in src/liblaf/cherries/core/_plugin.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
|
end
¤
end(*args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
27 28 29 30 31 32 33 34 35 |
|
get_others
¤
Source code in src/liblaf/cherries/core/_run.py
95 96 |
|
get_params
¤
Source code in src/liblaf/cherries/core/_run.py
98 99 |
|
get_url
¤
get_url() -> str
Source code in src/liblaf/cherries/core/_run.py
101 102 |
|
log_asset
¤
log_asset(
path: PathLike,
name: PathLike | None = None,
*,
metadata: Mapping[str, Any] | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/core/_run.py
104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
|
log_input
¤
log_input(path: PathLike, *args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
37 38 39 40 41 |
|
log_metric
¤
log_metric(
name: str,
value: Any,
/,
step: int | None = None,
epoch: int | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/core/_run.py
129 130 131 132 133 134 135 136 137 138 |
|
log_metrics
¤
log_metrics(
dic: Mapping[str, Any],
/,
prefix: str | None = None,
step: int | None = None,
epoch: int | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/core/_run.py
140 141 142 143 144 145 146 147 148 149 |
|
log_other
¤
Source code in src/liblaf/cherries/core/_run.py
151 152 |
|
log_others
¤
Source code in src/liblaf/cherries/core/_run.py
154 155 |
|
log_output
¤
log_output(
path: PathLike, name: PathLike | None = None, **kwargs
) -> None
Source code in src/liblaf/cherries/plugins/git_.py
43 44 45 46 47 48 49 50 51 52 |
|
log_parameter
¤
Source code in src/liblaf/cherries/core/_run.py
167 168 169 170 |
|
log_parameters
¤
log_parameters(
parameters: Mapping[Any, Any],
/,
prefix: str | None = None,
step: int | None = None,
**kwargs,
) -> None
Source code in src/liblaf/cherries/core/_run.py
172 173 174 175 176 177 178 179 180 |
|
plugin_id_cls
classmethod
¤
plugin_id_cls() -> str
Source code in src/liblaf/cherries/core/_plugin.py
21 22 23 |
|
register
¤
register(plugin: Plugin) -> None
Source code in src/liblaf/cherries/core/_plugin.py
58 59 60 |
|
start
¤
start(*args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
54 55 56 57 |
|