Giter Site home page Giter Site logo

code-jam-5's People

Contributors

intendednull avatar jb3 avatar lemonsaurus avatar markkoz avatar sebastiaanz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

code-jam-5's Issues

Handle cases when input is given without using autocomplete

The current implementation relies on autocomplete to provide coordinates. A user can type something without using autocomplete, but a search in such case would currently result in a 400.

One solution is to fall back to using the given name to search for a city when coordinates are not present. Another is to possibly force the top result in autocomplete to be picked, but this may end up making the wrong choice.

Graphing

Presentation

Graphs should be interactive, so matplotlib is out of the question I guess since it only creates static images. Each indicator could have its own scatter plot graph with a best fit line. I was considering doing a curve instead, but that may not align well with the whole % changed thing we have going on which is based on a linear regression.

I'm not sure how to present all the indicators; the current approach will end up taking a lot of vertical space with the graphs added. Maybe have a a tab for each indicator?

Implementation

I was looking at plotly.js. It seems really simple to set up, as can be seen in this example. I'm not sure what kind of format it wants the data in. It supports things like pandas dataframes but all we currently use are two numpym arrays, one for each axis.

Is there an inaccuracy in how the top indicators are determined?

The top indicators are determined by doing linear regressions on the indicators and comparing their slopes. But the indicators use different data in different units. In one unit a change of 0.1 could be significant but that wont compare well to something that has a change of 1 (slope of 0.1 vs slope of 1).

Also, here are plots of heat_wave_incidents and total_precipitation respectively:

bild

bild

They show an ~8.9% increase and ~0.39% decrease respectively.

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.