Coder Social home page Coder Social logo

wenxuanye / chimeric-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from computationaluncertaintylab/chimeric-tools

0.0 0.0 0.0 2.1 MB

License: MIT License

Python 9.59% Jupyter Notebook 1.31% Makefile 0.42% CSS 10.00% JavaScript 28.57% HTML 49.60% Batchfile 0.51%

chimeric-tools's Introduction

chimeric-tools

Data folder

functions

Preprocess folder

  • Function name: formatIndividualPredictions

    • input: a single csv file of individual predictions from metaculus
    • output: a pandas daat frame that is long format
    • info: Wenxuan, this is your code that transforms the csv file to long.
  • Function name: write_individual_formatted

    • input: a pandas data frame in lojng format
    • output: nothing
    • info: Wenxuan, this will output the formatted pandas data frame to a file with the name "WW-YYYY-MM-DD_metaculus_individual_predictions.csv.gz" where WW is the epidemic week, YYYY is the year, mm is month, and dd is day.
  • Function name: (for prof m to add) metaculus_client

    • input: string that links to user credentials
    • output: object to interact with API
    • info: prof m will write this and Wenuxan and Xinze will test how well it does (or does not) work

spatial folder

Time Folder

functions

  • Function name: fromDate2Epiweek

    • input: a string in the format YYYY-mm-dd
    • output: The Epidemic week that corresponds to YYYY-mm-dd
    • info: We can use the epiweeks package to do this.
  • Function name: fromDates2Epiweeks

    • input: a list of strings in the format YYYY-mm-dd
    • output: The Epidemic weeks that corresponds to YYYY-mm-dd
    • info: We can use the epiweeks package to do this.
  • Function name: today

    • input: nothing
    • output: todays date in YYYY-mm-dd format
    • info: We can use the datetime package to do this.
  • Function name: todayEpiWeek

    • input: nothing
    • output: the epidemic weeks that corresponds to todays date in YYYY-mm-dd format
    • info: We can use the datetime package and epiweeks package to do this.

Aggregation

chimeric-tools's People

Contributors

wenxuanye avatar tomcm39 avatar

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.