b1d71998e8dad7604a3eb3ff0279fb275b8ae7e2,catalyst/dl/tests/test_ppv_tpr_f1.py,,test_meter,#,67
Before Change
assert counts_dict["tp"] == batch_size
assert counts_dict["fp"] == 0 and counts_dict["fn"] == 0, \
"There should be no fp and fn for this test case."
ppv , tpr, f1 = meter.value()
ppv , tpr, f1 = map(lambda x: round(x, 3), [ppv, tpr, f1])
assert ppv == tpr == f1 == 1, \
"No fp and fn means that all metrics should be =1."
After Change
runs_tests_on_meter_counts_and_value(meter, num_tp_check=batch_size)
// testing with seg; shape (batch_size, n_channels, h, w)
meter.reset()
batch_size = 16
binary_y, binary_pred = create_dummy_tensors_seg(batch_size)
meter.add(binary_pred, binary_y)
runs_tests_on_meter_counts_and_value(meter, num_tp_check=batch_size*15*15)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: catalyst-team/catalyst
Commit Name: b1d71998e8dad7604a3eb3ff0279fb275b8ae7e2
Time: 2019-11-03
Author: 34604336+jchen42703@users.noreply.github.com
File Name: catalyst/dl/tests/test_ppv_tpr_f1.py
Class Name:
Method Name: test_meter
Project Name: catalyst-team/catalyst
Commit Name: b1d71998e8dad7604a3eb3ff0279fb275b8ae7e2
Time: 2019-11-03
Author: 34604336+jchen42703@users.noreply.github.com
File Name: catalyst/dl/tests/test_ppv_tpr_f1.py
Class Name:
Method Name: test_meter
Project Name: kengz/SLM-Lab
Commit Name: 1ec706b27e4e165df197053b87ed7401db462eae
Time: 2019-05-06
Author: kengzwl@gmail.com
File Name: slm_lab/env/openai.py
Class Name: OpenAIEnv
Method Name: space_step
Project Name: tensorflow/kfac
Commit Name: 19f17e68bd591d4aa13a535ef857b2ae56d1a10a
Time: 2019-08-13
Author: no-reply@google.com
File Name: kfac/python/kernel_tests/utils_test.py
Class Name: AccumulatorVariableTest
Method Name: test_assign_to_var