802ab9cb7923adbbd6a6f03585b5967afe84aff6,test/mtl/loggers/test_log_manager.py,TestLogManager,test_log_manager_points,#TestLogManager#,21

Before Change



        log_manager.update(10)
        assert log_manager.trigger_evaluation() is True
        assert log_manager.trigger_checkpointing() is True

        log_manager.update(5)
        assert log_manager.trigger_evaluation() is False
        assert log_manager.trigger_checkpointing() is False

After Change


        Unit test of log_manager (points)
        log_manager_config = {"counter_unit": "points", "evaluation_freq": 10}

        checkpointer = Checkpointer(
            checkpoint_dir=TEST_LOG_DIR, checkpoint_factor=2, **log_manager_config
        )
        log_manager = LogManager(
            n_batches_per_epoch=10, checkpointer=checkpointer, **log_manager_config
        )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: snorkel-team/snorkel
Commit Name: 802ab9cb7923adbbd6a6f03585b5967afe84aff6
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: test/mtl/loggers/test_log_manager.py
Class Name: TestLogManager
Method Name: test_log_manager_points


Project Name: snorkel-team/snorkel
Commit Name: 802ab9cb7923adbbd6a6f03585b5967afe84aff6
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: test/mtl/loggers/test_log_manager.py
Class Name: TestLogManager
Method Name: test_log_manager_batch


Project Name: snorkel-team/snorkel
Commit Name: 802ab9cb7923adbbd6a6f03585b5967afe84aff6
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: test/mtl/loggers/test_log_manager.py
Class Name: TestLogManager
Method Name: test_log_manager_epoch