Conversation
…into isic-classifier # Conflicts: # README.md
Owner
Author
|
я плохо поступил так как добавил .idea=( |
tanyapole
reviewed
Nov 10, 2019
| "source": [ | ||
| "def get_model_parameters_to_update(m:models.AlexNet) -> list:\n", | ||
| " params = []\n", | ||
| " for name, param in m.named_parameters():\n", |
Collaborator
There was a problem hiding this comment.
You can just use list(model.parameters()) for this
tanyapole
reviewed
Nov 11, 2019
.idea/.gitignore
Outdated
| @@ -0,0 +1,2 @@ | |||
| # Default ignored files | |||
Collaborator
There was a problem hiding this comment.
Please remove .idea files from git (you can use git rm -r --cached) and add this folder to .gitignore
tanyapole
requested changes
Nov 12, 2019
model_processing/validate_model.py
Outdated
| # trust result | ||
| for t in labels: | ||
| for idx, v in enumerate(t): | ||
| confusion_matrix[idx][v.item()][v.item()] += 1 |
Collaborator
There was a problem hiding this comment.
Why true labels are added to confusion matrix on par with predicted ones?
model_processing/validate_model.py
Outdated
|
|
||
| @staticmethod | ||
| def __calculate_f_measure(conf_matrix: torch.Tensor) -> float: | ||
| precision_w = 0 |
Collaborator
There was a problem hiding this comment.
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?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
я сделал классификатор, думаю стоит обсудить его лично