b1ec0299de53bdc03870c39b00a1c88ff35cf0ea,anago/callbacks.py,F1score,on_epoch_end,#F1score#Any#Any#,16
Before Change
y_true = self.p.inverse_transform(y_true)
y_pred = self.p.inverse_transform(y_pred)
y_pred = [y_p[:len(y_t)] for y_t, y_p in zip(y_true, y_pred)]
for y_t, y_p in zip(y_true, y_pred):
assert len(y_t) == len(y_p)
label_true.extend(y_true)
label_pred.extend(y_pred)
score = f1_score(label_true, label_pred)
After Change
score = f1_score(label_true, label_pred)
print(" - f1: {:04.2f}".format(score * 100))
print(classification_report(label_true, label_pred))
logs["f1"] = score
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: Hironsan/anago
Commit Name: b1ec0299de53bdc03870c39b00a1c88ff35cf0ea
Time: 2018-06-01
Author: hiroki.nakayama.py@gmail.com
File Name: anago/callbacks.py
Class Name: F1score
Method Name: on_epoch_end
Project Name: AlexEMG/DeepLabCut
Commit Name: 4ae9541144d2d3b03675587e16cce820c4fc1942
Time: 2021-01-22
Author: alexander@deeplabcut.org
File Name: deeplabcut/pose_estimation_tensorflow/predict_multianimal.py
Class Name:
Method Name: GetPoseandCostsF
Project Name: asyml/texar
Commit Name: 42efaa53edce9b84a98fef1fce24502e6d2ba941
Time: 2017-12-08
Author: shore@pku.edu.cn
File Name: examples/transformer.py
Class Name:
Method Name: