Giter Site home page Giter Site logo

mehrdadmoradii / neural-network Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 181 KB

A minimalistic deep learning framework developed from scratch for educational purposes.

License: MIT License

Jupyter Notebook 77.54% Python 22.46%
data-science deep-learning machine-learning neural-network tensorflow

neural-network's Introduction

Neural Network

Minimalistic deep learning framework developed from scratch, inspired by Keras and built upon the foundations of the CS231n assignments. Created for educational purposes, this lightweight framework provides a simple and intuitive API for understanding the intricacies of neural network construction and training.

Getting Started

from src.models import Sequential
from src.layers import Dense, ReLU
from src.optimizers import SGD
from src.losses import CrossEntropyLoss


model = Sequential([
    Dense(20, activation=ReLU()),
    Dense(20, activation=ReLU()),
    Dense(20, activation=ReLU()),
    Dense(3)
])

model.compile(
    loss=CrossEntropyLoss(),
    optimizer=SGD(learning_rate=5e-2),
)

history = model.fit(X_train, y_train, epochs=100, batch_size=32, x_val=X_test, y_val=y_test)

Models

  • Sequential: Linear stack of layers for building the neural network.

Layers

  • Dense: Fully connected layer.
  • ReLU: Positive part function.

Optimizers

  • SGD: Stochastic Gradient Descent optimizer.

Losses

  • CrossEntropyLoss: Cross-entropy loss for classification tasks.

Contributing

Contributions are welcome! If you have ideas, suggestions, or find issues, please open a pull request. Your input is highly valued.

License

This project is licensed under the MIT License - see the LICENSE file for details.

neural-network's People

Contributors

mehrdadmoradii avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.