Code Monkey home page Code Monkey logo

foostrat's People

Contributors

dpopadic avatar

Watchers

 avatar

foostrat's Issues

rolling calcs checks

Rolling functions double checks.

looking at Japanese league in separation we get the following factor data for goal superiority factor with k=3 (lagged):
image

However, when performing calculations across leagues we get the following:

image

factor library development

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:

image

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.

fooStrat as a pkg

Transform fooStrat to a pkg. Possible module structure:

fooStrat

  • dman: ret_xl_cols
  • stands: comp_league_standing
  • flib: fgoalsup
  • futils: neutralise_scores
  • strates: comp_mispriced
  • utils: anti_join

matplotlib installation fails

matplotlib load after installation fails with PyCharm:

import matplotlib.pyplot as plt

image

tried matpltlib==3.1.1 but didn't resolve

scheduling updates

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()

certificates for urllib requests

To setup necessary certificates (default certificates) for urllib request (http data download), do:

  1. python -m pip install certifi
  2. in terminal: /Applications/Python\ 3.7/Install\ Certificates.command

create controls for factors

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.