Skip to main content

Dimensionality Autoencoder

Project description

dim_ae

Dimensionality Reduction Autoencoder built with Keras TF

Package installation

pip install dimae

Usage example

import pandas as pd
import tensorflow as tf

from dimae.autoencoders.autoencoder import AE


df = pd.DataFrame(...)

n_features = df.shape[1]
output_features = 10

ae = AE(n_features, output_features)

batch_size = 8
epochs = 15

dataset = tf.data.Dataset.from_tensor_slices((df.values.astype('float32'), df.values.astype('float32')))
t_dataset = dataset.batch(batch_size)

ae.compile(optimizer = 'adam', loss = 'mse')
ae.fit(t_dataset, epochs = epoches)

encoder = ae.generate_encoder()
encoder.summary()

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

dimae-0.1.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

dimae-0.1.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file dimae-0.1.4.tar.gz.

File metadata

  • Download URL: dimae-0.1.4.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for dimae-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f608de25ab4776bfa6bcc60fb3a320eea38a85f0bae0cfed5b95a0c3f6435b5b
MD5 894013c799ae8ff77d60b0c5f9ad4cb8
BLAKE2b-256 105dc2ab3ff7fea6a0e040d88abd437e49200cf827e652af51c6c53d752e71cd

See more details on using hashes here.

File details

Details for the file dimae-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: dimae-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for dimae-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1832c497ee2d1650292982c746b6c393b6612ac62e60d6c5bffa643cb7d9c72c
MD5 f69cf3227db208e5d47a83cc1f5bc1fa
BLAKE2b-256 f26feb2c960fd82411eff3679cbeaf7e292a261b1371e3881a2e5de0b6db6a78

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