Skip to content

Commit 896d8a6

Browse files
committedJul 8, 2024
Update notebooks, add pinned requirements
1 parent edaffd0 commit 896d8a6

8 files changed

+375
-49
lines changed
 

‎.codespell-ignores.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
te
2+
fo
3+
ot
4+
wya
5+
sohw
6+
bu

‎.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ cython_debug/
160160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163+
164+
data/
165+
*_submission.csv

‎.pre-commit-config.yaml

+59
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,62 @@ repos:
66
rev: 0.7.1
77
hooks:
88
- id: nbstripout
9+
10+
- repo: https://github.com/codespell-project/codespell
11+
rev: v2.3.0
12+
hooks:
13+
- id: codespell
14+
name: codespell
15+
description: Checks for common misspellings in text files.
16+
entry: codespell --skip="*.js,*.html,*.css, *.svg" --ignore-words=.codespell-ignores.txt
17+
language: python
18+
types: [text]
19+
20+
21+
- repo: https://github.com/PyCQA/flake8
22+
rev: 7.1.0
23+
hooks:
24+
- id: flake8
25+
args:
26+
- --max-line-length=100
27+
- --max-cognitive-complexity=15
28+
- --ignore=E203,E266,E501,W503,F722
29+
additional_dependencies:
30+
- pep8-naming==0.13.3
31+
- flake8-absolute-import==1.0.0.1
32+
- flake8-bugbear==22.12.6
33+
- flake8-builtins==2.0.1
34+
- flake8-class-attributes-order==0.1.3
35+
- flake8-cognitive-complexity==0.1.0
36+
- flake8-comprehensions==3.10.1
37+
- flake8-pytest-style==1.6.0
38+
39+
- repo: https://github.com/pre-commit/pre-commit-hooks
40+
rev: v4.6.0
41+
hooks:
42+
- id: debug-statements # Check for debugger imports
43+
- id: requirements-txt-fixer # Order requirements alphabetically
44+
- id: check-ast # Simply check whether the files parse as valid python
45+
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
46+
- id: check-builtin-literals # Require literal syntax when initializing empty or zero Python builtin types
47+
- id: check-docstring-first # Check a common error of defining a docstring after code
48+
- id: check-merge-conflict # Check for files that contain merge conflict strings
49+
- id: check-yaml # Check yaml files
50+
args: ["--unsafe"]
51+
- id: end-of-file-fixer # Ensure that a file is either empty, or ends with one newline
52+
- id: mixed-line-ending # Replace or checks mixed line ending
53+
- id: trailing-whitespace # This hook trims trailing whitespace
54+
55+
- repo: https://github.com/kynan/nbstripout
56+
rev: 0.7.1
57+
hooks:
58+
- id: nbstripout
59+
60+
- repo: https://github.com/astral-sh/ruff-pre-commit
61+
rev: v0.5.1
62+
hooks:
63+
# Run the linter.
64+
- id: ruff
65+
args: [--fix, --ignore, F722]
66+
# Run the formatter.
67+
- id: ruff-format

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# hackathon_indabaX_2024
1+
# hackathon_indabaX_2024

‎hackathon_advanced_notebook.ipynb

