GithubHelp home page GithubHelp logo

Comments (6)

hiqua avatar hiqua commented on July 17, 2024

I haven't looked at that code in a while, but I think it's because if there's no entry, we assume that means 0.

So one of the default values (either the score or the entry) would have to change, so it'd be inconsistent in any case.

from uhabits.

dovahgab avatar dovahgab commented on July 17, 2024

Hm yeah, don't know if it's possible to change one of the two for this specific type of habit only - otherwise it is not so useful, if it starts from 100% (and there's no easy way of translating it into a at-least version) only workaround, flatten it to a yes/no habit

from uhabits.

jayb-g avatar jayb-g commented on July 17, 2024

@hiqua maybe, in case of at most targets, the data for a day has to be <=target for it to be considered a yes internally and progress is made, but when data is higher than at most target, progress should suffer(which is not happening). I tested with sample habit of target at most 10, and entered 50 for each day, the progress is still around 75%. Should be 0%.

Maybe starting at most measurable habits with default of no data(instead of 0)would help. It would work for at least habits too. Calculate progress only based on data entered, whether 0 or non-zero.

from uhabits.

hiqua avatar hiqua commented on July 17, 2024

@jayb-g you're talking specifically about the score right? Saying that the score computation should ideally ignore all entries up to the first one entered?

from uhabits.

jayb-g avatar jayb-g commented on July 17, 2024

@hiqua yes, scores in case of Measurable habits. I believe ultimately when it comes to showing progress percentage (circle), its basically a yes or no average same as a Yes or No habit type.

Score computation should ideally ignore all the missing data(instead of defaulting to 0). I know this would not reflect accurate tracking due to missing data but its the best(it would be accurate for the days data is provided for) it can do if data is not provided for some days by user. Alternatively maybe count missing data as skip days by default ? I realized skip days would increase the score.

from uhabits.

iSoron avatar iSoron commented on July 17, 2024

Thank you for the bug report, @dovahgab, but this is working as intended.

from uhabits.

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.