GithubHelp home page GithubHelp logo

More losses! about mlx HOT 4 CLOSED

h-0-0 avatar h-0-0 commented on July 17, 2024
More losses!

from mlx.

Comments (4)

awni avatar awni commented on July 17, 2024

Definitely! L1 and MSE for sure. I would also add a binary cross entropy as well.

We already started a loss module here but it has no docs yet.

Some testing + docs for any additional losses would be fantastic.

Also, what's the distinction between the nll_loss and the cross_entropy loss we already have?

from mlx.

h-0-0 avatar h-0-0 commented on July 17, 2024

Hi, I'll implement the L1 and MSE losses in that case, and you are correct about the negative log likelihood! I was just going through the pytorch losses and thinking about which would be the most helpful to add. Of course I'll add docs and testing aswell.

from mlx.

awni avatar awni commented on July 17, 2024

There have already been contributions for L1 and MSE. You can see the referenced PRs in this issue to see what's been/being added.

If there are other common losses you'd like to add, feel free to let us know and we can discuss here.

from mlx.

awni avatar awni commented on July 17, 2024

All the losses in this issue have been pushed to main so I will close it. Feel free to open a new issue for new losses.

from mlx.

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.