Code Monkey home page Code Monkey logo

analyze_nba's Introduction

Analyze_NBA

This program has been tested with Python 3.4 on Windows 8

From the command line the program can be run by issuing the command: python NBAMakeTrees.py

or open an instance of python3.4, then enter the commands: import NBAMakeTrees NBAMakeTrees.main()

It will then make and save tree graphics for each teams top scoring player. These graphics will show the most relevant partitions in the data. The convention for reading the tree graphic is as follow: -The top line shows the condition, if true -> follow the box to the left, else -> right -The gini value shows the gini impurity for each partition -The samples value shows how many shots were taken in that particular situation -The value array shows the number of occurences of each class. For example if this line reads: value=[21 8], then that means 29 (21+8) shots were taken in that particular situation, with 21 made shots, and 8 missed shots

This program could be extended to account for all current players, and could include data from 2013-2014 season if available. This concept could also be applied to passing, rebounding, defense, etc.

analyze_nba's People

Contributors

bveber avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

sandy4321

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.