distillation python base code initial commit #1

Open
ruby wants to merge 1 commit from ruby/tensorflow_privacy:akemi/lira_2021_fix into akemi/lira_2021_fix
Owner
No description provided.
ruby added 1 commit 2024-11-05 21:08:47 -07:00
akemi requested changes 2024-11-05 21:13:57 -07:00
akemi left a comment
Owner

Nice distillation! I'll give it a run shortly on the other machine. It might be nice to put the code being executed at the end, away from the class/function definitions

Nice distillation! I'll give it a run shortly on the other machine. It might be nice to put the code being executed at the end, away from the class/function definitions
@ -0,0 +29,4 @@
test_loader = torch.utils.data.DataLoader(test_dataset, batch_size=128, shuffle=False, num_workers=2)
# Deeper neural network class to be used as teacher:
Owner

I'm assuming future commits will change this one to a resnet?

I'm assuming future commits will change this one to a resnet?
@ -0,0 +130,4 @@
print(f"Test Accuracy: {accuracy:.2f}%")
return accuracy
torch.manual_seed(42)
Owner

Why are these lines in the middle?

Why are these lines in the middle?
@ -0,0 +470,4 @@
# Initialize a ModifiedLightNNRegressor
torch.manual_seed(42)
Owner

I think we need a main function or something, I'm having a bit of trouble following the flow of this code

I think we need a main function or something, I'm having a bit of trouble following the flow of this code
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u akemi/lira_2021_fix:ruby-akemi/lira_2021_fix
git checkout ruby-akemi/lira_2021_fix

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git checkout akemi/lira_2021_fix
git merge --no-ff ruby-akemi/lira_2021_fix
git checkout ruby-akemi/lira_2021_fix
git rebase akemi/lira_2021_fix
git checkout akemi/lira_2021_fix
git merge --ff-only ruby-akemi/lira_2021_fix
git checkout ruby-akemi/lira_2021_fix
git rebase akemi/lira_2021_fix
git checkout akemi/lira_2021_fix
git merge --no-ff ruby-akemi/lira_2021_fix
git checkout akemi/lira_2021_fix
git merge --squash ruby-akemi/lira_2021_fix
git checkout akemi/lira_2021_fix
git merge --ff-only ruby-akemi/lira_2021_fix
git checkout akemi/lira_2021_fix
git merge ruby-akemi/lira_2021_fix
git push origin akemi/lira_2021_fix
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: 626_privacy/tensorflow_privacy#1
No description provided.