Git Product home page Git Product logo

Comments (3)

tyrantkhan avatar tyrantkhan commented on September 27, 2024

weights should be a float me thinks. I think when we weight, we naturally think of percentages which lends itself to floats.

from concerto.

bamnet avatar bamnet commented on September 27, 2024

We started out using floats (they might have been doubles) and a percentage-based weighting system in Concerto 1 but it turned out to be too confusing so we simplified everything to our current 1-5 integer based weights.

The first shuffling algorithm would pull content from a subscription N% of the time, so all the subscription weights would have to add up to 100%. We mever exposed this level of granularity in an interface TMK, resulting in math that really dumbed things down a lot. As an example, setting 1 feed to "Show alway" which had a weight of 80% and 5 feeds to "Meh" with a weight of 10% meant that you ended up with 1 feed @ 62% and 5 feeds at 7.6% which probably wasn't what you intended to do. Our interface wasn't clever enough to show you the relative nature of the weighting since it had a very limited set of options and the math behind the scenes shouldn't have normalized as naively as it did.

We switched to 1-5 integers and the current shuffling algorithm which maintained the same relative nature (setting all your feeds to "very frequently" scoring at 5 is the same as everything at "meh" scoring at 1) but it makes is much clearer that there was no normalization going on behind the scenes. When you revisit the panel the weights haven't changed because we don't try to force anything to add up to anything.

Using floats provides us with the most flexibility right now since we can store 1-5 or % numbers as needed. Feel free to make the column change.

from concerto.

tyrantkhan avatar tyrantkhan commented on September 27, 2024

Moving this to #73

from concerto.

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.