A simple Tensorflow based library for Deep autoencoder and denoising AE. Library follows sklearn style.
pip install git+https://github.com/rajarsheem/libsdae.git
test.ipynb has small example where both a tiny and a large dataset is used.
from deepautoencoder import StackedAutoEncoder
model = StackedAutoEncoder(dims=[5,6], activations=['relu', 'relu'], noise='gaussian', epoch=[10000,500],
loss='rmse', lr=0.007, batch_size=50, print_step=2000)
# usage 1 - encoding same data
result = model.fit_transform(x)
# usage 2 - fitting on one dataset and transforming (encoding) on another data
model.fit(x)
result = model.transform(np.random.rand(5, x.shape[1]))
You are free to contribute by starting a pull request. Some suggestions are:
Version | Tag | Published |
---|---|---|
1.1 | 6yrs ago |