+2-3
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"id": "SfuI1iQ6KI9J"
6565
},
6666
"source": [
67-
"All notebook submition should be made on Zindi, which will rank submissions based on accuracy, F1-score, and other metrics."
67+
"All notebook submissions should be made on Zindi, which will rank submissions based on accuracy, F1-score, and other metrics."
6868
]
6969
},
7070
{
@@ -174,8 +174,7 @@
174174
},
175175
"outputs": [],
176176
"source": [
177-
"%%capture\n",
178-
"!pip install -r requirements.txt"
177+
"!pip install -r rasterio xarray numpy pandas torch torchvision Pillow Absl-py"
179178
]
180179
},
181180
{

‎hackathon_beginner_notebook.ipynb

+35-45
Large diffs are not rendered by default.

‎requirements.in

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
pandas
2+
numpy
3+
scikit-learn
4+
torch
5+
torcheval
6+
gsutil
7+
pre-commit
8+
rasterio
9+
xarray
10+
numpy
11+
torchvision
12+
Pillow
13+
Absl-py

‎requirements.txt

+256
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,256 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile requirements.in -o requirements.txt
3+
absl-py==2.1.0
4+
# via -r requirements.in
5+
affine==2.4.0
6+
# via rasterio
7+
aiohttp==3.9.5
8+
# via google-auth
9+
aiosignal==1.3.1
10+
# via aiohttp
11+
argcomplete==3.4.0
12+
# via gsutil
13+
async-timeout==4.0.3
14+
# via aiohttp
15+
attrs==23.2.0
16+
# via
17+
# aiohttp
18+
# rasterio
19+
boto==2.49.0
20+
# via gcs-oauth2-boto-plugin
21+
cachetools==5.3.3
22+
# via google-auth
23+
certifi==2024.7.4
24+
# via
25+
# rasterio
26+
# requests
27+
cffi==1.16.0
28+
# via cryptography
29+
cfgv==3.4.0
30+
# via pre-commit
31+
charset-normalizer==3.3.2
32+
# via requests
33+
click==8.1.7
34+
# via
35+
# click-plugins
36+
# cligj
37+
# rasterio
38+
click-plugins==1.1.1
39+
# via rasterio
40+
cligj==0.7.2
41+
# via rasterio
42+
crcmod==1.7
43+
# via gsutil
44+
cryptography==42.0.8
45+
# via pyopenssl
46+
distlib==0.3.8
47+
# via virtualenv
48+
fasteners==0.19
49+
# via
50+
# google-apitools
51+
# gsutil
52+
filelock==3.15.4
53+
# via
54+
# torch
55+
# triton
56+
# virtualenv
57+
frozenlist==1.4.1
58+
# via
59+
# aiohttp
60+
# aiosignal
61+
fsspec==2024.6.1
62+
# via torch
63+
gcs-oauth2-boto-plugin==3.2
64+
# via gsutil
65+
google-apitools==0.5.32
66+
# via gsutil
67+
google-auth==2.17.0
68+
# via
69+
# gcs-oauth2-boto-plugin
70+
# google-auth-httplib2
71+
# gsutil
72+
google-auth-httplib2==0.2.0
73+
# via
74+
# gcs-oauth2-boto-plugin
75+
# gsutil
76+
google-reauth==0.1.1
77+
# via
78+
# gcs-oauth2-boto-plugin
79+
# gsutil
80+
gsutil==5.30
81+
# via -r requirements.in
82+
httplib2==0.20.4
83+
# via
84+
# gcs-oauth2-boto-plugin
85+
# google-apitools
86+
# google-auth-httplib2
87+
# gsutil
88+
# oauth2client
89+
identify==2.6.0
90+
# via pre-commit
91+
idna==3.7
92+
# via
93+
# requests
94+
# yarl
95+
jinja2==3.1.4
96+
# via torch
97+
joblib==1.4.2
98+
# via scikit-learn
99+
markupsafe==2.1.5
100+
# via jinja2
101+
monotonic==1.6
102+
# via gsutil
103+
mpmath==1.3.0
104+
# via sympy
105+
multidict==6.0.5
106+
# via
107+
# aiohttp
108+
# yarl
109+
networkx==3.3
110+
# via torch
111+
nodeenv==1.9.1
112+
# via pre-commit
113+
numpy==2.0.0
114+
# via
115+
# -r requirements.in
116+
# pandas
117+
# rasterio
118+
# scikit-learn
119+
# scipy
120+
# snuggs
121+
# torchvision
122+
# xarray
123+
nvidia-cublas-cu12==12.1.3.1
124+
# via
125+
# nvidia-cudnn-cu12
126+
# nvidia-cusolver-cu12
127+
# torch
128+
nvidia-cuda-cupti-cu12==12.1.105
129+
# via torch
130+
nvidia-cuda-nvrtc-cu12==12.1.105
131+
# via torch
132+
nvidia-cuda-runtime-cu12==12.1.105
133+
# via torch
134+
nvidia-cudnn-cu12==8.9.2.26
135+
# via torch
136+
nvidia-cufft-cu12==11.0.2.54
137+
# via torch
138+
nvidia-curand-cu12==10.3.2.106
139+
# via torch
140+
nvidia-cusolver-cu12==11.4.5.107
141+
# via torch
142+
nvidia-cusparse-cu12==12.1.0.106
143+
# via
144+
# nvidia-cusolver-cu12
145+
# torch
146+
nvidia-nccl-cu12==2.20.5
147+
# via torch
148+
nvidia-nvjitlink-cu12==12.5.82
149+
# via
150+
# nvidia-cusolver-cu12
151+
# nvidia-cusparse-cu12
152+
nvidia-nvtx-cu12==12.1.105
153+
# via torch
154+
oauth2client==4.1.3
155+
# via
156+
# gcs-oauth2-boto-plugin
157+
# google-apitools
158+
packaging==24.1
159+
# via xarray
160+
pandas==2.2.2
161+
# via
162+
# -r requirements.in
163+
# xarray
164+
pillow==10.4.0
165+
# via
166+
# -r requirements.in
167+
# torchvision
168+
platformdirs==4.2.2
169+
# via virtualenv
170+
pre-commit==3.7.1
171+
# via -r requirements.in
172+
pyasn1==0.6.0
173+
# via
174+
# oauth2client
175+
# pyasn1-modules
176+
# rsa
177+
pyasn1-modules==0.4.0
178+
# via
179+
# google-auth
180+
# oauth2client
181+
pycparser==2.22
182+
# via cffi
183+
pyopenssl==24.1.0
184+
# via
185+
# gcs-oauth2-boto-plugin
186+
# gsutil
187+
pyparsing==3.1.2
188+
# via
189+
# httplib2
190+
# snuggs
191+
python-dateutil==2.9.0.post0
192+
# via pandas
193+
pytz==2024.1
194+
# via pandas
195+
pyu2f==0.1.5
196+
# via google-reauth
197+
pyyaml==6.0.1
198+
# via pre-commit
199+
rasterio==1.3.10
200+
# via -r requirements.in
201+
requests==2.32.3
202+
# via google-auth
203+
retry-decorator==1.1.1
204+
# via
205+
# gcs-oauth2-boto-plugin
206+
# gsutil
207+
rsa==4.7.2
208+
# via
209+
# gcs-oauth2-boto-plugin
210+
# google-auth
211+
# oauth2client
212+
scikit-learn==1.5.1
213+
# via -r requirements.in
214+
scipy==1.14.0
215+
# via scikit-learn
216+
setuptools==70.2.0
217+
# via rasterio
218+
six==1.16.0
219+
# via
220+
# gcs-oauth2-boto-plugin
221+
# google-apitools
222+
# google-auth
223+
# gsutil
224+
# oauth2client
225+
# python-dateutil
226+
# pyu2f
227+
snuggs==1.4.7
228+
# via rasterio
229+
sympy==1.12.1
230+
# via torch
231+
threadpoolctl==3.5.0
232+
# via scikit-learn
233+
torch==2.3.1
234+
# via
235+
# -r requirements.in
236+
# torchvision
237+
torcheval==0.0.7
238+
# via -r requirements.in
239+
torchvision==0.18.1
240+
# via -r requirements.in
241+
triton==2.3.1
242+
# via torch
243+
typing-extensions==4.12.2
244+
# via
245+
# torch
246+
# torcheval
247+
tzdata==2024.1
248+
# via pandas
249+
urllib3==2.2.2
250+
# via requests
251+
virtualenv==20.26.3
252+
# via pre-commit
253+
xarray==2024.6.0
254+
# via -r requirements.in
255+
yarl==1.9.4
256+
# via aiohttp

0 commit comments

Comments
 (0)
Failed to load comments.