Skip to content

Comments

Isic classifier#1

Open
glcanvas wants to merge 11 commits intoisic-classifier-reviewfrom
isic-classifier
Open

Isic classifier#1
glcanvas wants to merge 11 commits intoisic-classifier-reviewfrom
isic-classifier

Conversation

@glcanvas
Copy link
Owner

@glcanvas glcanvas commented Nov 7, 2019

я сделал классификатор, думаю стоит обсудить его лично

@glcanvas glcanvas added the good first issue Good for newcomers label Nov 7, 2019
@glcanvas glcanvas requested a review from tanyapole November 7, 2019 21:17
@glcanvas
Copy link
Owner Author

glcanvas commented Nov 7, 2019

я плохо поступил так как добавил .idea=(

"source": [
"def get_model_parameters_to_update(m:models.AlexNet) -> list:\n",
" params = []\n",
" for name, param in m.named_parameters():\n",
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can just use list(model.parameters()) for this

.idea/.gitignore Outdated
@@ -0,0 +1,2 @@
# Default ignored files
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove .idea files from git (you can use git rm -r --cached) and add this folder to .gitignore

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

# trust result
for t in labels:
for idx, v in enumerate(t):
confusion_matrix[idx][v.item()][v.item()] += 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why true labels are added to confusion matrix on par with predicted ones?

Copy link
Owner Author

Choose a reason for hiding this comment

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

oops... not needed here


@staticmethod
def __calculate_f_measure(conf_matrix: torch.Tensor) -> float:
precision_w = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

f measure implementation is unclear to me. could you improve readability or explain it to me? which option did you choose https://scikit-learn.org/stable/modules/model_evaluation.html#from-binary-to-multiclass-and-multilabel?

Copy link
Owner Author

Choose a reason for hiding this comment

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

added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants