Giter Site home page Giter Site logo

Comments (3)

bigben-plusplus avatar bigben-plusplus commented on May 11, 2024 2

自编码器一般是基于重构误差最小化进行训练的,一般loss函数选用平方误差函数或者交叉熵误差函数。由于解码器输出端一般采用sigmoid激活,其输出范围在[0,1],所以为了能够获得较小的重构误差,输入数据最好也归一化到[0,1]

训练发散的原因一般是损失函数选择不对或者训练参数设置不合理吧,建议选择交叉熵损失函数和一个较小的学习率训练试试

from tutorials.

liuguiyangnwpu avatar liuguiyangnwpu commented on May 11, 2024

ok, the problem is fixed, I normalize the input into [-1,1].
Thank for your answer.
(PS: My Ubuntu doesn't input chinese .)

from tutorials.

DerekGrant avatar DerekGrant commented on May 11, 2024

@liuguiyangnwpu 麻烦问下你除了归一化外还做了其他的处理吗?我把输入除以255再减0.5以后归一化到了-0.5到0.5. 然后再用binary_crossentropy来训练发现loss为负,不知道你有没有遇到这样的问题,谢谢!

from tutorials.

Related Issues (20)

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.