Local
liblaf.cherries.plugins.local
¶
Classes:
-
Local–Copy the entrypoint, logs, and artifacts into
.cherries/runs/.
Attributes:
Local
¶
Bases: Plugin, PluginProtocol
flowchart TD
liblaf.cherries.plugins.local.Local[Local]
liblaf.cherries.core.plugin._plugin.Plugin[Plugin]
liblaf.cherries.core._protocol.PluginProtocol[PluginProtocol]
liblaf.cherries.core.assets._protocol.AssetPluginProtocol[AssetPluginProtocol]
liblaf.cherries.core.metrics._protocol.MetricPluginProtocol[MetricPluginProtocol]
liblaf.cherries.core.others._protocol.OtherPluginProtocol[OtherPluginProtocol]
liblaf.cherries.core.params._protocol.ParamPluginProtocol[ParamPluginProtocol]
liblaf.cherries.core.plugin._plugin.Plugin --> liblaf.cherries.plugins.local.Local
liblaf.cherries.core._protocol.PluginProtocol --> liblaf.cherries.plugins.local.Local
liblaf.cherries.core.assets._protocol.AssetPluginProtocol --> liblaf.cherries.core._protocol.PluginProtocol
liblaf.cherries.core.metrics._protocol.MetricPluginProtocol --> liblaf.cherries.core._protocol.PluginProtocol
liblaf.cherries.core.others._protocol.OtherPluginProtocol --> liblaf.cherries.core._protocol.PluginProtocol
liblaf.cherries.core.params._protocol.ParamPluginProtocol --> liblaf.cherries.core._protocol.PluginProtocol
click liblaf.cherries.plugins.local.Local href "" "liblaf.cherries.plugins.local.Local"
click liblaf.cherries.core.plugin._plugin.Plugin href "" "liblaf.cherries.core.plugin._plugin.Plugin"
click liblaf.cherries.core._protocol.PluginProtocol href "" "liblaf.cherries.core._protocol.PluginProtocol"
click liblaf.cherries.core.assets._protocol.AssetPluginProtocol href "" "liblaf.cherries.core.assets._protocol.AssetPluginProtocol"
click liblaf.cherries.core.metrics._protocol.MetricPluginProtocol href "" "liblaf.cherries.core.metrics._protocol.MetricPluginProtocol"
click liblaf.cherries.core.others._protocol.OtherPluginProtocol href "" "liblaf.cherries.core.others._protocol.OtherPluginProtocol"
click liblaf.cherries.core.params._protocol.ParamPluginProtocol href "" "liblaf.cherries.core.params._protocol.ParamPluginProtocol"
Copy the entrypoint, logs, and artifacts into .cherries/runs/.
Attributes:
Parameters:
-
name(PluginName, default:<dynamic>) – -
run(Run) –
Methods:
-
end–End a run.
-
log_asset–Copy
pathunder the snapshot'sassets/directory. -
log_metric–Record one metric sample.
-
log_metrics–Record a batch of already-flattened metric samples.
-
log_other–Record one flattened metadata value.
-
log_others–Record multiple already-flattened metadata values.
-
log_param–Record one flattened parameter value.
-
log_params–Record multiple already-flattened parameter values.
-
start–Configure local logging and copy the entrypoint.
name
class-attribute
instance-attribute
¶
name: PluginName = field(
default=Factory(_default_name, takes_self=True),
kw_only=True,
)
end
¶
end(exc: BaseException | None = None) -> None
End a run.
Parameters:
-
exc(BaseException | None, default:None) –Exception raised by the experiment, if any.
log_asset
¶
Copy path under the snapshot's assets/ directory.
Source code in src/liblaf/cherries/plugins/local.py
log_metric
¶
log_metrics
¶
log_other
¶
log_others
¶
log_param
¶
log_params
¶
start
¶
Configure local logging and copy the entrypoint.