Git Product home page Git Product logo

decision-tree-regressions's Introduction

Decision Tree Vs. Random Forest Regression Machine Learning Models for FIFA Audience Stats

In this repo, I explore the differences between decision tree regression ML models and random forest regression ML models! The dataset contains information about worldfide FIFA TV viewing audiences and our models' goal is to predict the tv_audience_share of each country!

Mean Absolute Error (MAE)

This is a simple metric to measure the performance of our model. With mean absolute error, we find the average, positive difference between each element's model-predicted value and the actual value. This scheme means that every element's accuracy has equal weight in the final error value.

Each model's MAE will be in the appropriate directory's README.md

Reproducibility

I used the random_state parameter when creating the models so everyone running this program will get the same results. random_state ensures that our data breakup (from all the data into training and cross validation segments) is the same no matter when the program is run.

Setup

Make sure to have scikit-learn and Pandas installed before attempting to run our program!

Simply run pip3 install sklearn as well as pip3 install pandas to get the necessary modules on your device!

This directory contains the data behind the story How To Break FIFA.

The data file fifa_countries_audience.csv includes the following variables:

Header Definition
country FIFA member country
confederation Confederation to which country belongs
population_share Country's share of global population (percentage)
tv_audience_share Country's share of global world cup TV Audience (percentage)
gdp_weighted_share Country's GDP-weighted audience share (percentage)

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.