Skip to content

Instantly share code, notes, and snippets.

View lisphilar's full-sized avatar

Hirokazu Takaya lisphilar

View GitHub Profile
@lisphilar
lisphilar / 01_summary_3-points.csv
Last active March 29, 2021 15:15
Model validation with version CovsirPhy 2.18.0-alpha
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 16 columns, instead of 9. in line 7.
ID,ODE,Rt,Rt_est,kappa,kappa_est,rho,rho_est,sigma,sigma_est,theta,theta_est,step_n,RMSLE,Trials,Runtime
SIR_0,SIR,16.82,16.8,,,0.43599490214200376,0.3580615651516753,0.025926231827891333,0.02131164041944411,,,3,0.09864645641726243,531,0 min 40 sec
SIR_1,SIR,1.26,1.26,,,0.5496624778787091,0.520246006982862,0.4353223926182769,0.4114529919697404,,,3,0.01808739584091324,540,0 min 40 sec
SIR_2,SIR,1.27,1.27,,,0.42036780208748903,0.40222833930651875,0.3303348210038741,0.3162942275840907,,,3,0.013371474267578055,537,0 min 40 sec
SIR_3,SIR,0.33,0.33,,,0.2046486340378425,0.25433050561993525,0.6192709663506637,0.7679124964004214,,,3,0.0808412749432481,536,0 min 40 sec
SIR_4,SIR,1.12,1.12,,,0.29965467367452314,0.2952571684065429,0.26682727510286663,0.26267539637498905,,,3,0.0043253472241321835,133,0 min 10 sec
SIR_5,SIR,1.17,1.18,,,0.6211338327692949,0.5943914848613934,0.5291420942770391,0.505767069644604,,,3,0.014197155004925997,541,0 min 40 sec
SIR_6,SIR,0.26,0.26,,,0.13457994534493356,0.1634169575011506,0.5135781212
@lisphilar
lisphilar / 01_summary_10-points.csv
Created March 29, 2021 15:49
Model validation with version CovsirPhy 2.18.0-alpha and 10-90 timepints
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 16 columns, instead of 9. in line 7.
ID,ODE,Rt,Rt_est,kappa,kappa_est,rho,rho_est,sigma,sigma_est,theta,theta_est,step_n,RMSLE,Trials,Runtime
SIR_0,SIR,16.82,16.86,,,0.43599490214200376,0.36061782457729663,0.025926231827891333,0.021391674755212326,,,10,0.3147171710008828,968,0 min 50 sec
SIR_1,SIR,1.26,1.26,,,0.5496624778787091,0.5208749798191259,0.4353223926182769,0.41190067428457433,,,10,0.036655538716010745,976,0 min 50 sec
SIR_2,SIR,1.27,1.27,,,0.42036780208748903,0.4027332023396274,0.3303348210038741,0.3161902054623674,,,10,0.026461040954779535,731,0 min 40 sec
SIR_3,SIR,0.33,0.33,,,0.2046486340378425,0.25336497243546924,0.6192709663506637,0.7626120986658277,,,10,0.2766171511695487,129,0 min 10 sec
SIR_4,SIR,1.12,1.12,,,0.29965467367452314,0.2953857970122869,0.26682727510286663,0.26263676593546464,,,10,0.007072419544512607,126,0 min 10 sec
SIR_5,SIR,1.17,1.18,,,0.6211338327692949,0.5949827926347503,0.5291420942770391,0.506308455544006,,,10,0.02652900180486558,737,0 min 40 sec
SIR_6,SIR,0.26,0.27,,,0.13457994534493356,0.1677049583956557,0.51
@lisphilar
lisphilar / RMSLE_10-90points.csv
Last active March 29, 2021 16:00
Model validation with version CovsirPhy 2.18.0-alpha, 3-9, 10-90 timepoints
Rt ID 10points 30points 50points 70points 90points
16.82 SIR_0 0.314717171 0.011034311 0.002520616 0.014469204 0.071081207
1.26 SIR_1 0.036655539 0.026937078 0.010028279 0.004636733 0.00658943
1.27 SIR_2 0.026461041 0.029392914 0.017846351 0.003072677 0.005037168
0.33 SIR_3 0.276617151 0.253496242 0.196360671 0.165957108 0.146362221
1.12 SIR_4 0.00707242 0.008105819 0.007531385 0.005787905 0.004439467
1.17 SIR_5 0.026529002 0.018423443 0.009383501 0.000955472 0.001082645
0.26 SIR_6 0.233857566 0.238233356 0.184701796 0.156115626 0.137751618
0.23 SIR_7 0.339147737 0.196061042 0.152094141 0.128733656 0.113700299
0.03 SIR-D_0 0.4898103 0.2825895 0.219077539 0.185003154 0.16316033
@lisphilar
lisphilar / Greece.csv
Last active April 8, 2021 12:52
covid19-sir/pull request#706 with Italy/Greece/Japan/USA/Poland/Russia
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 20 columns, instead of 10. in line 5.
Scenario,Phase,Type,Start,End,Population,ODE,Rt,theta,kappa,rho,sigma,tau,alpha1 [-],1/beta [day],1/gamma [day],1/alpha2 [day],RMSLE,Trials,Runtime
Main,0th,Past,14Mar2020,31Mar2020,10731726,SIR-F,13.87,0.015998714621194697,4.550357191625089e-06,0.0002469531459165822,1.296665262517984e-05,3,0.016,8,160,457,0.12975536873842483,372.0,0 min 40 sec
Main,1st,Past,01Apr2020,19Apr2020,10731726,SIR-F,1.62,0.018303445839080487,4.52236146926308e-06,7.897931505718618e-05,4.3279547199088894e-05,3,0.018,26,48,460,0.11195174296551168,290.0,0 min 30 sec
Main,2nd,Past,20Apr2020,29Apr2020,10731726,SIR-F,0.52,0.031543716819639994,2.165069383365277e-06,5.985647378687589e-05,0.00010910671876358269,3,0.032,34,19,962,0.046199018569371975,448.0,0 min 51 sec
Main,3rd,Past,30Apr2020,13May2020,10731726,SIR-F,0.45,0.05639778238963808,8.951050588431961e-07,2.5809971537342786e-05,5.319272693047046e-05,3,0.056,80,39,2327,0.004856177212212986,161.0,0 min 15 sec
Main,4th,Past,14May2020,24May2020,10731726,SIR-F,0.47,0.029855482569899634,3.22
@lisphilar
lisphilar / forecast_italy.csv
Created April 11, 2021 14:21
Forecast/Italy/CovsirPhy v2.19.0/11Apr2021
We can make this file beautiful and searchable if this error is corrected: It looks like row 6 should actually have 19 columns, instead of 11. in line 5.
,Type,Start,End,Population,ODE,Rt,theta,kappa,rho,sigma,tau,1/gamma [day],1/alpha2 [day],1/beta [day],alpha1 [-],RMSLE,Trials,Runtime
0th,Past,24Feb2020,03Mar2020,60421760,SIR-F,13.98,0.0015905031108614832,0.00037633828733545175,0.017118784249858635,0.0008465812955894198,72,59,132,2,0.002,0.36096468312274027,583.0,1 min 1 sec
1st,Past,04Mar2020,12Mar2020,60421760,SIR-F,6.33,0.0009349944344135214,0.0007810427442777074,0.01177325808688971,0.0010785412975610083,72,46,64,4,0.001,0.08933130217976097,768.0,1 min 11 sec
2nd,Past,13Mar2020,26Mar2020,60421760,SIR-F,4.12,0.0002355506039508496,0.0008226762023984428,0.007863336905985296,0.0010832790544358269,72,46,60,6,0.0,0.06071150188612601,392.0,0 min 40 sec
3rd,Past,27Mar2020,10Apr2020,60421760,SIR-F,2.38,0.05277323626506709,0.0003216995022857156,0.0028405461429493305,0.0008107112404140731,72,61,155,17,0.053,0.030495729385971424,486.0,0 min 51 sec
4th,Past,11Apr2020,20Apr2020,60421760,SIR-F,1.48,0.0013600059956549318,0.0002505522557499262,0.00159635185398769,0.00082
@lisphilar
lisphilar / corr_pca_20220213.ipynb
Created February 13, 2022 10:33
corr_PCA_20220213.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lisphilar
lisphilar / comparison_datatable_pandas_dask.ipynb
Created June 19, 2022 09:32
comparison_datatable_pandas_dask.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lisphilar
lisphilar / pca_example.ipynb
Created August 21, 2022 15:39
pca_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lisphilar
lisphilar / pca_example.ipynb
Created August 21, 2022 16:49
pca_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lisphilar
lisphilar / pca_example.ipynb
Last active August 23, 2022 15:27
pca_example.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.