liblaf.cherries.plugins.git_
¤
Classes:
-
Git
–
Git
¤
Bases: Run
Parameters:
-
plugins
(dict[PluginId, 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
) – -
verify
(bool
, default:False
) –
Methods:
-
data_dir
– -
delegate
– -
end
– -
entrypoint
– -
exp_dir
– -
get_others
– -
get_params
– -
get_url
– -
log_asset
– -
log_input
– -
log_metric
– -
log_metrics
– -
log_other
– -
log_others
– -
log_output
– -
log_parameter
– -
log_parameters
– -
name
– -
params
– -
project_dir
– -
project_name
– -
register
– -
start
– -
start_time
– -
url
–
Attributes:
-
inputs
(list[Path]
) – -
outputs
(list[Path]
) – -
plugin_id
(str
) – -
plugin_root
(Self
) – -
plugins
(dict[PluginId, Plugin]
) – -
repo
(Repo
) – -
verify
(bool
) –
plugins
class-attribute
instance-attribute
¤
data_dir
¤
data_dir() -> Path
Source code in src/liblaf/cherries/core/_run.py
27 28 29 |
|
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
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
|
end
¤
end(*args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
22 23 24 25 26 27 28 29 30 |
|
entrypoint
¤
entrypoint() -> Path
Source code in src/liblaf/cherries/core/_run.py
31 32 33 |
|
exp_dir
¤
exp_dir() -> Path
Source code in src/liblaf/cherries/core/_run.py
35 36 37 |
|
get_others
¤
Source code in src/liblaf/cherries/core/_run.py
66 67 |
|
get_params
¤
Source code in src/liblaf/cherries/core/_run.py
69 70 |
|
get_url
¤
get_url() -> str
Source code in src/liblaf/cherries/core/_run.py
72 73 |
|
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
75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
|
log_input
¤
log_input(path: PathLike, *args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
32 33 34 35 36 |
|
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
100 101 102 103 104 105 106 107 108 109 |
|
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
111 112 113 114 115 116 117 118 119 120 |
|
log_other
¤
Source code in src/liblaf/cherries/core/_run.py
122 123 |
|
log_others
¤
Source code in src/liblaf/cherries/core/_run.py
125 126 |
|
log_output
¤
Source code in src/liblaf/cherries/plugins/git_.py
38 39 40 41 42 43 44 45 46 47 |
|
log_parameter
¤
Source code in src/liblaf/cherries/core/_run.py
138 139 140 141 |
|
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
143 144 145 146 147 148 149 150 151 |
|
name
¤
name() -> str
Source code in src/liblaf/cherries/core/_run.py
39 40 41 |
|
params
¤
Source code in src/liblaf/cherries/core/_run.py
43 44 45 |
|
project_dir
¤
project_dir() -> Path
Source code in src/liblaf/cherries/core/_run.py
51 52 53 |
|
project_name
¤
project_name() -> str | None
Source code in src/liblaf/cherries/core/_run.py
47 48 49 |
|
register
¤
register(plugin: Plugin) -> None
Source code in src/liblaf/cherries/core/_plugin.py
63 64 65 66 67 68 |
|
start
¤
start(*args, **kwargs) -> None
Source code in src/liblaf/cherries/plugins/git_.py
49 50 51 52 |
|