memorax.loggers.ConsoleLogger#

class memorax.loggers.ConsoleLogger[source]#

Bases: BaseLogger[ConsoleLoggerState]

ConsoleLogger()

init(cfg)[source]#
Return type:

ConsoleLoggerState

log(state, data, step)[source]#
Return type:

ConsoleLoggerState

Parameters:
  • state (ConsoleLoggerState)

  • data (Any)

  • step (int)

emit(state)[source]#
Return type:

ConsoleLoggerState

Parameters:

state (ConsoleLoggerState)

classmethod __class_getitem__(params)#

Parameterizes a generic class.

At least, parameterizing a generic class is the main thing this method does. For example, for some generic class Foo, this is called when we do Foo[int] - there, with cls=Foo and params=int.

However, note that this method is also called when defining generic classes in the first place with class Foo(Generic[T]): ….

__init__()#
Return type:

None

finish(state)#
Return type:

None

Parameters:

state (StateT)

replace(**updates)#

Returns a new object replacing the specified fields with new values.