Skip to content

Commit

Permalink
release on pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
AIboy996 committed Apr 17, 2024
1 parent 3ebcf77 commit 064ba40
Show file tree
Hide file tree
Showing 17 changed files with 98 additions and 3 deletions.
Binary file added dist/npnn-0.0.1-py3-none-any.whl
Binary file not shown.
Binary file added dist/npnn-0.0.1.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ requires-python = ">=3.10"
authors = [
{ name="Yang Zhang", email="[email protected]" },
]
description = "Numpy Neural Network"
description = "NumPy Neural Network"
readme = "readme.md"
license = {file = "LICENSE"}
keywords = ["numpy", "neural network", "machine learning", "autograd"]
Expand Down
8 changes: 7 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# NPNN
# [npnn](https://pypi.org/project/npnn/0.0.1/)
> NumPy Neural Network
[![PyPI - Version](https://img.shields.io/pypi/v/npnn)](https://pypi.org/project/npnn/0.0.1/)
![PyPI - Implementation](https://img.shields.io/pypi/implementation/npnn)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/npnn)
<!-- ![PyPI - Downloads](https://img.shields.io/pypi/dm/npnn) -->


## What's `npnn`?
> `npnn` is a a torch-like Python module for **gradient descent based machine learning** implemented with NumPy.
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
./npnn
npnn
68 changes: 68 additions & 0 deletions src/npnn.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
Metadata-Version: 2.1
Name: npnn
Version: 0.0.1
Summary: NumPy Neural Network
Author-email: Yang Zhang <[email protected]>
License: MIT License

Copyright (c) 2024 Yang Zhang

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project-URL: Homepage, https://github.com/AIboy996/npnn
Keywords: numpy,neural network,machine learning,autograd
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy
Provides-Extra: cuda
Requires-Dist: cupy; extra == "cuda"

# NPNN
> NumPy Neural Network

## What's `npnn`?
> `npnn` is a a torch-like Python module for **gradient descent based machine learning** implemented with NumPy.


## Work with `npnn`!
> construct a image classification neural network with npnn

BTW, this is a course assignment of *DATA620004, School of Data Science, Fudan University*.

### Task
Construct and Train a neural network on [Fashion-MNIST](https://github.com/zalandoresearch/fashion-mnist) to do image classification.

- Implement gradient backpropagation algorithm by hand,you can use `numpy` but **DO NOT** use `pytorch` or `tensorflow` to do autograd.

- Submit source code including at least four parts: `model definition`, `training`, `parameters searching` and `testing`.

### Implementation

- `dataset.py`: provide Fashion MNIST dataset
- `model.py`: model definition
- `train.py`: model training
- `search.py`: parameters searching
- `test.py`: model testing
- `utils.py`: some misc function, such as `save_mode`
15 changes: 15 additions & 0 deletions src/npnn.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
LICENSE
pyproject.toml
readme.md
src/npnn/__init__.py
src/npnn/autograd.py
src/npnn/base.py
src/npnn/functional.py
src/npnn/nn.py
src/npnn/optim.py
src/npnn/test_autograd.py
src/npnn.egg-info/PKG-INFO
src/npnn.egg-info/SOURCES.txt
src/npnn.egg-info/dependency_links.txt
src/npnn.egg-info/requires.txt
src/npnn.egg-info/top_level.txt
1 change: 1 addition & 0 deletions src/npnn.egg-info/dependency_links.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

4 changes: 4 additions & 0 deletions src/npnn.egg-info/requires.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
numpy

[cuda]
cupy
1 change: 1 addition & 0 deletions src/npnn.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npnn
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 064ba40

Please sign in to comment.