N2D icon indicating copy to clipboard operation
N2D copied to clipboard

Saving and Loading -- an error

Open youngandbin opened this issue 3 years ago • 1 comments

Hi, I followed the exact same codes here (https://n2d.readthedocs.io/en/latest/quickstart.html#installation) The only part I modified is epoch=1 when .fit() instead of using default epoch=1000 but an error appears when loading the model, and I have no clue

AttributeError: 'int' object has no attribute 'encoder'

화면 캡처 2022-06-12 155007

youngandbin avatar Jun 12 '22 06:06 youngandbin

The load function is not well-defined, as it passes 10 as the autoencoder instance. One approach that worked for me was to load the encoder and the manifold separately. This way, you can apply the transformations step by step to new data.

wleopach avatar Aug 22 '23 21:08 wleopach