jax_dna.ui.loggers.console

Logger logging jax_dna optimization results to the console.

Classes

ConsoleLogger

Console logger.

Module Contents

class jax_dna.ui.loggers.console.ConsoleLogger(log_dir: str | pathlib.Path | None = None)[source]

Bases: jax_dna.ui.loggers.logger.Logger

Console logger.

log_metric(name: str, value: float, step: int) None[source]

Log the value for name at step.

Parameters:
  • name (str) – the name of the metric

  • value (float) – the value of the metric

  • step (int) – the step at which the metric was recorded

__update_status(name: str, status: jax_dna.ui.loggers.logger.Status) None

Updates the status of a simulator, objective, or observable.

update_simulator_status(name: str, status: jax_dna.ui.loggers.logger.Status) None[source]

Updates the status of a simulator.

set_simulator_started(name: str) None[source]

Sets the status of a simulator to STARTED.

set_simulator_running(name: str) None[source]

Sets the status of a simulator to RUNNING.

set_simulator_complete(name: str) None[source]

Sets the status of a simulator to COMPLETE.

set_simulator_error(name: str) None[source]

Sets the status of a simulator to ERROR.

update_objective_status(name: str, status: jax_dna.ui.loggers.logger.Status) None[source]

Updates the status of an objective.

set_objective_started(name: str) None[source]

Sets the status of an objective to STARTED.

set_objective_running(name: str) None[source]

Sets the status of an objective to RUNNING.

set_objective_complete(name: str) None[source]

Sets the status of an objective to COMPLETE.

set_objective_error(name: str) None[source]

Sets the status of an objective to ERROR.

update_observable_status(name: str, status: jax_dna.ui.loggers.logger.Status) None[source]

Updates the status of an observable.

set_observable_started(name: str) None[source]

Sets the status of an observable to STARTED.

set_observable_running(name: str) None[source]

Sets the status of an observable to RUNNING.

set_observable_complete(name: str) None[source]

Sets the status of an observable to COMPLETE.

set_observable_error(name: str) None[source]

Sets the status of an observable to ERROR.