dpopadic / foostrat Goto Github PK
View Code? Open in Web Editor NEWStatistical analysis and strategy development for football data
Statistical analysis and strategy development for football data
Having calculated 3 factors so far (goal superiority, home advantage, form), a single factor for all competitions currently considered (~50) has ca 3.5 million rows:
Planned are ca. 30-50 factors. This would lead to at least a 400 million rows factor library. This will be an issue from a computational perspective. Alternatively, a factor library by competition (eg. Premier League) could be created. Needs investigation.
to schedule updates, the relevant project paths must be correctly specified:
write a file test_task.py
..
# test task ----------------------
import os
from datetime import datetime
# relevant working directory..
# if in project: proj_path = os.path.join(os.getcwd(), '')
proj_path = '/Users/dariopopadic/PycharmProjects/fooStrat/'
fl = proj_path + 'append.txt'
myFile = open(fl, 'a+')
myFile.write('\nAccessed on ' + str(datetime.now()))
myFile.close()
write the job using crontab module in python:
# test schedule ----------------------
from crontab import CronTab # python -m pip install python-crontab
# access the system..
cron = CronTab(user=True)
# create new cron job..
job = cron.new(command='python /Users/dariopopadic/PycharmProjects/fooStrat/test_task.py', comment = 'foostrat')
# schedule for every minute..
job.minute.every(1)
# write job to cron tab..
cron.write()
# analytics:
# view all cron jobs..
for job in cron:
print(job)
# job.enable(False)
# job.is_enabled()
# remove all jobs..
# cron.remove_all()
# in terminal: list / remove all crontab jobs: crontab -l / crontab -r
# update the job..
for job in cron:
if job.comment == 'foostrat':
job.minute.every(10)
cron.write()
kmeans and others from scratch: https://www.johnwittenauer.net/machine-learning-exercises-in-python-part-7/
reverse engineer market odds to determine the most important factors
fix the data source download as it's no longer valid
To setup necessary certificates (default certificates) for urllib request (http data download), do:
controls need to be constructed for the factors so when new data or methodology/syntax changes and where this results in different values, warning messages or errors need to be thrown!
Transform fooStrat to a pkg. Possible module structure:
fooStrat
ret_xl_cols
comp_league_standing
fgoalsup
neutralise_scores
comp_mispriced
anti_join
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.