snorkel.classification.LogManagerConfig

class snorkel.classification.LogManagerConfig[source]

Bases: tuple

Manager for checkpointing model.

Parameters
  • counter_unit – The unit to use when assessing when it’s time to log. Options are [“epochs”, “batches”, “points”]

  • evaluation_freq – Evaluate performance on the validation set every this many counter_units

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

count(value)

index(value, [start, [stop]])

Raises ValueError if the value is not present.

Attributes

counter_unit

Alias for field number 0

evaluation_freq

Alias for field number 1

count(value) → integer -- return number of occurrences of value[source]
property counter_unit[source]

Alias for field number 0

property evaluation_freq[source]

Alias for field number 1

index(value[, start[, stop]]) → integer -- return first index of value.[source]

Raises ValueError if the value is not present.