Adding initial game stats and visiting stats
This commit is contained in:
4
main.py
4
main.py
@@ -1,6 +1,7 @@
|
||||
import numpy as np # helps with the math
|
||||
import matplotlib.pyplot as plt # to plot error during training
|
||||
from data.db_connect import Database
|
||||
from data.stats_importer import parse_csv
|
||||
|
||||
# input data
|
||||
inputs = np.array([[0, 0, 1, 0],
|
||||
@@ -68,6 +69,9 @@ if __name__ == '__main__':
|
||||
db_conn.run_sql_file(fill_parks_path)
|
||||
db_conn.run_sql_file(fill_teams_path)
|
||||
|
||||
test_csv = "./data/stats/gl2022.csv"
|
||||
print(parse_csv(test_csv))
|
||||
|
||||
else:
|
||||
# create neural network
|
||||
NN = NeuralNetwork(inputs, outputs)
|
||||
|
||||
Reference in New Issue
Block a user