Skip to main content

Implementation of neural network

Project description

DeepLearningKit

Description:

Welcome to DeepLearningKit, a Python library crafted with a passion for learning and a drive to simplify the journey into the depths of neural networks. As my inaugural project in this domain, DeepLearningKit is designed primarily for my educational purposes, aiming to help me to understand and experiment with deep learning concepts. This release marks the first version of DeepLearningKit, but the journey doesn't end here! I'll be actively working on improving and expanding the library regularly. Stay tuned for updates and new features in future releases.

Key Features:

  1. Modular Architecture: DeepLearningKit offers a modular architecture allowing users to easily construct neural network models by stacking layers and specifying activation functions.
  2. Customizable Initialization: Users can choose from a variety of weight initialization methods such as RandomNormal, Zero, He, Xavier, and LeCun, or define their custom initialization strategies. (Not complete)
  3. Optimizers: The library provides a selection of optimization algorithms including SGD, Adagrad, RMSProp, Adadelta, and Adam, each with adjustable parameters for fine-tuning the training process.
  4. Loss Functions: DeepLearningKit supports commonly used loss functions such as Categorical Cross-Entropy and Binary Cross-Entropy, enabling users to train models for classification and regression tasks.

Getting Started:

  1. Installation: Install DeepLearningKit using pip:

    pip install deeplearningkit
    
  2. Usage:

    from deeplearningkit import Model, Dense, Activation, Optimizer, Loss
    import numpy as np
    
    # Define and compile the model
    model = Model()
    model.add(Dense(n_inputs=784, n_neurons=128, initializer='he'), Activation('relu'))
    model.add(Dense(n_inputs=128, n_neurons=10, initializer='xavier'), Activation('softmax'))
    model.compile(optimizer=Optimizer.SGD(learning_rate=0.01), loss=Loss.CategoricalCrossEntropy())
    
    # Load and train the model
    X_train, y_train = load_data()
    model.fit(x=X_train, y=y_train, epochs=10, batch_size=32, shuffle=True, display=True, plot=True)
    
    # Evaluate the model
    X_test, y_test = load_test_data()
    model.evaluate(X_test, y_test)
    

Contributing: DeepLearningKit is a beginner-friendly project (because I'm a beginner !), and contributions from all skill levels are welcome! Whether you're fixing bugs or improving (the poor) documentation, your contributions are valuable. Feel free to open issues or pull requests on the GitHub repository.

License: DeepLearningKit is licensed under the MIT License.

Contact: For questions, feedback, or support, please reach out to me via email at dasereno@student.42.fr.

Acknowledgments: This project wouldn't have been possible without the support and guidance from the deep learning community, bigup to the book : 'Neural Network From Scratch' by Harrison Kinsley and Daniel Kukiela <3 . Let's continue to learn and grow together!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deeplearningkit-0.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deeplearningkit-0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file deeplearningkit-0.0.1.tar.gz.

File metadata

  • Download URL: deeplearningkit-0.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for deeplearningkit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 15a93ba156a9b172cc7b397b3dc83b8181933d5300e5fc42fd1412711a65f7d3
MD5 ce714f6f3fe23e43b8b08d1b6dab3765
BLAKE2b-256 278a996c965b6268fdf79f822d7d5aed24376e5c27b84ce5e976d06bbd8e8bb7

See more details on using hashes here.

File details

Details for the file deeplearningkit-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for deeplearningkit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a685433576131eb611c32bfcbaddf4377c375c7fc0b0d73ee883a3fb6b56caa6
MD5 40b53937543e4b7fac422ce69195280c
BLAKE2b-256 640b5e925d5562edbf18248e94f9e4426bd760f85de64b347a7d40181d83bb81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page