Skip to main content

Keras deep learning model implementations

Project description

# DeepModels
Implementations of various deep learning models using Keras.

## Requirements
An existing installation of either Tensorflow or Theano.

## Installation
```
pip install deep-models
```

## Usage

The models are implemented using Keras and instantiation returns a Keras Model object unless otherwise noted.

### Wide Residual Network
```python3
from deep_models import wide_residual_network as wrn

# Load your data
trainX = ...
trainY = ...
img_shape = (32, 32, 3)

# Create the model
# k is the width, 6 * n + 4 is the depth
model = wrn.build_model(img_shape, classes=10, n=4, k=10, dropout=0.3)

# Train the model
model.compile(loss="categorical_crossentropy", optimizer="adam", metrics=["acc"])
model.fit(
trainX, trainY,
batch_size=128,
epochs=100,
validation_split=0.2)
```

## Examples
Some working examples are available in the notebooks directory.

## License
See LICENSE file

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

Deep-Models-0.1.5.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

Deep_Models-0.1.5-py3.6.egg (4.9 kB view details)

Uploaded Source

File details

Details for the file Deep-Models-0.1.5.tar.gz.

File metadata

  • Download URL: Deep-Models-0.1.5.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Deep-Models-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cc2ecf467255994fd18815003bdd4e6082a00acc2d549f9866486b61fe3888ac
MD5 57f50c2d717ea7e2f6ef585438c2918d
BLAKE2b-256 89de75eca9c01fec53ab53aa0af946a303746d8fd3b6ebce77a55428f8814435

See more details on using hashes here.

File details

Details for the file Deep_Models-0.1.5-py3.6.egg.

File metadata

File hashes

Hashes for Deep_Models-0.1.5-py3.6.egg
Algorithm Hash digest
SHA256 d35e1d289fa1830f79bccf34ca95d4a164844fa29344d64a54549df3b5f72cd2
MD5 db01b7ecedaff733da6298eba1eec161
BLAKE2b-256 1e27b6fe16680fb214a61b5d1ef499af4d92cb244d03aa34cb386be535d10227

See more details on using hashes here.

Supported by

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