Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

fix test and pretrained model loading #23

Merged
merged 4 commits into from
Dec 11, 2020
Merged

Conversation

manonreau
Copy link
Collaborator

No description provided.

Copy link
Member

@NicoRenaud NicoRenaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point it would be good to improve the naming convention in Metrics.py. It doesn't have to be now but we should think about it at some point. Otherwise good job ! :)

@@ -54,20 +54,23 @@ def __init__(self, y_pred, y_hat, target, threshold=4, binary=True):

if self.binary == True:

self.y_pred = get_boolean(
y_pred_CM = get_boolean(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall the naming of the variables is a tiny bit confusing for me. y_pred is fine but already y_hat is a strange name for the ground truth. The same for the CM that I don't fully understand what it stands for. The same apply for the names of the metrics FP, FN TP and TN that if you know what they are it probably makes perfect sense but otherwise not so much, Being a bit more verbose in the naming convention here would be better I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated all the naming to make it more clear. Can you have a look ?

@manonreau manonreau merged commit 83713bf into master Dec 11, 2020
@manonreau manonreau deleted the fix_test_pretrained branch January 18, 2021 15:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants