microprediction

microprediction / coronavirus / 0.1.0

coronavirus

1 Credit Royalty
Current statistics for China only
Language
Python 3.x
Metrics
API Calls - 41 Avg call duration - N/A
Permissions
The Algorithm Platform License is the set of terms that are stated in the Software License section of the Algorithmia Application Developer and API License Agreement. It is intended to allow users to reserve as many rights as possible without limiting Algorithmia's ability to run it as a service. Learn More
This is necessary for algorithms that rely on external services, however it also implies that this algorithm is able to send your input data outside of the Algorithmia platform.
This allows an algorithm to compose sophisticated functionality using other algorithms as building blocks , however it also carries the potential of incurring additional royalty and usage costs from any algorithm that it calls .

Run an Example

Input
Output
{
  "overall": {
    "confirmedCount": 44765,
    "curedCount": 5066,
    "currentConfirmedCount": 38582,
    "deadCount": 1117,
    "suspectedCount": 16067
  },
  "provincial": {
    "confirmedCount": [
      1,
      10,
      18,
      18,
      50,
      58,
      59,
      60,
      83,
      86,
      112,
      116,
      124,
      133,
      154,
      157,
      222,
      225,
      251,
      272,
      311,
      352,
      378,
      436,
      497,
      509,
      543,
      844,
      889,
      946,
      1131,
      1135,
      1219,
      33366
    ],
    "curedCount": [
      1,
      2,
      1,
      9,
      1,
      24,
      3,
      6,
      22,
      29,
      11,
      20,
      33,
      18,
      26,
      27,
      32,
      43,
      54,
      53,
      57,
      56,
      31,
      92,
      92,
      87,
      125,
      152,
      127,
      304,
      321,
      246,
      275,
      2686
    ],
    "currentConfirmedCount": [
      0,
      8,
      17,
      9,
      48,
      34,
      56,
      54,
      60,
      55,
      99,
      95,
      91,
      114,
      128,
      126,
      189,
      182,
      195,
      219,
      253,
      293,
      339,
      343,
      403,
      419,
      418,
      691,
      758,
      640,
      810,
      881,
      943,
      29612
    ],
    "deadCount": [
      0,
      0,
      0,
      0,
      1,
      0,
      0,
      0,
      1,
      2,
      2,
      1,
      0,
      1,
      0,
      4,
      1,
      0,
      2,
      0,
      1,
      3,
      8,
      1,
      2,
      3,
      0,
      1,
      4,
      2,
      0,
      8,
      1,
      1068
    ],
    "names": [
      "西藏自治区",
      "澳门",
      "台湾",
      "青海省",
      "香港",
      "宁夏回族自治区",
      "新疆维吾尔自治区",
      "内蒙古自治区",
      "吉林省",
      "甘肃省",
      "天津市",
      "辽宁省",
      "山西省",
      "贵州省",
      "云南省",
      "海南省",
      "广西壮族自治区",
      "陕西省",
      "河北省",
      "福建省",
      "上海市",
      "北京市",
      "黑龙江省",
      "四川省",
      "山东省",
      "重庆市",
      "江苏省",
      "江西省",
      "安徽省",
      "湖南省",
      "浙江省",
      "河南省",
      "广东省",
      "湖北省"
    ],
    "suspectedCount": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      0
    ]
  }
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



    algo run microprediction/coronavirus/0.1.0 -d '""' --timeout 300
  
CLI Docs