Giter Club home page Giter Club logo

Comments (3)

arielf avatar arielf commented on August 17, 2024

Thanks, yes this is a good idea. It should increase accuracy.

Pretty easy to implement: in the pre-processing stage we can generate all deltas up to N days and include all the input features spanning N-days.

However, I think there should be some decay applied to the weight of older features, because the further you go in time, once effect peaks, the less relevant inputs should become (just a hunch).

Also: I think the accuracy can benefit from some random shuffling of sample-orders and stacking them. In online learning, early examples have an advantage because learning rate decays with time. Currently I sort by abs(delta) which makes the big delta examples more important.

I'll try to tackle this when I get some more free time.

from weight-loss.

oskarizu avatar oskarizu commented on August 17, 2024

; porque solo propio pollino ooo looo oooooooiio oi ooooooiio lo ido;

from weight-loss.

arielf avatar arielf commented on August 17, 2024

Added support for any number of days history. This increases the number of data-points to train on, and hopefully reduces variance and random daily-noise.

Currently the default history is set to 3 days (NDAYS variable in Makefile) meaning for every day user-entered data, 3 data-points will be created for training: last-day, last-two-days, and last-3-days. Any "last N days" period includes net weight change in the last N days overall, as well as the factors for all N days combined (day1, day2, ..., dayN). I felt more than 3 days is excessive since we also run over all overlaps using a N-day sliding window.

I also restored the --bootstrap N parameter to vowpal-wabbit since I found it helpful for decreasing variance. If your vw doesn't support --bootstrap N you may either:

  • Upgrade vw to a more recent version OR
  • Remove the --bootstrap N from VW_ARGS in the Makefile

from weight-loss.

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.