Giter VIP home page Giter VIP logo

723_mh_covid_surge_modelling's People

Contributors

dandyooh avatar tomjemmett avatar victornautica avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

723_mh_covid_surge_modelling's Issues

Improve condition slider percentage logic

The sum of the conditions sliders should not exceed 100%: currently this is enforced by setting the max-value of each slider independently to enforce this limit.

Instead, we should set the max-value's to 100% and use the following algorithm:

  1. if the percent sum exceeds 100% find the minimum percentage of the other sliders (the ones that haven't been updated)
  2. calculate the amount we need to reduce the sum by to reach 100%, and then equally divide this value by the number of sliders we are working with
  3. take the minimum value of 1 and 2, then reduce all of the sliders by this amount
  4. if the sum still exceeds 100%, remove the sliders which are now at 0% and repeat

add summary of surge demand by population group

add a tabItem/menuItem to the UI for a summary of surge demand by condition (as per page 12 of report)

  • add a plot to show this data
  • add a summary table (filtered to just show the months)

Add ability to update demand data in app

At the moment the only way to alter the demand data is to download parameters and update the excel file, then upload this new file.

It would be useful to be able to directly enter this data in the app

If treatment params are updated, the results tab reverts back to first treatment

  1. go to results tab, select a different treatment
  2. go to params tab, alter some of the treatment params
  3. go back to results tab, it is now back on the first treatment

now, if you instead

  1. go to results tab, select a different treatment
  2. go to params tab, do nothing
  3. go back to results tab, it is still on the selected treatment

the app should behave consistently like in the second scenario

fix param download

parameter download is not currently working, it is downloading a html document that doesn't appear to contain any of the param data

update parameters UI

  • separate the different parameter sections into

    • population groups
    • groups to conditions (g2c)
    • conditions to treatments (c2t)
    • treatments
  • separate the g2c and c2t percentages into individual sliders

  • add rule to ensure that the g2c percentages for that group sums to less than 1

  • add rule to ensure that the c2t percentages for that condition sums to less than 1

  • add the currently hidden treatment parameters (months, decay) to the "demand" section

  • move the "Success % of treatment" to the "demand"

  • rename the "demand" section to "treatment"

implement param upload

allow a user to upload a params.json file that they have previously downloaded and replace the currently loaded params item.

Will need to check that the params is valid (e.g. is of a similar structure to the existing dataset)

add ordered bar chart of services to results page

  • Add an ordered (horizontal) bar chart to the results page that breaks down which population groups contribute to the "Total 'surge' referrals" output box.
  • Show the values of the bars as labels at the end of each bar

add summary of surge demand by condition

add a tabItem/menuItem to the UI for a summary of surge demand by condition (as per page 13 of report)

  • add a plot to show this data
  • add a summary table (filtered to just show the months)

latest params fixes

  • remove the old condition pcnt slider and its corresponding server code
  • move the condition drop down to the "People being treated of condition group" panel
  • remove the treatment drop down in the "People being treated of condition group" panel
  • dynamically create each treatment in the "People being treated of condition group" (as per the condition panel)
  • each treatment should have an numeric input box for the "proportion" of condition group and a slider for the treat %
  • the "proportion" boxes should then be used to work out the c2t percentage by dividing each value by the sum: we could possibly try to show this percentage next to the numeric input to give the user an idea of what percentages they are setting

Add unit tests

  • add unit tests to the package
  • set up code coverage with codecov.io
  • set up an action to run code coverage
  • ensure 100% coverage

add summary of surge demand by service

add a tabItem/menuItem to the UI for a summary of surge demand by condition (as per page 14 of report)

  • add a plot to show this data
  • add a summary table (filtered to just show the months)

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.