Skip to main content

DeepThink

DeepThink is a deep learning library for Python, designed as a learning project and as a resource for others looking to learn about deep learning. It provides a high-level interface for building, training, and evaluating deep learning models, as well as a range of utilities for working with data and optimizing models.

Features

  • A high-level API for defining, training, and evaluating models with minimal code
  • Utilities for data loading, preprocessing, and model evaluation
  • Tools for debugging, profiling, and optimizing models
  • A range of examples to illustrate several use cases

Please note that DeepThink is a basic deep learning library and may not have the same level of performance or support for advanced features as other more established deep learning libraries.

Installation

pip install deepthink

Quickstart

Here is a simple example of how to use DeepThink to train a deep learning model:

from deepthink.optimizers import Adam
from deepthink.layers import Dense, Conv2D, MaxPooling, Flatten
from deepthink.model import Model
from deepthink.activations import ReLU,  Softmax
from deepthink.utils import load_mnist_data
from deepthink.loss import CategoricalCrossEntropy

# Load dataset
training_data, test_data = load_mnist_data()

# Creating a model
optimizer = Adam(0.001)
model = Model(optimizer, cost=CategoricalCrossEntropy(), batch_size=64)

model.add_layer(Conv2D(kernel_size=5, n_filters=8,
                       input_shape=(64, 1, 28, 28)))
model.add_layer(ReLU())
model.add_layer(MaxPooling())
model.add_layer(Flatten())
model.add_layer(Dense(16))
model.add_layer(ReLU())
model.add_layer(Dense(10))
model.add_layer(Softmax())

model.initialize()

# Train the model
history = model.train(training_data, test_data, epochs=5)

You can find additional examples in the examples directory.

Contributing

Contributions are more than welcome to DeepThink! If you would like to report a bug, request a feature, or contribute code, please create an issue or submit a pull request.

License

DeepThink is released under the MIT License.

Metadata

Release files for deepthink 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepthink 0.2.1
File Size Uploaded
deepthink-0.2.1.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepthink 0.2.1
File Interpreter ABI Platform
deepthink-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 52.7 kB

Release files / deepthink-0.2.1.tar.gz

Download URL deepthink-0.2.1.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
38c99eb83c8ee6f3fffc6d5228946a0cee4e86b43017d8511fdfc214b9406f7c
BLAKE2b-256 checksum
How to use checksums
02dfc7353c96df5f6ea2cc4015f3626f422e3df260e7505c0175aa75501dcc12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / deepthink-0.2.1-py3-none-any.whl

Download URL deepthink-0.2.1-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
555b278fbc69f0cd62d916c9e7531f0cc0a20389a70b512257a38508894b130e
BLAKE2b-256 checksum
How to use checksums
a4fde422ecb94bee280eb778fd311d43f334e82801736c63cba0d32610e74186
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.9

3 release files

0.1.4

1 release file

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page