Skip to content

Commit 630f618

Browse files
[pre-commit.ci] pre-commit suggestions (#197)
* [pre-commit.ci] pre-commit suggestions updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v5.0.0](pre-commit/pre-commit-hooks@v4.4.0...v5.0.0) - [github.com/psf/black: 23.9.1 → 24.8.0](psf/black@23.9.1...24.8.0) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](PyCQA/isort@5.12.0...5.13.2) - [github.com/codespell-project/codespell: v2.2.6 → v2.3.0](codespell-project/codespell@v2.2.6...v2.3.0) - [github.com/asottile/pyupgrade: v3.13.0 → v3.17.0](asottile/pyupgrade@v3.13.0...v3.17.0) - [github.com/PyCQA/bandit: 1.7.5 → 1.7.10](PyCQA/bandit@1.7.5...1.7.10) - [github.com/kynan/nbstripout: 0.6.1 → 0.7.1](kynan/nbstripout@0.6.1...0.7.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 7b095de commit 630f618

File tree

8 files changed

+49
-50
lines changed

8 files changed

+49
-50
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@ ci:
1111

1212
repos:
1313
- repo: https://github.com/pre-commit/pre-commit-hooks
14-
rev: v4.4.0
14+
rev: v5.0.0
1515
hooks:
1616
- id: trailing-whitespace
1717
- id: end-of-file-fixer
1818
- id: check-added-large-files
1919

2020
- repo: https://github.com/psf/black
21-
rev: 23.9.1
21+
rev: 24.8.0
2222
hooks:
2323
- id: black
2424
name: "Black: The uncompromising Python code formatter"
2525

2626
- repo: https://github.com/PyCQA/isort
27-
rev: 5.12.0
27+
rev: 5.13.2
2828
hooks:
2929
- id: isort
3030
name: "Sort Imports"
3131
args: [ "--profile black" ]
3232

3333
- repo: https://github.com/codespell-project/codespell
34-
rev: v2.2.6
34+
rev: v2.3.0
3535
hooks:
3636
- id: codespell
3737
args:
@@ -41,13 +41,13 @@ repos:
4141
- "*.bib,*.ipynb"
4242

4343
- repo: https://github.com/asottile/pyupgrade
44-
rev: v3.13.0
44+
rev: v3.17.0
4545
hooks:
4646
- id: pyupgrade
4747
args: [ --py36-plus ]
4848

4949
- repo: https://github.com/PyCQA/bandit
50-
rev: 1.7.5
50+
rev: 1.7.10
5151
hooks:
5252
- id: bandit
5353
language_version: python3
@@ -67,7 +67,7 @@ repos:
6767

6868

6969
- repo: https://github.com/kynan/nbstripout
70-
rev: 0.6.1
70+
rev: 0.7.1
7171
hooks:
7272
- id: nbstripout
7373
args:

examples/nbs/02-TextClassification.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "52697382",
5+
"id": "0",
66
"metadata": {
77
"id": "52697382"
88
},
@@ -13,7 +13,7 @@
1313
{
1414
"cell_type": "code",
1515
"execution_count": null,
16-
"id": "e130bd40",
16+
"id": "1",
1717
"metadata": {
1818
"id": "e130bd40"
1919
},
@@ -28,7 +28,7 @@
2828
{
2929
"cell_type": "code",
3030
"execution_count": null,
31-
"id": "592802fe",
31+
"id": "2",
3232
"metadata": {
3333
"id": "592802fe"
3434
},
@@ -42,7 +42,7 @@
4242
{
4343
"cell_type": "code",
4444
"execution_count": null,
45-
"id": "uTrRNUfn5wg4",
45+
"id": "3",
4646
"metadata": {
4747
"id": "uTrRNUfn5wg4"
4848
},
@@ -55,7 +55,7 @@
5555
{
5656
"cell_type": "code",
5757
"execution_count": null,
58-
"id": "bf38e2b8",
58+
"id": "4",
5959
"metadata": {
6060
"id": "bf38e2b8"
6161
},
@@ -70,7 +70,7 @@
7070
{
7171
"cell_type": "code",
7272
"execution_count": null,
73-
"id": "5fc8603f",
73+
"id": "5",
7474
"metadata": {
7575
"colab": {
7676
"base_uri": "https://localhost:8080/",
@@ -119,7 +119,7 @@
119119
{
120120
"cell_type": "code",
121121
"execution_count": null,
122-
"id": "pXjv4W2hSs20",
122+
"id": "6",
123123
"metadata": {
124124
"colab": {
125125
"base_uri": "https://localhost:8080/",
@@ -219,7 +219,7 @@
219219
{
220220
"cell_type": "code",
221221
"execution_count": null,
222-
"id": "9f5d0474",
222+
"id": "7",
223223
"metadata": {
224224
"id": "9f5d0474",
225225
"pycharm": {
@@ -251,7 +251,7 @@
251251
{
252252
"cell_type": "code",
253253
"execution_count": null,
254-
"id": "4a9c19a3",
254+
"id": "8",
255255
"metadata": {
256256
"colab": {
257257
"base_uri": "https://localhost:8080/",
@@ -508,7 +508,7 @@
508508
{
509509
"cell_type": "code",
510510
"execution_count": null,
511-
"id": "d0b96bd0-3949-4dd5-b6d9-4fa6ac213e30",
511+
"id": "9",
512512
"metadata": {
513513
"colab": {
514514
"base_uri": "https://localhost:8080/"
@@ -536,7 +536,7 @@
536536
{
537537
"cell_type": "code",
538538
"execution_count": null,
539-
"id": "6a95bc01-4291-49a8-bea7-c76ba64bf42a",
539+
"id": "10",
540540
"metadata": {
541541
"colab": {
542542
"base_uri": "https://localhost:8080/",

examples/nbs/04-RayDataset.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "9a226830",
5+
"id": "0",
66
"metadata": {
77
"pycharm": {
88
"name": "#%% md\n"
@@ -43,7 +43,7 @@
4343
{
4444
"cell_type": "code",
4545
"execution_count": null,
46-
"id": "1fffc779",
46+
"id": "1",
4747
"metadata": {
4848
"pycharm": {
4949
"name": "#%%\n"
@@ -59,7 +59,7 @@
5959
{
6060
"cell_type": "code",
6161
"execution_count": null,
62-
"id": "b94e30dd",
62+
"id": "2",
6363
"metadata": {
6464
"pycharm": {
6565
"name": "#%%\n"
@@ -77,7 +77,7 @@
7777
{
7878
"cell_type": "code",
7979
"execution_count": null,
80-
"id": "3822e6bb",
80+
"id": "3",
8181
"metadata": {
8282
"pycharm": {
8383
"name": "#%%\n"
@@ -96,7 +96,7 @@
9696
{
9797
"cell_type": "code",
9898
"execution_count": null,
99-
"id": "c53a4e2f",
99+
"id": "4",
100100
"metadata": {
101101
"pycharm": {
102102
"name": "#%%\n"
@@ -110,7 +110,7 @@
110110
{
111111
"cell_type": "code",
112112
"execution_count": null,
113-
"id": "31ac27eb",
113+
"id": "5",
114114
"metadata": {
115115
"pycharm": {
116116
"name": "#%%\n"

examples/nbs/05-model_fit.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "eb3a591f",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"<!--<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,7 +11,7 @@
1111
{
1212
"cell_type": "code",
1313
"execution_count": null,
14-
"id": "62f766aa",
14+
"id": "1",
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
@@ -32,7 +32,7 @@
3232
{
3333
"cell_type": "code",
3434
"execution_count": null,
35-
"id": "5794bc62",
35+
"id": "2",
3636
"metadata": {},
3737
"outputs": [
3838
{
@@ -61,7 +61,7 @@
6161
{
6262
"cell_type": "code",
6363
"execution_count": null,
64-
"id": "fa61d539",
64+
"id": "3",
6565
"metadata": {},
6666
"outputs": [
6767
{
@@ -90,7 +90,7 @@
9090
{
9191
"cell_type": "code",
9292
"execution_count": null,
93-
"id": "c4be173e",
93+
"id": "4",
9494
"metadata": {},
9595
"outputs": [
9696
{

examples/nbs/06-AutoModel_fit.ipynb

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "6f5e7c30",
5+
"id": "0",
66
"metadata": {},
77
"source": [
88
"<!--<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>-->"
99
]
1010
},
1111
{
1212
"cell_type": "markdown",
13-
"id": "29409c2e",
13+
"id": "1",
1414
"metadata": {},
1515
"source": [
1616
"This example shows how to search hyperparameters for a model with Tuner module."
@@ -19,7 +19,7 @@
1919
{
2020
"cell_type": "code",
2121
"execution_count": null,
22-
"id": "babe34df",
22+
"id": "2",
2323
"metadata": {},
2424
"outputs": [],
2525
"source": [
@@ -32,7 +32,7 @@
3232
{
3333
"cell_type": "code",
3434
"execution_count": null,
35-
"id": "b61db9fd",
35+
"id": "3",
3636
"metadata": {},
3737
"outputs": [],
3838
"source": [
@@ -43,7 +43,7 @@
4343
{
4444
"cell_type": "code",
4545
"execution_count": null,
46-
"id": "52430b02",
46+
"id": "4",
4747
"metadata": {},
4848
"outputs": [],
4949
"source": [
@@ -57,7 +57,7 @@
5757
{
5858
"cell_type": "code",
5959
"execution_count": null,
60-
"id": "067473d3",
60+
"id": "5",
6161
"metadata": {},
6262
"outputs": [],
6363
"source": [
@@ -75,7 +75,7 @@
7575
{
7676
"cell_type": "code",
7777
"execution_count": null,
78-
"id": "c46e0094",
78+
"id": "6",
7979
"metadata": {},
8080
"outputs": [],
8181
"source": [
@@ -85,7 +85,7 @@
8585
},
8686
{
8787
"cell_type": "markdown",
88-
"id": "dd8d5d58",
88+
"id": "7",
8989
"metadata": {},
9090
"source": [
9191
"## Registering hyperparameters\n",
@@ -99,7 +99,7 @@
9999
{
100100
"cell_type": "code",
101101
"execution_count": null,
102-
"id": "f16828b3",
102+
"id": "8",
103103
"metadata": {},
104104
"outputs": [
105105
{
@@ -122,7 +122,7 @@
122122
{
123123
"cell_type": "code",
124124
"execution_count": null,
125-
"id": "8b4af23b",
125+
"id": "9",
126126
"metadata": {},
127127
"outputs": [],
128128
"source": [
@@ -139,7 +139,7 @@
139139
{
140140
"cell_type": "code",
141141
"execution_count": null,
142-
"id": "ef6926ed",
142+
"id": "10",
143143
"metadata": {},
144144
"outputs": [
145145
{
@@ -364,7 +364,7 @@
364364
},
365365
{
366366
"cell_type": "markdown",
367-
"id": "85178f72",
367+
"id": "11",
368368
"metadata": {},
369369
"source": [
370370
"### The second way to register hyperparameters is to use Tuner module."
@@ -373,7 +373,7 @@
373373
{
374374
"cell_type": "code",
375375
"execution_count": null,
376-
"id": "ad2f4f8f",
376+
"id": "12",
377377
"metadata": {},
378378
"outputs": [],
379379
"source": [
@@ -388,7 +388,7 @@
388388
{
389389
"cell_type": "code",
390390
"execution_count": null,
391-
"id": "3b1f7c70",
391+
"id": "13",
392392
"metadata": {},
393393
"outputs": [],
394394
"source": [
@@ -400,7 +400,7 @@
400400
{
401401
"cell_type": "code",
402402
"execution_count": null,
403-
"id": "b3dccb5e",
403+
"id": "14",
404404
"metadata": {},
405405
"outputs": [
406406
{

gradsflow/data/common.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Provide some common functionalities/utilities for Datasets"""
2+
23
# Copyright (c) 2021 GradsFlow. All rights reserved.
34
#
45
# Licensed under the Apache License, Version 2.0 (the "License");

0 commit comments

Comments
 (0)