Adding win and if the team is home to the database, calculations for win and lose streak, and returning the training data. Fixing sunrise sunset times

This commit is contained in:
2025-08-29 20:09:49 +00:00
parent 330c7445a6
commit 3950e99151
7 changed files with 221 additions and 144 deletions

View File

@@ -17,10 +17,12 @@ inputs = np.array([[0, 0, 1, 0],
outputs = np.array([[0], [0], [0], [1], [1], [1]])
if __name__ == '__main__':
db_file = "./database/baseball.db"
db_conn = Database(db_file)
#db_file = "./database/baseball.db"
#db_conn = Database(db_file)
pull_training_data(db_conn, "20240602", 0, "BAL12")
#pull_training_data(db_conn, "20240602", 0, "BAL12")
print(get_sun_and_moon_phase(39.283889, -76.621667, "20240602"))
"""
build_db_path = "./data/sql/build_db.sql"