Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reshalfahsi/neuralnetwork
Implementation of Artificial Neural Network Algorithm
https://github.com/reshalfahsi/neuralnetwork
artificial-intelligence artificial-neural-networks deep-learning deep-neural-networks gradient-descent machine-learning medical-image-processing medical-insurance-costs medmnist neural-network newton-method python
Last synced: about 6 hours ago
JSON representation
Implementation of Artificial Neural Network Algorithm
- Host: GitHub
- URL: https://github.com/reshalfahsi/neuralnetwork
- Owner: reshalfahsi
- License: mit
- Created: 2019-07-19T07:48:06.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-03-20T17:08:57.000Z (8 months ago)
- Last Synced: 2024-07-30T18:02:00.491Z (4 months ago)
- Topics: artificial-intelligence, artificial-neural-networks, deep-learning, deep-neural-networks, gradient-descent, machine-learning, medical-image-processing, medical-insurance-costs, medmnist, neural-network, newton-method, python
- Language: Jupyter Notebook
- Homepage:
- Size: 36.1 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Neural Network
A naive implementation of a neural network. The code structure is heavily inspired by [PyTorch](https://github.com/pytorch/pytorch) and [TensorFlow](https://github.com/tensorflow/tensorflow). However, this package is used for educational purposes and is not intended to be adopted in production.
## Installation
```bash
git clone https://github.com/reshalfahsi/neuralnetwork
cd neuralnetwork
pip install .
```## Quick Demo
Here is a short example of the usage of `neuralnetwork` components. For the complete demo, please take a look at [`examples/classification.py`](https://github.com/reshalfahsi/neuralnetwork/blob/main/examples/classification.py) and [`notebook/Classification.ipynb`](https://github.com/reshalfahsi/neuralnetwork/blob/main/notebook/Classification.ipynb) for the classification problem. We also provide am example for regression problem: [`examples/regression.py`](https://github.com/reshalfahsi/neuralnetwork/blob/main/examples/regression.py) and [`notebook/Regression.ipynb`](https://github.com/reshalfahsi/neuralnetwork/blob/main/notebook/Regression.ipynb).
```python
import neuralnetwork.nn as nn
import numpy as npinput = np.random.randn(1, 1, 200)
m = nn.Linear(200, 100)
out = m(input)print(out.shape)
# (1, 1, 100)
```