Skip to content

Commit f141005

Browse files
Deploy docs from deprecate @ 5ba597e
1 parent 2bac7cf commit f141005

28 files changed

+7132
-7033
lines changed
17 Bytes
Loading

refs/pull/334/merge/_sources/notebooks/AutoEncoders.ipynb.txt

Lines changed: 83 additions & 97 deletions
Large diffs are not rendered by default.

refs/pull/334/merge/_sources/notebooks/Basic_Usage.ipynb.txt

Lines changed: 225 additions & 265 deletions
Large diffs are not rendered by default.

refs/pull/334/merge/_sources/notebooks/Benchmarks.ipynb.txt

Lines changed: 73 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"cells": [
33
{
44
"cell_type": "raw",
5-
"id": "4f595ac8",
5+
"id": "d2098092",
66
"metadata": {},
77
"source": [
88
"<a href=\"https://colab.research.google.com/github/adriangb/scikeras/blob/docs-deploy/refs/heads/master/notebooks/Benchmarks.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\">Run in Google Colab</a>"
99
]
1010
},
1111
{
1212
"cell_type": "markdown",
13-
"id": "ecb3854e",
13+
"id": "418feec2",
1414
"metadata": {},
1515
"source": [
1616
"# SciKeras Benchmarks\n",
@@ -31,13 +31,13 @@
3131
{
3232
"cell_type": "code",
3333
"execution_count": 1,
34-
"id": "593ee4bf",
34+
"id": "9a8a6197",
3535
"metadata": {
3636
"execution": {
37-
"iopub.execute_input": "2024-12-12T21:33:44.339321Z",
38-
"iopub.status.busy": "2024-12-12T21:33:44.339129Z",
39-
"iopub.status.idle": "2024-12-12T21:33:48.703555Z",
40-
"shell.execute_reply": "2024-12-12T21:33:48.702471Z"
37+
"iopub.execute_input": "2024-12-12T21:44:12.045338Z",
38+
"iopub.status.busy": "2024-12-12T21:44:12.044960Z",
39+
"iopub.status.idle": "2024-12-12T21:44:15.912883Z",
40+
"shell.execute_reply": "2024-12-12T21:44:15.912025Z"
4141
}
4242
},
4343
"outputs": [
@@ -46,22 +46,8 @@
4646
"output_type": "stream",
4747
"text": [
4848
"WARNING: All log messages before absl::InitializeLog() is called are written to STDERR\n",
49-
"E0000 00:00:1734039224.808030 7945 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
50-
"E0000 00:00:1734039224.813871 7945 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n"
51-
]
52-
},
53-
{
54-
"name": "stderr",
55-
"output_type": "stream",
56-
"text": [
57-
"/home/runner/work/scikeras/scikeras/scikeras/__init__.py:20: UserWarning: \n",
58-
" This project is now deprecated. Keras has re-introduced wrappers with a similar API to those in SciKeras, but they will be better maintained.\n",
59-
" SciKeras was a project to meet a specific need that was developed by a single developer.\n",
60-
" I no longer use Keras nor do I have the time to maintain this project, which became increasingly difficult with multiple versions of Keras and Scikit-Learn to support.\n",
61-
" I thank all of the users and contributors over the years and hope that the new Keras wrappers will meet your needs.\n",
62-
" TODO: add link to Keras docs and release here.\n",
63-
" \n",
64-
" warn(\n"
49+
"E0000 00:00:1734039852.622019 6721 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered\n",
50+
"E0000 00:00:1734039852.628823 6721 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered\n"
6551
]
6652
}
6753
],
@@ -74,7 +60,7 @@
7460
},
7561
{
7662
"cell_type": "markdown",
77-
"id": "17dbc11b",
63+
"id": "833491fc",
7864
"metadata": {},
7965
"source": [
8066
"Silence TensorFlow logging to keep output succinct."
@@ -83,13 +69,13 @@
8369
{
8470
"cell_type": "code",
8571
"execution_count": 2,
86-
"id": "0a4d3079",
72+
"id": "c9a078fe",
8773
"metadata": {
8874
"execution": {
89-
"iopub.execute_input": "2024-12-12T21:33:48.707462Z",
90-
"iopub.status.busy": "2024-12-12T21:33:48.706695Z",
91-
"iopub.status.idle": "2024-12-12T21:33:48.712417Z",
92-
"shell.execute_reply": "2024-12-12T21:33:48.711511Z"
75+
"iopub.execute_input": "2024-12-12T21:44:15.917190Z",
76+
"iopub.status.busy": "2024-12-12T21:44:15.916308Z",
77+
"iopub.status.idle": "2024-12-12T21:44:15.923235Z",
78+
"shell.execute_reply": "2024-12-12T21:44:15.922092Z"
9379
}
9480
},
9581
"outputs": [],
@@ -103,13 +89,13 @@
10389
{
10490
"cell_type": "code",
10591
"execution_count": 3,
106-
"id": "8eca2d91",
92+
"id": "00b82d8f",
10793
"metadata": {
10894
"execution": {
109-
"iopub.execute_input": "2024-12-12T21:33:48.715552Z",
110-
"iopub.status.busy": "2024-12-12T21:33:48.715114Z",
111-
"iopub.status.idle": "2024-12-12T21:33:49.454687Z",
112-
"shell.execute_reply": "2024-12-12T21:33:49.453891Z"
95+
"iopub.execute_input": "2024-12-12T21:44:15.927424Z",
96+
"iopub.status.busy": "2024-12-12T21:44:15.926213Z",
97+
"iopub.status.idle": "2024-12-12T21:44:16.486812Z",
98+
"shell.execute_reply": "2024-12-12T21:44:16.485869Z"
11399
}
114100
},
115101
"outputs": [],
@@ -121,7 +107,7 @@
121107
},
122108
{
123109
"cell_type": "markdown",
124-
"id": "0eaab19f",
110+
"id": "2c216fe1",
125111
"metadata": {},
126112
"source": [
127113
"## 2. Dataset\n",
@@ -132,13 +118,13 @@
132118
{
133119
"cell_type": "code",
134120
"execution_count": 4,
135-
"id": "d8ee4792",
121+
"id": "ca09c0ad",
136122
"metadata": {
137123
"execution": {
138-
"iopub.execute_input": "2024-12-12T21:33:49.458697Z",
139-
"iopub.status.busy": "2024-12-12T21:33:49.458291Z",
140-
"iopub.status.idle": "2024-12-12T21:33:49.726766Z",
141-
"shell.execute_reply": "2024-12-12T21:33:49.726133Z"
124+
"iopub.execute_input": "2024-12-12T21:44:16.490743Z",
125+
"iopub.status.busy": "2024-12-12T21:44:16.490241Z",
126+
"iopub.status.idle": "2024-12-12T21:44:16.840144Z",
127+
"shell.execute_reply": "2024-12-12T21:44:16.838555Z"
142128
}
143129
},
144130
"outputs": [],
@@ -157,7 +143,7 @@
157143
},
158144
{
159145
"cell_type": "markdown",
160-
"id": "1a8087e2",
146+
"id": "497036c9",
161147
"metadata": {},
162148
"source": [
163149
"## 3. Define Keras Model\n",
@@ -168,13 +154,13 @@
168154
{
169155
"cell_type": "code",
170156
"execution_count": 5,
171-
"id": "ed313491",
157+
"id": "ccf7b3ce",
172158
"metadata": {
173159
"execution": {
174-
"iopub.execute_input": "2024-12-12T21:33:49.729503Z",
175-
"iopub.status.busy": "2024-12-12T21:33:49.729208Z",
176-
"iopub.status.idle": "2024-12-12T21:33:49.736201Z",
177-
"shell.execute_reply": "2024-12-12T21:33:49.735017Z"
160+
"iopub.execute_input": "2024-12-12T21:44:16.843737Z",
161+
"iopub.status.busy": "2024-12-12T21:44:16.843410Z",
162+
"iopub.status.idle": "2024-12-12T21:44:16.850249Z",
163+
"shell.execute_reply": "2024-12-12T21:44:16.849087Z"
178164
}
179165
},
180166
"outputs": [],
@@ -204,7 +190,7 @@
204190
},
205191
{
206192
"cell_type": "markdown",
207-
"id": "f2977461",
193+
"id": "fe064f93",
208194
"metadata": {},
209195
"source": [
210196
"## 4. Keras benchmarks"
@@ -213,13 +199,13 @@
213199
{
214200
"cell_type": "code",
215201
"execution_count": 6,
216-
"id": "5134057a",
202+
"id": "285d78c3",
217203
"metadata": {
218204
"execution": {
219-
"iopub.execute_input": "2024-12-12T21:33:49.739648Z",
220-
"iopub.status.busy": "2024-12-12T21:33:49.739224Z",
221-
"iopub.status.idle": "2024-12-12T21:33:49.745228Z",
222-
"shell.execute_reply": "2024-12-12T21:33:49.744110Z"
205+
"iopub.execute_input": "2024-12-12T21:44:16.853253Z",
206+
"iopub.status.busy": "2024-12-12T21:44:16.852708Z",
207+
"iopub.status.idle": "2024-12-12T21:44:16.857705Z",
208+
"shell.execute_reply": "2024-12-12T21:44:16.856708Z"
223209
}
224210
},
225211
"outputs": [],
@@ -230,13 +216,13 @@
230216
{
231217
"cell_type": "code",
232218
"execution_count": 7,
233-
"id": "4a74c804",
219+
"id": "83eff969",
234220
"metadata": {
235221
"execution": {
236-
"iopub.execute_input": "2024-12-12T21:33:49.749067Z",
237-
"iopub.status.busy": "2024-12-12T21:33:49.747670Z",
238-
"iopub.status.idle": "2024-12-12T21:33:49.754258Z",
239-
"shell.execute_reply": "2024-12-12T21:33:49.753204Z"
222+
"iopub.execute_input": "2024-12-12T21:44:16.860753Z",
223+
"iopub.status.busy": "2024-12-12T21:44:16.860272Z",
224+
"iopub.status.idle": "2024-12-12T21:44:16.864872Z",
225+
"shell.execute_reply": "2024-12-12T21:44:16.863931Z"
240226
}
241227
},
242228
"outputs": [],
@@ -248,39 +234,47 @@
248234
{
249235
"cell_type": "code",
250236
"execution_count": 8,
251-
"id": "a01b3bea",
237+
"id": "99dff865",
252238
"metadata": {
253239
"execution": {
254-
"iopub.execute_input": "2024-12-12T21:33:49.757809Z",
255-
"iopub.status.busy": "2024-12-12T21:33:49.756784Z",
256-
"iopub.status.idle": "2024-12-12T21:33:55.699278Z",
257-
"shell.execute_reply": "2024-12-12T21:33:55.698767Z"
240+
"iopub.execute_input": "2024-12-12T21:44:16.868299Z",
241+
"iopub.status.busy": "2024-12-12T21:44:16.868003Z",
242+
"iopub.status.idle": "2024-12-12T21:44:23.808386Z",
243+
"shell.execute_reply": "2024-12-12T21:44:23.807184Z"
258244
}
259245
},
260246
"outputs": [
261247
{
262248
"name": "stdout",
263249
"output_type": "stream",
264250
"text": [
265-
"Training time: 5.69\n",
251+
"Training time: 6.47\n",
266252
"\r",
267-
"\u001b[1m 1/16\u001b[0m \u001b[32m━\u001b[0m\u001b[37m━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[1m0s\u001b[0m 48ms/step"
253+
"\u001b[1m 1/16\u001b[0m \u001b[32m━\u001b[0m\u001b[37m━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[1m1s\u001b[0m 78ms/step"
268254
]
269255
},
270256
{
271257
"name": "stdout",
272258
"output_type": "stream",
273259
"text": [
274260
"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\r",
275-
"\u001b[1m16/16\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 5ms/step "
261+
"\u001b[1m10/16\u001b[0m \u001b[32m━━━━━━━━━━━━\u001b[0m\u001b[37m━━━━━━━━\u001b[0m \u001b[1m0s\u001b[0m 6ms/step "
262+
]
263+
},
264+
{
265+
"name": "stdout",
266+
"output_type": "stream",
267+
"text": [
268+
"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\r",
269+
"\u001b[1m16/16\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 9ms/step"
276270
]
277271
},
278272
{
279273
"name": "stdout",
280274
"output_type": "stream",
281275
"text": [
282276
"\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\r",
283-
"\u001b[1m16/16\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 5ms/step\n"
277+
"\u001b[1m16/16\u001b[0m \u001b[32m━━━━━━━━━━━━━━━━━━━━\u001b[0m\u001b[37m\u001b[0m \u001b[1m0s\u001b[0m 9ms/step\n"
284278
]
285279
},
286280
{
@@ -305,7 +299,7 @@
305299
},
306300
{
307301
"cell_type": "markdown",
308-
"id": "5df17b4c",
302+
"id": "912da84c",
309303
"metadata": {},
310304
"source": [
311305
"## 5. SciKeras benchmark"
@@ -314,13 +308,13 @@
314308
{
315309
"cell_type": "code",
316310
"execution_count": 9,
317-
"id": "e8291e96",
311+
"id": "5850890a",
318312
"metadata": {
319313
"execution": {
320-
"iopub.execute_input": "2024-12-12T21:33:55.701227Z",
321-
"iopub.status.busy": "2024-12-12T21:33:55.700867Z",
322-
"iopub.status.idle": "2024-12-12T21:33:55.703738Z",
323-
"shell.execute_reply": "2024-12-12T21:33:55.703276Z"
314+
"iopub.execute_input": "2024-12-12T21:44:23.811749Z",
315+
"iopub.status.busy": "2024-12-12T21:44:23.811419Z",
316+
"iopub.status.idle": "2024-12-12T21:44:23.816069Z",
317+
"shell.execute_reply": "2024-12-12T21:44:23.815174Z"
324318
}
325319
},
326320
"outputs": [],
@@ -335,21 +329,21 @@
335329
{
336330
"cell_type": "code",
337331
"execution_count": 10,
338-
"id": "00f2669d",
332+
"id": "a3644eb5",
339333
"metadata": {
340334
"execution": {
341-
"iopub.execute_input": "2024-12-12T21:33:55.705565Z",
342-
"iopub.status.busy": "2024-12-12T21:33:55.705115Z",
343-
"iopub.status.idle": "2024-12-12T21:33:58.980436Z",
344-
"shell.execute_reply": "2024-12-12T21:33:58.979833Z"
335+
"iopub.execute_input": "2024-12-12T21:44:23.821206Z",
336+
"iopub.status.busy": "2024-12-12T21:44:23.818791Z",
337+
"iopub.status.idle": "2024-12-12T21:44:29.681714Z",
338+
"shell.execute_reply": "2024-12-12T21:44:29.681188Z"
345339
}
346340
},
347341
"outputs": [
348342
{
349343
"name": "stdout",
350344
"output_type": "stream",
351345
"text": [
352-
"Training time: 3.12\n",
346+
"Training time: 5.72\n",
353347
"Accuracy: 0.89\n"
354348
]
355349
}
@@ -364,7 +358,7 @@
364358
},
365359
{
366360
"cell_type": "markdown",
367-
"id": "9215d012",
361+
"id": "b44c12f4",
368362
"metadata": {},
369363
"source": [
370364
"As you can see, the overhead for SciKeras is <1 sec, and the accuracy is identical."

0 commit comments

Comments
 (0)