Skip to content

Commit e0dd7a2

Browse files
committed
Update some copyright notices
1 parent 9fd874b commit e0dd7a2

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

notebooks/adversarial/adversarial_cnn-tiny.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@
309309
"version": "3.13.7"
310310
},
311311
"license": {
312-
"full_text": "# Copyright © 2023 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
312+
"full_text": "# Copyright © 2025 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
313313
}
314314
},
315315
"nbformat": 4,

notebooks/adversarial/adversarial_cnn.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334
"version": "3.13.3"
335335
},
336336
"license": {
337-
"full_text": "# Copyright © 2023 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
337+
"full_text": "# Copyright © 2023-2025 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
338338
}
339339
},
340340
"nbformat": 4,

notebooks/adversarial/adversarial_pytorch_cnn.ipynb

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "1f1cbcfa",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"# Adversarial Example with PyTorch CNN\n",
@@ -15,7 +15,7 @@
1515
{
1616
"cell_type": "code",
1717
"execution_count": null,
18-
"id": "80408f10",
18+
"id": "1",
1919
"metadata": {},
2020
"outputs": [],
2121
"source": [
@@ -37,7 +37,7 @@
3737
},
3838
{
3939
"cell_type": "markdown",
40-
"id": "39afe5a8",
40+
"id": "2",
4141
"metadata": {},
4242
"source": [
4343
"## Define CNN model\n",
@@ -48,7 +48,7 @@
4848
{
4949
"cell_type": "code",
5050
"execution_count": null,
51-
"id": "6cb1cee3",
51+
"id": "3",
5252
"metadata": {},
5353
"outputs": [],
5454
"source": [
@@ -70,7 +70,7 @@
7070
},
7171
{
7272
"cell_type": "markdown",
73-
"id": "facae133",
73+
"id": "4",
7474
"metadata": {},
7575
"source": [
7676
"## Load MNIST data\n",
@@ -81,7 +81,7 @@
8181
{
8282
"cell_type": "code",
8383
"execution_count": null,
84-
"id": "a10d8b89",
84+
"id": "5",
8585
"metadata": {},
8686
"outputs": [],
8787
"source": [
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"cell_type": "markdown",
101-
"id": "68d83367",
101+
"id": "6",
102102
"metadata": {},
103103
"source": [
104104
"## Quick training (optional)\n",
@@ -109,7 +109,7 @@
109109
{
110110
"cell_type": "code",
111111
"execution_count": null,
112-
"id": "7965e4d3",
112+
"id": "7",
113113
"metadata": {},
114114
"outputs": [],
115115
"source": [
@@ -128,7 +128,7 @@
128128
" loss.backward()\n",
129129
" optimizer.step()\n",
130130
" running += loss.item() * xb.size(0)\n",
131-
" print(f\"Epoch {epoch+1}: loss={running/len(train_loader.dataset):.4f}\")\n",
131+
" print(f\"Epoch {epoch + 1}: loss={running / len(train_loader.dataset):.4f}\")\n",
132132
"\n",
133133
"# Evaluate quickly\n",
134134
"model.eval()\n",
@@ -140,12 +140,12 @@
140140
" pred = logits.argmax(dim=1).cpu()\n",
141141
" correct += (pred == yb).sum().item()\n",
142142
" total += yb.size(0)\n",
143-
"print(f\"Test accuracy: {correct/total:.3f}\")"
143+
"print(f\"Test accuracy: {correct / total:.3f}\")"
144144
]
145145
},
146146
{
147147
"cell_type": "markdown",
148-
"id": "f59e0148",
148+
"id": "8",
149149
"metadata": {},
150150
"source": [
151151
"## Select a correctly classified example\n",
@@ -156,7 +156,7 @@
156156
{
157157
"cell_type": "code",
158158
"execution_count": null,
159-
"id": "7faadde6",
159+
"id": "9",
160160
"metadata": {},
161161
"outputs": [],
162162
"source": [
@@ -191,7 +191,7 @@
191191
},
192192
{
193193
"cell_type": "markdown",
194-
"id": "76b995a1",
194+
"id": "10",
195195
"metadata": {},
196196
"source": [
197197
"## Build MILP for adversarial example\n",
@@ -204,7 +204,7 @@
204204
{
205205
"cell_type": "code",
206206
"execution_count": null,
207-
"id": "742ca52a-4168-4202-9e9e-6ff77f2a9e30",
207+
"id": "11",
208208
"metadata": {},
209209
"outputs": [],
210210
"source": [
@@ -235,7 +235,7 @@
235235
{
236236
"cell_type": "code",
237237
"execution_count": null,
238-
"id": "44d6f31c-5a58-4873-a1d2-a67745fd22cc",
238+
"id": "12",
239239
"metadata": {},
240240
"outputs": [],
241241
"source": [
@@ -245,7 +245,7 @@
245245
{
246246
"cell_type": "code",
247247
"execution_count": null,
248-
"id": "d29f968a-fb32-4735-a4a6-e2053d593d07",
248+
"id": "13",
249249
"metadata": {},
250250
"outputs": [],
251251
"source": [
@@ -255,7 +255,7 @@
255255
{
256256
"cell_type": "code",
257257
"execution_count": null,
258-
"id": "8f5da81d-4be4-4dcc-b701-d8ffb91583c5",
258+
"id": "14",
259259
"metadata": {},
260260
"outputs": [],
261261
"source": [
@@ -268,7 +268,7 @@
268268
{
269269
"cell_type": "code",
270270
"execution_count": null,
271-
"id": "a7e3ebe5",
271+
"id": "15",
272272
"metadata": {},
273273
"outputs": [],
274274
"source": [
@@ -280,7 +280,7 @@
280280
},
281281
{
282282
"cell_type": "markdown",
283-
"id": "17c5fd6a",
283+
"id": "16",
284284
"metadata": {},
285285
"source": [
286286
"## Visualize result\n",
@@ -291,7 +291,7 @@
291291
{
292292
"cell_type": "code",
293293
"execution_count": null,
294-
"id": "049c27c1",
294+
"id": "17",
295295
"metadata": {},
296296
"outputs": [],
297297
"source": [
@@ -328,7 +328,7 @@
328328
{
329329
"cell_type": "code",
330330
"execution_count": null,
331-
"id": "3cb3162b",
331+
"id": "18",
332332
"metadata": {},
333333
"outputs": [],
334334
"source": [
@@ -353,7 +353,7 @@
353353
{
354354
"cell_type": "code",
355355
"execution_count": null,
356-
"id": "f1c0397c-a5b5-4249-a7f8-273823ad1707",
356+
"id": "19",
357357
"metadata": {},
358358
"outputs": [],
359359
"source": []
@@ -378,7 +378,7 @@
378378
"version": "3.13.3"
379379
},
380380
"license": {
381-
"full_text": "# Copyright © 2023 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
381+
"full_text": "# Copyright © 2025 Gurobi Optimization, LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distributed under the License is distributed on an \"AS IS\" BASIS,\n# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n# See the License for the specific language governing permissions and\n# limitations under the License.\n# =============================================================================="
382382
}
383383
},
384384
"nbformat": 4,

0 commit comments

Comments
 (0)