Coder Social home page Coder Social logo

Comments (2)

dselivanov avatar dselivanov commented on June 6, 2024

@ZacharyDeBruine are you referring to the CRAN version of the package? May we know your sessionInfo() ?

Stopping criterion is following: https://github.com/rexyai/rsparse/blob/0ea378bc8c1cbe3e0ee2af3dbd9762e2a843655e/R/model_WRMF.R#L237
ALS optimization step by design should decrease loss. If loss starting to grow - there is no point to continue. Sudden loss increase seems related to the way NMF was initially implemented (somewhat similar to "projected gradient" method) - see discussion in #36. You can install github version of the pkg from master branch and test if it works for you.

However, if your algorithm really is not meant to handle missing values, then that should be in big bold letters at the top of the package documentation so the theoretical implications are understood by all users immediately.

First of all I would definitely phrase this differently as it sounds really rude. Secondly algorithm treats missing values as missing values but not zeros as in your dense.nnls example. So it tries to minimize error only for observed values and ignores missing. Anyway there was a bug in implementation - see discussion in #35. Now it is fixed in master branch.

from rsparse.

zdebruine avatar zdebruine commented on June 6, 2024

Thanks for the quick reply! Ah, yes the discussion and fix in #36 is exactly what I was after. I was using the CRAN version. Opened up the GitHub latest commit and it's great now.

Thanks for all your hard work on this! Sorry I was a bit overstated on my frustration. Now I get the concept of minimizing error only for observed values but not for missing values.

from rsparse.

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.