-
Notifications
You must be signed in to change notification settings - Fork 742
Fix flake8 error #1618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix flake8 error #1618
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
81fd5ad
fix #1617
KumoLiu d9badbb
fix flake8
KumoLiu 01673c4
fix flake8
KumoLiu 98447af
revert bundle tutorial
KumoLiu 68ad467
minor fix
KumoLiu 7092001
minor fix
KumoLiu 3ec08dd
Update mednist_classifier_bentoml.ipynb
KumoLiu cec5bda
Merge remote-tracking branch 'yliu/flake8' into flake8
KumoLiu 525072b
DCO Remediation Commit for YunLiu <[email protected]…
KumoLiu 279e317
minor fix
KumoLiu c7ac206
address comments
KumoLiu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -265,7 +265,9 @@ | |
"cell_type": "code", | ||
"execution_count": 3, | ||
"id": "d11681af-3210-4b2b-b7bd-8ad8dedfe230", | ||
"metadata": {}, | ||
"metadata": { | ||
"lines_to_next_cell": 2 | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
|
@@ -310,8 +312,7 @@ | |
" - _target_: EnsureChannelFirstd\n", | ||
" keys: 'image'\n", | ||
" - _target_: ScaleIntensityd\n", | ||
" keys: 'image'\n", | ||
" " | ||
" keys: 'image'" | ||
] | ||
}, | ||
{ | ||
|
@@ -369,19 +370,19 @@ | |
" num_workers: 4\n", | ||
"\n", | ||
"trainer:\n", | ||
" _target_: SupervisedTrainer\n", | ||
" device: '@device'\n", | ||
" max_epochs: '@max_epochs'\n", | ||
" train_data_loader: '@train_dl'\n", | ||
" network: '@net'\n", | ||
" optimizer: \n", | ||
" _target_: torch.optim.Adam\n", | ||
" params: '[email protected]()'\n", | ||
" lr: 0.00001 # learning rate set slow so that you can see network improvement over epochs\n", | ||
" loss_function: \n", | ||
" _target_: torch.nn.CrossEntropyLoss\n", | ||
" inferer: \n", | ||
" _target_: SimpleInferer\n", | ||
" _target_: SupervisedTrainer\n", | ||
" device: '@device'\n", | ||
" max_epochs: '@max_epochs'\n", | ||
" train_data_loader: '@train_dl'\n", | ||
" network: '@net'\n", | ||
" optimizer: \n", | ||
" _target_: torch.optim.Adam\n", | ||
" params: '[email protected]()'\n", | ||
" lr: 0.00001 # learning rate set slow so that you can see network improvement over epochs\n", | ||
" loss_function: \n", | ||
" _target_: torch.nn.CrossEntropyLoss\n", | ||
" inferer: \n", | ||
" _target_: SimpleInferer\n", | ||
"\n", | ||
"train:\n", | ||
"- '[email protected]()'\n", | ||
|
@@ -527,8 +528,7 @@ | |
" prob = result.detach().to(\"cpu\")[0]\n", | ||
" pred = class_names[prob.argmax()]\n", | ||
" gt = item[\"class_name\"][0]\n", | ||
" print(f\"Prediction: {pred}. Ground-truth: {gt}\")\n", | ||
" " | ||
" print(f\"Prediction: {pred}. Ground-truth: {gt}\")\n" | ||
] | ||
}, | ||
{ | ||
|
@@ -543,7 +543,9 @@ | |
"cell_type": "code", | ||
"execution_count": 9, | ||
"id": "b4e1f99a-a68b-4aeb-bcf2-842f26609b52", | ||
"metadata": {}, | ||
"metadata": { | ||
"lines_to_next_cell": 2 | ||
}, | ||
"outputs": [ | ||
{ | ||
"name": "stdout", | ||
|
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.