GithubHelp home page GithubHelp logo

Default Slopes about xdrip-experimental HOT 9 OPEN

TecMunky avatar TecMunky commented on September 6, 2024
Default Slopes

from xdrip-experimental.

Comments (9)

AdrianLxM avatar AdrianLxM commented on September 6, 2024

The slopes I would have needed 24 hours after sensor insertion would have been:
0.7
0.755
0.68

So I guess with newer sensor batches we will need the possibility for lower slopes.
These are the parameters I've been using since February: https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/compare/adrianCalibrationParams

    public static final double LOW_SLOPE_1 = 0.85; //0.95
    public static final double LOW_SLOPE_2 = 0.80; //0.85
    public static final double HIGH_SLOPE_1 = 1.3;
    public static final double HIGH_SLOPE_2 = 1.4;
    public static final double DEFAULT_LOW_SLOPE_LOW = 0.9; //1.08
    public static final double DEFAULT_LOW_SLOPE_HIGH = 0.95; //1.15
    public static final int DEFAULT_SLOPE = 1;
    public static final double DEFAULT_HIGH_SLOPE_HIGH = 1.3;
    public static final double DEFAUL_HIGH_SLOPE_LOW = 1.2;

(This is from before refactoring - and who can spot the typo ;))

from xdrip-experimental.

jstevensog avatar jstevensog commented on September 6, 2024

The problem is I don't variance between batches of sensors, and even sensors in individual batches. The First Two sensors in my last batch were accurate from day one, yet my latest is just not as accurate. The default slopes really should only impact things until you have x number of calibrations, and then you should be running on a calculated shoppe IMHO. The default slopes are meant for the first calibration, or if the linear regression calculation comes up with a slope and intercept that are just too far out to be real.

---- AdrianLxM wrote ----

The slopes I would have needed 24 hours after sensor insertion would have been:
0.7
0.755
0.68

So I guess with newer sensor batches we will need the possibility for lower slopes.
These are the parameters I've been using since February: https://github.com/StephenBlackWasAlreadyTaken/xDrip-Experimental/compare/adrianCalibrationParams

public static final double LOW_SLOPE_1 = 0.85; //0.95 public static final double LOW_SLOPE_2 = 0.80; //0.85 public static final double HIGH_SLOPE_1 = 1.3; public static final double HIGH_SLOPE_2 = 1.4; public static final double DEFAULT_LOW_SLOPE_LOW = 0.9; //1.08 public static final double DEFAULT_LOW_SLOPE_HIGH = 0.95; //1.15 public static final int DEFAULT_SLOPE = 1; public static final double DEFAULT_HIGH_SLOPE_HIGH = 1.3; public static final double DEFAUL_HIGH_SLOPE_LOW = 1.2;

(This is from before refactoring - and who can spot the type ;))


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024

I had a solution for me in mind but then found it too cumbersome to always merge back the changes from xDrip-E. Do you think this would be something for an official version?:

  • No matter if a default slope is used or not: Always (also) store the slope and intercept calculated by linear regression.
  • On a Calibration use the algorithm as is.
  • In the Calibration Graph add a toggle button to switch to the "no tresholds" calibration result.

This would force the user (me) to look at the calibration graph after a calibration to enable the non-treshold (or wider-threshold) version. For those who don't care, everything stays the same.

from xdrip-experimental.

tzachi-dar avatar tzachi-dar commented on September 6, 2024

I would take the adrian offer even one step further:

Allow a calibrator mode, that will allow one to do much more with calibrations.
It will not be possible to enter this mode with official betas, only people that have built by themselves will be able to use it.
On such builds, one will have to press on some secret place a few times to move to this build(like getting into debug mode on android).

This will allow us to have new calibration code, without influencing the not so sophisticated users.

from xdrip-experimental.

TecMunky avatar TecMunky commented on September 6, 2024

This is a great idea - but I would add one feature - the ability to remove (or ignore) invalid calibration points. I might even allow this special mode to be entered by the official build, but only document that feature on GitHub.

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024

The problem exists for people who can and people who can't build their own apk.
I'm not fan of shutting one group out.

from xdrip-experimental.

AdrianLxM avatar AdrianLxM commented on September 6, 2024

I also think having to set a compile flag for features will lead to a lot of custom apk's floating around that will be hard to support.

from xdrip-experimental.

jstevensog avatar jstevensog commented on September 6, 2024

I agree with Adrian. We cannot have it support a plethora of apks in the wild. We need some method within the official releases to allow people to choose the calibration method. And we should not release a method until we have thoroughly treated it ourselves.

---- AdrianLxM wrote ----

I also think having to set a compile flag for features will lead to a lot of custom apk's floating around that will be hard to support.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

from xdrip-experimental.

tzachi-dar avatar tzachi-dar commented on September 6, 2024

I guess that we all agree that we need to make improvements to our calibration algorithm, and that we can not release a new algorithm until we thoroughly test it.
So, we need some way to allow us to write other algorithms, test them first, but not to give them to the public.
I think that my suggestion is the best way for it. One code base and different behavior, for different people.

from xdrip-experimental.

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.