Git Product home page Git Product logo

Comments (3)

lawlite19 avatar lawlite19 commented on June 14, 2024
  1. loss固定在margin大小说明embeddings聚在了一点,没有区分开,尝试降低learning rate 试试;
  2. 另外如果类别很多(这里手写数字之后10个类别应该无碍),输入数据需要进行采样,查看这里

from blog-back-up.

xiaomingdaren123 avatar xiaomingdaren123 commented on June 14, 2024

default
default
dinstance
首先,感谢您的回答
第一张图是我的网络结构,网络结构并不复杂,是一个7分类的问题,学习率已经设置为0.0001,采用Adam优化,但是还是会出现图二的训练情况,我将网络的最后一层求出的distance距离输出看了一下,发现acc等于0的时候我的dis矩阵所有元素基本都开始接近于0了,不知道是什么原因造成的?

from blog-back-up.

sugar2019 avatar sugar2019 commented on June 14, 2024

@xiaomingdaren123 请问您的问题解决了吗?我的batch_hard也遇到了相同的问题,修改网络权重初始值和调节学习率都没有效果。结果自己重新训练的时候就出现了只有第一个step的loss有值,后面就全部都是inf了。

from blog-back-up.

Related Issues (10)

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.