Giter Club home page Giter Club logo

Comments (5)

DavideA avatar DavideA commented on June 13, 2024

Hi and thanks for the interest.

To train the model, you should minimize the LSALoss in novelty-detection/models/loss_functions/lsaloss.py

You should do something like

opt.zero_grad()

x_r, z, z_dist = model(x)
self.loss(x, x_r, z, z_dist).backward()

opt.step()

where x is a normal training example and opt is your favorite torch optimizer.

Hope this helps,
D

from novelty-detection.

17764591637 avatar 17764591637 commented on June 13, 2024

Thank you very much for your reply, I am very interested in the self-encoding method you proposed.

from novelty-detection.

17764591637 avatar 17764591637 commented on June 13, 2024

Good morning, I am bothering you again. I trained the network last night. The parameters are as follows: Data: MNIST,
BATCHSIZE: 64,
Optimization: Adam,
Epoch: 400.
After 400 training sessions, the loss dropped from 500 to 167. I would like to ask how many epochs can train the model or how much loss needs to be dropped to terminate the iteration?thanks!

from novelty-detection.

DavideA avatar DavideA commented on June 13, 2024

Hi,

In our experiment we trained it for 200 epochs. Alternatively, you can try to monitor the reconstruction error on a validation set to pick your checkpoint.

Best,
D

from novelty-detection.

GinGinWang avatar GinGinWang commented on June 13, 2024

Hi, I am replicating your experiment's result. Could you tell me the parameters of your Adam optimizer?
Another question is about to monitor the reconstruction error on a validation set to pick checkpoint, why not monitor the value of novelty score?

Thanks!
Best,
Gin

from novelty-detection.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.