Skip to content

Commit

Permalink
whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
JustineBoulant committed Jun 15, 2021
1 parent a869701 commit b7ec1ce
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions notebooks/reference_scenarios/benchmarks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"metadata": {},
"outputs": [],
"source": [
"NB_EPOCH = 40\n",
"NB_MINIBATCH = 20\n",
"NB_GRAD_UPDATE = 8"
"NB_EPOCH=40\n",
"NB_MINIBATCH=20\n",
"NB_GRAD_UPDATE=8"
]
},
{
Expand Down Expand Up @@ -65,16 +65,16 @@
"outputs": [],
"source": [
"sc1 = Scenario(\n",
" scenario_id = 1,\n",
" scenario_id=1,\n",
" partners_count=2,\n",
" dataset='mnist',\n",
" amounts_per_partner = [0.7, 0.3],\n",
" amounts_per_partner=[0.7, 0.3],\n",
" samples_split_option='stratified',\n",
" multi_partner_learning_approach='fedavg', #default\n",
" aggregation='data-volume', #default\n",
" contributivity_methods=[\"Independent scores\",\"Shapley values\"],\n",
" epoch_count=NB_EPOCH,\n",
" minibatch_count = NB_MINIBATCH,\n",
" minibatch_count=NB_MINIBATCH,\n",
" gradient_updates_per_pass_count=NB_GRAD_UPDATE,\n",
" )"
]
Expand All @@ -100,17 +100,17 @@
"outputs": [],
"source": [
"sc2 = Scenario(\n",
" scenario_id = 2,\n",
" scenario_id=2,\n",
" partners_count=2,\n",
" dataset='cifar10',\n",
" amounts_per_partner = [0.7, 0.3],\n",
" amounts_per_partner=[0.7, 0.3],\n",
" samples_split_option='random', #default\n",
" corruption_parameters=['not-corrupted',Randomize(proportion=0.5)],\n",
" multi_partner_learning_approach='fedavg', #default\n",
" aggregation='data-volume', #default\n",
" contributivity_methods=[\"Independent scores\",\"Shapley values\"],\n",
" epoch_count=NB_EPOCH,\n",
" minibatch_count = NB_MINIBATCH,\n",
" minibatch_count=NB_MINIBATCH,\n",
" gradient_updates_per_pass_count=NB_GRAD_UPDATE,\n",
" )"
]
Expand Down Expand Up @@ -274,7 +274,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.7.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b7ec1ce

Please sign in to comment.