keras-team / autokeras

AutoML library for deep learning
http://autokeras.com/
Apache License 2.0
9.15k stars 1.4k forks source link

NAS for (Variational) Autoencoders #573

Closed tik0 closed 5 years ago

tik0 commented 5 years ago

Feature Description

Training of predefined models with constraints (e.g. bottleneck layers) and additional losses.

Reason

It is unclear how to use autokeras on models with particular constraints, like Autencoders or Bottleneck-Networks. Furthermore, the Variational Autoencoder has additional regularizer and sampling layer.

Solution

Some API like

define model constraints first

ak_model = ak.GenericModel(my_keras_model)
ak_model.fit(x_train, y_train, time_limit=12 * 60 * 60) # while y_train can be also None
ak_model.final_fit(x_train, y_train, x_test, y_test, retrain=True)

Alternative Solutions

-

Additional Context

-

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

maechler commented 4 years ago

@tik0 Have you found out anything on this one? Have you been able to use AutoKeras to create an Autoencoder or did you use something different?

daviembrito commented 2 years ago

I was trying to create a LSTM Autoencoder, but couldn't realize how to do this. Do you have a clue now?

maechler commented 2 years ago

@daviembrito I ended up using a generic hyperparameter optimizer with a simple, handcrafted, chain-structured search space. It worked reasonably well in my use case, but it also introduces a large human bias with quite a limited search space of possible network architectures.

You can have a look at it here:

https://github.com/maechler/a2e https://github.com/maechler/a2e/blob/master/experiments/automl/deep_easing_feed_forward_dropout.py https://github.com/maechler/a2e/blob/master/a2e/model/keras/_feed_forward.py#L111 https://github.com/maechler/a2e/blob/master/a2e/model/keras/_lstm.py#L6