Coder Social home page Coder Social logo

tripletloss-keras-tensorflow's People

Contributors

noelcodella avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tripletloss-keras-tensorflow's Issues

loss values generated by model.fit and model.evaluate are not the same.

Thank you for providing such a valuable code for teaching tripletloss.
I read the code, generated .txt, and ran it successfully.
However, I got a strange problem.
When I feed "the training data" to do "mode.fit", the returned loss value say loss_1 = 0.4684.
But, I feed exactly the same data into "model.evaluate" (right after the above code), I got loss_2 = 1.0.
The loss_1 should be equal (or similar) to loss_2, but It seems not like that.
I had tried for a couple of days to figure out what happened, but I still not found the answer.
It will be appreciated if you could provide some comments, Thanks a lot.

LR_SGD purpose

Hey, thanks for triple loss example!
Could you explain why LR_SGD is used? Could I use any Keras-provided optimizers instead?
Greetings

hard triplet convergence

I use triple loss between data of two modalities to reduce the distance between different modalities of the same class and increase the distance between different modalities of different class. But when I use batch_all loss, the valid set loss has not changed; now using hard_loss, the valid set loss still has not changed. What is the reason? I found some answers that triplet is difficult to converge. What do you do to deal with triplet loss convergence?

multiclass?

Hi! Two questions:

  • Is this code adapt to multiclass instances or only for binary cases?
  • Is possible to have any txt example?
    thanks!

Example *.txt file lists

Hello! First of all, thanks for releasing this didactic code.

Can you make available some example *.txt anchor, positive and negative pairs to run a small test?

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.