jax_dna.ui.loggers.console ========================== .. py:module:: jax_dna.ui.loggers.console .. autoapi-nested-parse:: Logger logging jax_dna optimization results to the console. Classes ------- .. autoapisummary:: jax_dna.ui.loggers.console.ConsoleLogger Module Contents --------------- .. py:class:: ConsoleLogger(log_dir: str | pathlib.Path | None = None) Bases: :py:obj:`jax_dna.ui.loggers.logger.Logger` Console logger. .. py:method:: log_metric(name: str, value: float, step: int) -> None Log the `value` for `name` at `step`. :param name: the name of the metric :type name: str :param value: the value of the metric :type value: float :param step: the step at which the metric was recorded :type step: int .. py:method:: __update_status(name: str, status: jax_dna.ui.loggers.logger.Status) -> None Updates the status of a simulator, objective, or observable. .. py:method:: update_simulator_status(name: str, status: jax_dna.ui.loggers.logger.Status) -> None Updates the status of a simulator. .. py:method:: set_simulator_started(name: str) -> None Sets the status of a simulator to STARTED. .. py:method:: set_simulator_running(name: str) -> None Sets the status of a simulator to RUNNING. .. py:method:: set_simulator_complete(name: str) -> None Sets the status of a simulator to COMPLETE. .. py:method:: set_simulator_error(name: str) -> None Sets the status of a simulator to ERROR. .. py:method:: update_objective_status(name: str, status: jax_dna.ui.loggers.logger.Status) -> None Updates the status of an objective. .. py:method:: set_objective_started(name: str) -> None Sets the status of an objective to STARTED. .. py:method:: set_objective_running(name: str) -> None Sets the status of an objective to RUNNING. .. py:method:: set_objective_complete(name: str) -> None Sets the status of an objective to COMPLETE. .. py:method:: set_objective_error(name: str) -> None Sets the status of an objective to ERROR. .. py:method:: update_observable_status(name: str, status: jax_dna.ui.loggers.logger.Status) -> None Updates the status of an observable. .. py:method:: set_observable_started(name: str) -> None Sets the status of an observable to STARTED. .. py:method:: set_observable_running(name: str) -> None Sets the status of an observable to RUNNING. .. py:method:: set_observable_complete(name: str) -> None Sets the status of an observable to COMPLETE. .. py:method:: set_observable_error(name: str) -> None Sets the status of an observable to ERROR.