xiangli13 / circle-loss Goto Github PK
View Code? Open in Web Editor NEWtf2.0 implementation of circle loss
License: MIT License
tf2.0 implementation of circle loss
License: MIT License
Line 33 in 13aa7ab
your code : margin_n = -self.margin, but in the paper,it is self.margin?
your code : logit_p = tf.reshape(self.scale * alpha_p * (sim_p - margin_p), (-1, 1)), but in the paper, it is
-self.scale
hi committer, thanks for sharing your work!
but confiused with the comment of the CircleLoss
"Inputs is a list of three tensors, the first one contains the positive feature samples, the second contains the negative feature samples, and the third contains the query feartures. "
The features I got from the model and surely with the labels(just like , 1,2,3... not the one_hot method). these are only two variabels here , inputs are array include three variables.
how could i use this inputs in my classification task.
Thanks for sharing the code!
I noticed that the implementation supports the calculation between 1 positive pair and 1 negative pair.
If I have 1 positive pair and N negative pair, I am wondering how to handle the loss more effectively?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.