Skip to main content

ComputationalUncertaintyLab/chimeric-tools

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chimeric-tools-0.0.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

chimeric_tools-0.0.1-py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page