Skip to main content

This is a machine learning--more specifically deep learning--library from my independent study on deep learning. This library is both a result of my learning and a tool for AI development.

Project description

Deeplearning Package

Overview

This package is designed to be similar to the PyTorch system of a building block system. Providing the functions that can be mixed, matched, and customized as pleased for any given model. This library is bare bones and only includes the few methods and ideas I learned about while studying Deep Learning by Ian Goodfellow et. al.. AI was used in the project, but it was used sparingly.

Modules

This project has four main modules:

  • autogradient.py
  • sequence.py
  • optimizer.py
  • neural_net.py

All of which are automatically part of the initial import of the package.

Making and Running a Model

When creating a model, use the Model class, which runs most of the functions included in the package itself. The first argument is a list of layers or blocks, each element is the steps in the network. These steps can be a Dense, Layer, or Dropout blocks (more will be made), a Dense is just multiple layers stacked back to back.
Training a model is done through: def train(epochs, x_t, y_t, x_v, y_v, val_run=1, l_rate=0.01, _lambda=0.1, batch_size = None) Where epochs is the number of times you train through the data, the #_t means training data and #_v means validation data, x means input, y means output, val_run is the epochs between when you want to test the validation data, l_rate is the learn rate, _lambda is a hyperparameter that determines the strength of the penalty functions, and batch_size determines how large batches will be (if the batch size isn’t a multiple of the data size then it will still run, there is just a smaller batch then the others).

Dependencies

The auto gradient–which is used for back propagation–relies heavily on numpy.

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

rb_deeplearning_lib-0.1.6.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

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

rb_deeplearning_lib-0.1.6-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file rb_deeplearning_lib-0.1.6.tar.gz.

File metadata

  • Download URL: rb_deeplearning_lib-0.1.6.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for rb_deeplearning_lib-0.1.6.tar.gz
Algorithm Hash digest
SHA256 f0b14d806c72da4a1e3f29cb39c787ad7fdbae79c48c9819a33b913844c543b3
MD5 d2c0e3049fff02ecc1b087802a902c0e
BLAKE2b-256 965436c365ff6c08c0a0221c7452423226b4defbf491a76b8127c8dd92f74d3b

See more details on using hashes here.

File details

Details for the file rb_deeplearning_lib-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for rb_deeplearning_lib-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a3af4b239102871f5133d41c0fe52c849ed2072e9e6ccb93b3836c28c0049adf
MD5 d5486948cfcc4d78a8bfb386f595e4e3
BLAKE2b-256 0d38710f294ccb44138516451809adc6cac6328b4bbc35c37c911629ebb0d2ec

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