josephsdavid / N2D

Library implementation of https://arxiv.org/abs/1908.05968v5
https://n2d.readthedocs.io/en/latest/
MIT License
23 stars 6 forks source link

Saving and Loading -- an error #14

Open youngandbin opened 2 years ago

youngandbin commented 2 years ago

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

wleopach commented 1 year ago

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.