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