benjaminmgross / team1_project2

Machine Learning Algorithm to predict baseball salaries for Project 2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Code Execution

##To Run the Best Fitting Algorithm

import analyze

#assume baseball.csv is located at ~/home/baseball.csv

pth = '~/home/baseball.csv'
file_path = analyze.year_based_significance_log_regression(pth)

res_df = analyze.year_based_log_regression(pth)

The columns ['is-r2', 'os-r2', 'mae'] stand for in-sample r-squared, out-sample r-squared, and mean absolute error.

About

Machine Learning Algorithm to predict baseball salaries for Project 2


Languages

Language:Python 100.0%