Skip to content

Commit d0ab63a

Browse files
authored
Merge pull request #2 from lazarust/basic-neural-network-classifier
Adds basic classifier, docs, and more
2 parents 5344d96 + 05b263b commit d0ab63a

22 files changed

+1173
-316
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

Lines changed: 3 additions & 0 deletions
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+
# Ignoring this file since it's mainly used for local development using Zed
165+
pyrightconfig.json

.pre-commit-config.yaml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,3 @@ repos:
55
- id: ruff
66
args: [--fix]
77
- id: ruff-format
8-
- repo: https://github.com/jazzband/pip-tools
9-
rev: 7.4.1
10-
hooks:
11-
- id: pip-compile
12-
name: pip-compile requirements-dev.in
13-
args: [requirements-dev.in]
14-
files: ^requirements-dev\.(in|txt)$
15-
- id: pip-compile
16-
name: pip-compile requirements.in
17-
args: [requirements.in]
18-
files: ^requirements\.(in|txt)$

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11

.readthedocs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
6+
version: 2
7+
8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-24.04
11+
tools:
12+
python: "3.12"
13+
14+
mkdocs:
15+
configuration: mkdocs.yml
16+
17+
# Optionally declare the Python requirements required to build your docs
18+
python:
19+
install:
20+
- requirements: docs-requirements.txt

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
A scikit-learn compatible neural network library that wraps MLX.
44
Highly inspired by [skorch](https://github.com/skorch-dev/skorch).
55

6-
> [!WARNING]
6+
> [!WARNING]
77
> This is still under development and non of the following examples actually work.
88
99
## Examples
@@ -40,8 +40,6 @@ net = NeuralNetClassifier(
4040
MyModule,
4141
max_epochs=10,
4242
lr=0.1,
43-
# Shuffle training data on each epoch
44-
iterator_train__shuffle=True,
4543
)
4644

4745
net.fit(X, y)

docs-requirements.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mkdocs>=1.6.1
2+
mkdocs-material>=9.5.42

docs-requirements.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# This file was autogenerated by uv via the following command:
2+
# uv pip compile docs-requirements.in -o docs-requirements.txt
3+
babel==2.16.0
4+
# via mkdocs-material
5+
certifi==2024.8.30
6+
# via requests
7+
charset-normalizer==3.4.0
8+
# via requests
9+
click==8.1.7
10+
# via mkdocs
11+
colorama==0.4.6
12+
# via mkdocs-material
13+
ghp-import==2.1.0
14+
# via mkdocs
15+
idna==3.10
16+
# via requests
17+
jinja2==3.1.4
18+
# via
19+
# mkdocs
20+
# mkdocs-material
21+
markdown==3.7
22+
# via
23+
# mkdocs
24+
# mkdocs-material
25+
# pymdown-extensions
26+
markupsafe==3.0.2
27+
# via
28+
# jinja2
29+
# mkdocs
30+
mergedeep==1.3.4
31+
# via
32+
# mkdocs
33+
# mkdocs-get-deps
34+
mkdocs==1.6.1
35+
# via
36+
# -r docs-requirements.in
37+
# mkdocs-material
38+
mkdocs-get-deps==0.2.0
39+
# via mkdocs
40+
mkdocs-material==9.5.42
41+
# via -r docs-requirements.in
42+
mkdocs-material-extensions==1.3.1
43+
# via mkdocs-material
44+
packaging==24.1
45+
# via mkdocs
46+
paginate==0.5.7
47+
# via mkdocs-material
48+
pathspec==0.12.1
49+
# via mkdocs
50+
platformdirs==4.3.6
51+
# via mkdocs-get-deps
52+
pygments==2.18.0
53+
# via mkdocs-material
54+
pymdown-extensions==10.11.2
55+
# via mkdocs-material
56+
python-dateutil==2.9.0.post0
57+
# via ghp-import
58+
pyyaml==6.0.2
59+
# via
60+
# mkdocs
61+
# mkdocs-get-deps
62+
# pymdown-extensions
63+
# pyyaml-env-tag
64+
pyyaml-env-tag==0.1
65+
# via mkdocs
66+
regex==2024.9.11
67+
# via mkdocs-material
68+
requests==2.32.3
69+
# via mkdocs-material
70+
six==1.16.0
71+
# via python-dateutil
72+
urllib3==2.2.3
73+
# via requests
74+
watchdog==5.0.3
75+
# via mkdocs

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Welcome to SKLX
2+
3+
These docs are still very much under construction!

docs/roadmap.md

Whitespace-only changes.

0 commit comments

Comments
 (0)