-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfinal_project.py
43 lines (32 loc) · 2.45 KB
/
final_project.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import streamlit as st # pip install streamlit
import streamlit as st
from PIL import Image
st.markdown("# Practical Applications of Machine Learning (PAML)")
#############################################
st.markdown("### Final Project - NBA Salary Prediction")
#############################################
st.markdown("#### Introduction")
st.markdown("""Motivation: Build a machine-learning pipeline that can predict the salaries of NBA players based on their performance and background.
While many players hire agents to negotiate their contracts, there are still cases where players receive salaries that do not match their performance.
""")
st.markdown("Technical focus: We apply different regression models in this project and we attempt to select important features before fitting our models.")
st.markdown("Impact: Our hope with this project is to provide players and agents with a tool that can help them estimate their salaries more accurately.")
st.markdown("#### Background")
st.markdown("""In Papadaki and Tsagris’s work, they pointed out that one of the current problem of NBA salary prediction is that many current solutions fail
to check feature importance before training their models. In terms of the machine learning techniques, they transfer the problem into a
classification problem and predicted the player salaries in percent of the teams payroll instead of salaries.""")
st.markdown("Compared to their methods, we use a different feature selection method and use regression methods to predict the salary.")
st.markdown("""Citation: Papadaki, Ioanna, and Michail Tsagris. "Estimating NBA players salary share according to their performance on court:
A machine learning approach." arXiv preprint arXiv:2007.14694 (2020).""")
image = Image.open('NBAimage.jpg')
st.image(image)
st.write("Image credit:")
st.write("URL: https://nba.nbcsports.com/2015/11/10/dwyane-wade-kobe-bryant-is-the-greatest-player-of-our-era/")
st.write("Posted By Dan Feldman")
st.markdown('#### Dataset')
st.write("[NBA Players & Team Data](https://www.kaggle.com/datasets/loganlauton/nba-players-and-team-data?select=NBA+Player+Stats%281950+-+2022%29.csv)")
st.write("[NBA Players stats since 1950](https://www.kaggle.com/datasets/drgilermo/nba-players-stats?select=Seasons_Stats.csv)")
st.markdown("#### Team")
st.markdown("Jiarong Chen (jc2924)")
st.markdown("Yufei Wang (yw569)")
st.markdown("Click **Explore Dataset** to get started.")