Coder Social home page Coder Social logo

challenge-week-10's Introduction

Name

Niklas Fejes

How many points have you earned?

100/100

How many hours have you spent on this?

6 hours

When did you first start working on this week's learning challenges?

Sunday

What is the most difficult part about this week's challenge?

machine learning, challenge 2

Show and tell (6 points)

Link (2 points)

Multi-Line Voronoi

Write down TWO D3 features you’d like to learn next . (4 points)

  • Using d3.svg.line to create plots.
  • More advanced usages of d3.svg.axis(), such as including units and custom labels

MongoDB III

Checkpoints (4 points x 1 = 4 points)

1. (4 points)

image

Challenges (5 points x 5 = 25 points)

1. (5 points)

> db.aiddata.find({donor:'Belgium'},{recipient:1, disbursement_amount:1})

screenshot

2. (5 points)

> db.aiddata.find({biodiversity:{$gt:0}},{recipient:1,disbursement_amount:1,title:1})

screenshot

3. (5 points)

> db.runCommand({distinct: 'aiddata', key: 'flow_type', query: {}})

screenshot

4. (5 points)

> db.runCommand({distinct: 'aiddata', key: 'flow_type', query: {disbursement_amount:{$gt:100000000}}})

screenshot

In the query, stats.n is the number of elements used to generate the distinct values. When working with all values this number was 1000859 (all values in the dataset) and with the disbursement limit it was 994, which is the number of entries with disbursement_amount larger than 100'000'000.

5. (5 points)

> db.aiddata.aggregate([ {$match: {donor:'Belgium'}}, {$group: {_id:"$year", total:{$sum: "$disbursement_amount"}}} ])

screenshot

Machine Learning (II)

Challenge 1 (3 points x 4 = 12 points)

a. (3 points)

screenshot

b. (3 points)

screenshot

c. (3 points)

screenshot

d. (3 points)

screenshot

Challenge 2 (8 points)

It may be interesting to know whether the precence of the bugs affects the pitch of the phone. Plotting the pitch for each user vs time gives the following plots.

screenshot

In the plots above, the flat parts are the time when surveys were entered. To get a proper analysis of the different game stages, one would have to separate these into different "events".

What can be seen is that for some of the users, the third game appears to have more "spikey" data. This could be an indication of the bugs in the game.

D3 (V)

Checkpoints (5 points x 4 = 20 points)

1. (5 points)

image

checkpoint

2. (5 points)

image

checkpoint

3. (5 points)

image

checkpoint

4. (5 points)

image

checkpoint

Challenges (5 points x 3 + 10 points = 25 points)

1. (5 points)

screenshot

2. (5 points)

screenshot

var query = {"city":"Middleton"};

3. (5 points)

screenshot

var query = {"city":"Las Vegas"};

4. (10 points)

screenshot

This graph has the following properties:

selection: Businesses in Las Vegas
x-axis: number of ratings
y-axis: latitude
color: number of stars

It shows that the most rated businesses are in the middle of the city, and that the average business rating seem to be even across the town.

challenge-week-10's People

Contributors

nfejes avatar doubleshow avatar

Watchers

James Cloos avatar  avatar

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.