File tree Expand file tree Collapse file tree 8 files changed +49
-50
lines changed Expand file tree Collapse file tree 8 files changed +49
-50
lines changed Original file line number Diff line number Diff line change 11
11
12
12
repos :
13
13
- repo : https://github.com/pre-commit/pre-commit-hooks
14
- rev : v4.4 .0
14
+ rev : v5.0 .0
15
15
hooks :
16
16
- id : trailing-whitespace
17
17
- id : end-of-file-fixer
18
18
- id : check-added-large-files
19
19
20
20
- repo : https://github.com/psf/black
21
- rev : 23.9.1
21
+ rev : 24.8.0
22
22
hooks :
23
23
- id : black
24
24
name : " Black: The uncompromising Python code formatter"
25
25
26
26
- repo : https://github.com/PyCQA/isort
27
- rev : 5.12.0
27
+ rev : 5.13.2
28
28
hooks :
29
29
- id : isort
30
30
name : " Sort Imports"
31
31
args : [ "--profile black" ]
32
32
33
33
- repo : https://github.com/codespell-project/codespell
34
- rev : v2.2.6
34
+ rev : v2.3.0
35
35
hooks :
36
36
- id : codespell
37
37
args :
@@ -41,13 +41,13 @@ repos:
41
41
- " *.bib,*.ipynb"
42
42
43
43
- repo : https://github.com/asottile/pyupgrade
44
- rev : v3.13 .0
44
+ rev : v3.17 .0
45
45
hooks :
46
46
- id : pyupgrade
47
47
args : [ --py36-plus ]
48
48
49
49
- repo : https://github.com/PyCQA/bandit
50
- rev : 1.7.5
50
+ rev : 1.7.10
51
51
hooks :
52
52
- id : bandit
53
53
language_version : python3
67
67
68
68
69
69
- repo : https://github.com/kynan/nbstripout
70
- rev : 0.6 .1
70
+ rev : 0.7 .1
71
71
hooks :
72
72
- id : nbstripout
73
73
args :
Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " markdown" ,
5
- "id" : " 52697382 " ,
5
+ "id" : " 0 " ,
6
6
"metadata" : {
7
7
"id" : " 52697382"
8
8
},
13
13
{
14
14
"cell_type" : " code" ,
15
15
"execution_count" : null ,
16
- "id" : " e130bd40 " ,
16
+ "id" : " 1 " ,
17
17
"metadata" : {
18
18
"id" : " e130bd40"
19
19
},
28
28
{
29
29
"cell_type" : " code" ,
30
30
"execution_count" : null ,
31
- "id" : " 592802fe " ,
31
+ "id" : " 2 " ,
32
32
"metadata" : {
33
33
"id" : " 592802fe"
34
34
},
42
42
{
43
43
"cell_type" : " code" ,
44
44
"execution_count" : null ,
45
- "id" : " uTrRNUfn5wg4 " ,
45
+ "id" : " 3 " ,
46
46
"metadata" : {
47
47
"id" : " uTrRNUfn5wg4"
48
48
},
55
55
{
56
56
"cell_type" : " code" ,
57
57
"execution_count" : null ,
58
- "id" : " bf38e2b8 " ,
58
+ "id" : " 4 " ,
59
59
"metadata" : {
60
60
"id" : " bf38e2b8"
61
61
},
70
70
{
71
71
"cell_type" : " code" ,
72
72
"execution_count" : null ,
73
- "id" : " 5fc8603f " ,
73
+ "id" : " 5 " ,
74
74
"metadata" : {
75
75
"colab" : {
76
76
"base_uri" : " https://localhost:8080/" ,
119
119
{
120
120
"cell_type" : " code" ,
121
121
"execution_count" : null ,
122
- "id" : " pXjv4W2hSs20 " ,
122
+ "id" : " 6 " ,
123
123
"metadata" : {
124
124
"colab" : {
125
125
"base_uri" : " https://localhost:8080/" ,
219
219
{
220
220
"cell_type" : " code" ,
221
221
"execution_count" : null ,
222
- "id" : " 9f5d0474 " ,
222
+ "id" : " 7 " ,
223
223
"metadata" : {
224
224
"id" : " 9f5d0474" ,
225
225
"pycharm" : {
251
251
{
252
252
"cell_type" : " code" ,
253
253
"execution_count" : null ,
254
- "id" : " 4a9c19a3 " ,
254
+ "id" : " 8 " ,
255
255
"metadata" : {
256
256
"colab" : {
257
257
"base_uri" : " https://localhost:8080/" ,
508
508
{
509
509
"cell_type" : " code" ,
510
510
"execution_count" : null ,
511
- "id" : " d0b96bd0-3949-4dd5-b6d9-4fa6ac213e30 " ,
511
+ "id" : " 9 " ,
512
512
"metadata" : {
513
513
"colab" : {
514
514
"base_uri" : " https://localhost:8080/"
536
536
{
537
537
"cell_type" : " code" ,
538
538
"execution_count" : null ,
539
- "id" : " 6a95bc01-4291-49a8-bea7-c76ba64bf42a " ,
539
+ "id" : " 10 " ,
540
540
"metadata" : {
541
541
"colab" : {
542
542
"base_uri" : " https://localhost:8080/" ,
Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " markdown" ,
5
- "id" : " 9a226830 " ,
5
+ "id" : " 0 " ,
6
6
"metadata" : {
7
7
"pycharm" : {
8
8
"name" : " #%% md\n "
43
43
{
44
44
"cell_type" : " code" ,
45
45
"execution_count" : null ,
46
- "id" : " 1fffc779 " ,
46
+ "id" : " 1 " ,
47
47
"metadata" : {
48
48
"pycharm" : {
49
49
"name" : " #%%\n "
59
59
{
60
60
"cell_type" : " code" ,
61
61
"execution_count" : null ,
62
- "id" : " b94e30dd " ,
62
+ "id" : " 2 " ,
63
63
"metadata" : {
64
64
"pycharm" : {
65
65
"name" : " #%%\n "
77
77
{
78
78
"cell_type" : " code" ,
79
79
"execution_count" : null ,
80
- "id" : " 3822e6bb " ,
80
+ "id" : " 3 " ,
81
81
"metadata" : {
82
82
"pycharm" : {
83
83
"name" : " #%%\n "
96
96
{
97
97
"cell_type" : " code" ,
98
98
"execution_count" : null ,
99
- "id" : " c53a4e2f " ,
99
+ "id" : " 4 " ,
100
100
"metadata" : {
101
101
"pycharm" : {
102
102
"name" : " #%%\n "
110
110
{
111
111
"cell_type" : " code" ,
112
112
"execution_count" : null ,
113
- "id" : " 31ac27eb " ,
113
+ "id" : " 5 " ,
114
114
"metadata" : {
115
115
"pycharm" : {
116
116
"name" : " #%%\n "
Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " markdown" ,
5
- "id" : " eb3a591f " ,
5
+ "id" : " 0 " ,
6
6
"metadata" : {},
7
7
"source" : [
8
8
" <!--<badge>--><a href=\" https://colab.research.google.com/github/gradsflow/gradsflow/blob/main/examples/nbs/05-model_fit.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a><!--</badge>-->"
11
11
{
12
12
"cell_type" : " code" ,
13
13
"execution_count" : null ,
14
- "id" : " 62f766aa " ,
14
+ "id" : " 1 " ,
15
15
"metadata" : {},
16
16
"outputs" : [],
17
17
"source" : [
32
32
{
33
33
"cell_type" : " code" ,
34
34
"execution_count" : null ,
35
- "id" : " 5794bc62 " ,
35
+ "id" : " 2 " ,
36
36
"metadata" : {},
37
37
"outputs" : [
38
38
{
61
61
{
62
62
"cell_type" : " code" ,
63
63
"execution_count" : null ,
64
- "id" : " fa61d539 " ,
64
+ "id" : " 3 " ,
65
65
"metadata" : {},
66
66
"outputs" : [
67
67
{
90
90
{
91
91
"cell_type" : " code" ,
92
92
"execution_count" : null ,
93
- "id" : " c4be173e " ,
93
+ "id" : " 4 " ,
94
94
"metadata" : {},
95
95
"outputs" : [
96
96
{
Original file line number Diff line number Diff line change 2
2
"cells" : [
3
3
{
4
4
"cell_type" : " markdown" ,
5
- "id" : " 6f5e7c30 " ,
5
+ "id" : " 0 " ,
6
6
"metadata" : {},
7
7
"source" : [
8
8
" <!--<badge>--><a href=\" https://colab.research.google.com/github/gradsflow/gradsflow/blob/main/examples/nbs/06-AutoModel_fit.ipynb\" target=\" _parent\" ><img src=\" https://colab.research.google.com/assets/colab-badge.svg\" alt=\" Open In Colab\" /></a><!--</badge>-->"
9
9
]
10
10
},
11
11
{
12
12
"cell_type" : " markdown" ,
13
- "id" : " 29409c2e " ,
13
+ "id" : " 1 " ,
14
14
"metadata" : {},
15
15
"source" : [
16
16
" This example shows how to search hyperparameters for a model with Tuner module."
19
19
{
20
20
"cell_type" : " code" ,
21
21
"execution_count" : null ,
22
- "id" : " babe34df " ,
22
+ "id" : " 2 " ,
23
23
"metadata" : {},
24
24
"outputs" : [],
25
25
"source" : [
32
32
{
33
33
"cell_type" : " code" ,
34
34
"execution_count" : null ,
35
- "id" : " b61db9fd " ,
35
+ "id" : " 3 " ,
36
36
"metadata" : {},
37
37
"outputs" : [],
38
38
"source" : [
43
43
{
44
44
"cell_type" : " code" ,
45
45
"execution_count" : null ,
46
- "id" : " 52430b02 " ,
46
+ "id" : " 4 " ,
47
47
"metadata" : {},
48
48
"outputs" : [],
49
49
"source" : [
57
57
{
58
58
"cell_type" : " code" ,
59
59
"execution_count" : null ,
60
- "id" : " 067473d3 " ,
60
+ "id" : " 5 " ,
61
61
"metadata" : {},
62
62
"outputs" : [],
63
63
"source" : [
75
75
{
76
76
"cell_type" : " code" ,
77
77
"execution_count" : null ,
78
- "id" : " c46e0094 " ,
78
+ "id" : " 6 " ,
79
79
"metadata" : {},
80
80
"outputs" : [],
81
81
"source" : [
85
85
},
86
86
{
87
87
"cell_type" : " markdown" ,
88
- "id" : " dd8d5d58 " ,
88
+ "id" : " 7 " ,
89
89
"metadata" : {},
90
90
"source" : [
91
91
" ## Registering hyperparameters\n " ,
99
99
{
100
100
"cell_type" : " code" ,
101
101
"execution_count" : null ,
102
- "id" : " f16828b3 " ,
102
+ "id" : " 8 " ,
103
103
"metadata" : {},
104
104
"outputs" : [
105
105
{
122
122
{
123
123
"cell_type" : " code" ,
124
124
"execution_count" : null ,
125
- "id" : " 8b4af23b " ,
125
+ "id" : " 9 " ,
126
126
"metadata" : {},
127
127
"outputs" : [],
128
128
"source" : [
139
139
{
140
140
"cell_type" : " code" ,
141
141
"execution_count" : null ,
142
- "id" : " ef6926ed " ,
142
+ "id" : " 10 " ,
143
143
"metadata" : {},
144
144
"outputs" : [
145
145
{
364
364
},
365
365
{
366
366
"cell_type" : " markdown" ,
367
- "id" : " 85178f72 " ,
367
+ "id" : " 11 " ,
368
368
"metadata" : {},
369
369
"source" : [
370
370
" ### The second way to register hyperparameters is to use Tuner module."
373
373
{
374
374
"cell_type" : " code" ,
375
375
"execution_count" : null ,
376
- "id" : " ad2f4f8f " ,
376
+ "id" : " 12 " ,
377
377
"metadata" : {},
378
378
"outputs" : [],
379
379
"source" : [
388
388
{
389
389
"cell_type" : " code" ,
390
390
"execution_count" : null ,
391
- "id" : " 3b1f7c70 " ,
391
+ "id" : " 13 " ,
392
392
"metadata" : {},
393
393
"outputs" : [],
394
394
"source" : [
400
400
{
401
401
"cell_type" : " code" ,
402
402
"execution_count" : null ,
403
- "id" : " b3dccb5e " ,
403
+ "id" : " 14 " ,
404
404
"metadata" : {},
405
405
"outputs" : [
406
406
{
Original file line number Diff line number Diff line change 1
1
"""Provide some common functionalities/utilities for Datasets"""
2
+
2
3
# Copyright (c) 2021 GradsFlow. All rights reserved.
3
4
#
4
5
# Licensed under the Apache License, Version 2.0 (the "License");
You can’t perform that action at this time.
0 commit comments