ReferentialGym.utils.statsLogger package

Submodules

ReferentialGym.utils.statsLogger.statsLogger module

class ReferentialGym.utils.statsLogger.statsLogger.statsLogger(path='./', filename='logs.dict', dumpPeriod=1)

Bases: tensorboardX.writer.SummaryWriter

dump()

Dumps the data that have been recorder so far with the add_dict method.

switch_epoch()

Separate the data recording in epoch-based entries.

measure_topographic_similarity(sentences_key='sentences_widx', features_key='temporal_features', max_nbr_samples=None, comprange=None, verbose=False, max_workers=16)

Accounts for a measure of the compositionality of the current epoch-like set of data, following the computation of topographic similarity.

add_dict(x, rec=None, batch=False, idx=None)

Records the data.

Parameters
  • xdict of data to record. If it is a imbrigated dictionnary, then it is recorded with the same hierarchy.

  • recNone or dict of the current level in the recording hierarchy.

  • batch – boolean that defines whether to the data to be recorded is given as a batch or not.

Module contents