Coder Social home page Coder Social logo

recsys's People

Contributors

lpraat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

lingfur

recsys's Issues

KNN when summing similarity matrix

Whenever we add together multiple similarity matrix(of the same size) like we do in ItemKNN I think it's better to apply KNN on the resulting sum rather than applying it singularly on each similarity matrix.

Why I propose this:

  • using this approach we will have just one "knn" parameter to tune, that is the one applied last. This could help even in the future when maybe we will put and sum together other similarity matrix from other kind of algorithms(like SLIM similarity). Moreover, even right now we tune just the item knn and we don't bother about the artist and album knn
  • in the current code aren't we increasing the density of the final similarity matrix?

I think this modification is worth trying and we can see if it actually improves or degrades performance.

I would change, for example, this

 s += cosine_similarity(
                    feature,
                    alpha=feature_alpha,
                    asym=feature_asym,
                    h=feature_h,
                    knn=feature_knn,
                    qfunc=feature_qfunc,
                    dtype=np.float32
                ) * feature_w

to

s+= cosine_similarity(
                    feature,
                    alpha=feature_alpha,
                    asym=feature_asym,
                    h=feature_h,
                    # knn here is removed
                    qfunc=feature_qfunc,
                    dtype=np.float32
                ) * feature_w

# Here after computing the sum we apply knn
apply_knn(s)

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.