This website works better with JavaScript.
Home
Explore
帮助
返回水杉在线
登录水杉在线
登录水杉码园
10195501441
/
COVID-19Analysis
Watch
1
Star
2
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
essay done
master
杨浩然
3 years ago
parent
5062350f02
commit
c2206c0115
19 changed files
with
9 additions
and
7 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
BIN
COVID-19/Prediction/.vs/Prediction/v16/.suo
+3
-1
COVID-19/Prediction/Prediction/CN.py
+1
-1
COVID-19/Prediction/Prediction/CNConPara.py
+1
-1
COVID-19/Prediction/Prediction/CNDeaPara .py
+1
-1
COVID-19/Prediction/Prediction/CNRecPara.py
+3
-3
COVID-19/Prediction/Prediction/ExponentialSmoothing.py
BIN
COVID-19/Visualization/.vs/Visualization/v16/.suo
BIN
Essay/COVID-19.pptx
BIN
Essay/基于新冠疫情数据的分析与建模.docx
BIN
Essay/基于新冠疫情数据的分析与建模.pdf
BIN
Essay/基于新冠疫情数据的分析与建模.pptx
BIN
ParaCon/Figure_1.png
BIN
ParaCon/Figure_2.png
BIN
ParaCon/Figure_3.png
BIN
ParaDea/Figure_1.png
BIN
ParaRec/Figure_1.png
BIN
ParaRec/Figure_2.png
BIN
prediction_figure/Figure_1.png
BIN
prediction_figure/Figure_4.png
BIN
COVID-19/Prediction/.vs/Prediction/v16/.suo
View File
+ 3
- 1
COVID-19/Prediction/Prediction/CN.py
View File
@ -109,11 +109,13 @@ fig2 = plt.figure()
axcon
=
fig2
.
add_subplot
(
311
)
axcon
=
fig2
.
add_subplot
(
311
)
axcon
.
plot
(
CN
[
'
Confirmed
'
]
,
label
=
"
confirmed
"
)
axcon
.
plot
(
CN
[
'
Confirmed
'
]
,
label
=
"
confirmed
"
)
axcon
.
plot
(
confirmed_pre
,
label
=
"
ARIMA
"
)
axcon
.
plot
(
confirmed_pre
,
label
=
"
ARIMA
"
)
axcon
.
legend
(
)
axrec
=
fig2
.
add_subplot
(
312
)
axrec
=
fig2
.
add_subplot
(
312
)
axrec
.
plot
(
CN
[
'
Recovered
'
]
,
label
=
"
recovered
"
)
axrec
.
plot
(
CN
[
'
Recovered
'
]
,
label
=
"
recovered
"
)
axrec
.
plot
(
recovered_pre
,
label
=
"
ARIMA
"
)
axrec
.
plot
(
recovered_pre
,
label
=
"
ARIMA
"
)
axrec
.
legend
(
)
axdea
=
fig2
.
add_subplot
(
313
)
axdea
=
fig2
.
add_subplot
(
313
)
axdea
.
plot
(
CN
[
'
Deaths
'
]
,
label
=
"
deaths
"
)
axdea
.
plot
(
CN
[
'
Deaths
'
]
,
label
=
"
deaths
"
)
axdea
.
plot
(
deaths_pre
,
label
=
"
ARIMA
"
)
axdea
.
plot
(
deaths_pre
,
label
=
"
ARIMA
"
)
plt
.
legend
(
)
axdea
.
legend
(
)
plt
.
show
(
)
plt
.
show
(
)
+ 1
- 1
COVID-19/Prediction/Prediction/CNConPara.py
View File
@ -8,7 +8,7 @@ BIC = [5362.9155, 5350.6644, 5342.7083, 5322.5254, 5289.0656, 5291.3404, 5294.84
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
,
'
3,0,2
'
]
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
,
'
3,0,2
'
]
plt
.
title
(
"
AIC/BIC of CN ARIMA Confirmed Model
"
)
plt
.
title
(
"
AIC/BIC of CN ARIMA Confirmed Model
"
,
fontsize
=
"
25
"
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
for
y
in
[
AIC
,
BIC
]
:
for
y
in
[
AIC
,
BIC
]
:
+ 1
- 1
COVID-19/Prediction/Prediction/CNDeaPara .py
View File
@ -8,7 +8,7 @@ BIC = [3731.9711, 3734.9149, 3739.3143, 3731.5706, 3724.1844, 3729.6649, 3735.43
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
]
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
]
plt
.
title
(
"
AIC/BIC of CN ARIMA Deaths Model
"
)
plt
.
title
(
"
AIC/BIC of CN ARIMA Deaths Model
"
,
fontsize
=
'
25
'
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
for
y
in
[
AIC
,
BIC
]
:
for
y
in
[
AIC
,
BIC
]
:
+ 1
- 1
COVID-19/Prediction/Prediction/CNRecPara.py
View File
@ -8,7 +8,7 @@ BIC = [4895.0924, 4783.8249, 4684.5030, 4625.3036, 4491.2163, 4425.8495, 4431.50
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
,
'
3,0,2
'
]
x
=
[
'
0,0,1
'
,
'
0,0,2
'
,
'
0,0,3
'
,
'
1,0,0
'
,
'
1,0,1
'
,
'
1,0,2
'
,
'
1,0,3
'
,
'
2,0,0
'
,
'
2,0,1
'
,
'
2,0,2
'
,
'
2,0,3
'
,
'
3,0,0
'
,
'
3,0,1
'
,
'
3,0,2
'
]
plt
.
title
(
"
AIC/BIC of CN ARIMA Recovered Model
"
)
plt
.
title
(
"
AIC/BIC of CN ARIMA Recovered Model
"
,
fontsize
=
'
25
'
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
AIC
,
label
=
"
AIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
plt
.
plot
(
x
,
BIC
,
label
=
"
BIC
"
)
for
y
in
[
AIC
,
BIC
]
:
for
y
in
[
AIC
,
BIC
]
:
+ 3
- 3
COVID-19/Prediction/Prediction/ExponentialSmoothing.py
View File
@ -48,8 +48,8 @@ forecastCNexp['recoveredPred'] = recoveredCNexp.forecast(len(forecastCNexp))
forecastCNexp
[
'
deathsPred
'
]
=
deathsCNexp
.
forecast
(
len
(
forecastCNexp
)
)
forecastCNexp
[
'
deathsPred
'
]
=
deathsCNexp
.
forecast
(
len
(
forecastCNexp
)
)
#RMSE
#RMSE
rmseCNexpCon
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Confirmed
'
]
)
,
np
.
asarray
(
yCNexp
[
'
confirmedTest
'
]
)
)
,
0.
0
5
)
rmseCNexpRec
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Recovered
'
]
)
,
np
.
asarray
(
yCNexp
[
'
recoveredTest
'
]
)
)
,
0.
0
5
)
rmseCNexpCon
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Confirmed
'
]
)
,
np
.
asarray
(
yCNexp
[
'
confirmedTest
'
]
)
)
,
0.5
)
rmseCNexpRec
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Recovered
'
]
)
,
np
.
asarray
(
yCNexp
[
'
recoveredTest
'
]
)
)
,
0.5
)
rmseCNexpDea
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Deaths
'
]
)
,
np
.
asarray
(
yCNexp
[
'
deathsTest
'
]
)
)
,
0.5
)
rmseCNexpDea
=
pow
(
mean_squared_error
(
np
.
asarray
(
testCN
[
'
Deaths
'
]
)
,
np
.
asarray
(
yCNexp
[
'
deathsTest
'
]
)
)
,
0.5
)
print
(
rmseCNexpCon
)
print
(
rmseCNexpCon
)
@ -58,7 +58,7 @@ print(rmseCNexpDea)
#可视化
#可视化
plt
.
title
(
"
Holt-Winters
"
,
verticalalignment
=
"
bottom
"
,
fontsize
=
"
13
"
)
plt
.
title
(
"
Exponential Smoothing
"
,
verticalalignment
=
"
bottom
"
,
fontsize
=
"
20
"
)
CN
.
index
=
pd
.
Index
(
pd
.
date_range
(
'
2020-01-22
'
,
'
2020-12-09
'
,
freq
=
'
1D
'
)
)
CN
.
index
=
pd
.
Index
(
pd
.
date_range
(
'
2020-01-22
'
,
'
2020-12-09
'
,
freq
=
'
1D
'
)
)
yCNexp
.
index
=
pd
.
Index
(
pd
.
date_range
(
'
2020-11-01
'
,
'
2020-12-09
'
,
freq
=
'
1D
'
)
)
yCNexp
.
index
=
pd
.
Index
(
pd
.
date_range
(
'
2020-11-01
'
,
'
2020-12-09
'
,
freq
=
'
1D
'
)
)
BIN
COVID-19/Visualization/.vs/Visualization/v16/.suo
View File
BIN
Essay/COVID-19.pptx
View File
BIN
Essay/基于新冠疫情数据的分析与建模.docx
View File
BIN
Essay/基于新冠疫情数据的分析与建模.pdf
View File
BIN
Essay/基于新冠疫情数据的分析与建模.pptx
View File
BIN
ParaCon/Figure_1.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
110 KiB
Width:
1920
| Height:
961
| Size:
118 KiB
BIN
ParaCon/Figure_2.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
105 KiB
BIN
ParaCon/Figure_3.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
110 KiB
BIN
ParaDea/Figure_1.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
103 KiB
Width:
1920
| Height:
961
| Size:
110 KiB
BIN
ParaRec/Figure_1.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
99 KiB
BIN
ParaRec/Figure_2.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
105 KiB
BIN
prediction_figure/Figure_1.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
86 KiB
Width:
1920
| Height:
961
| Size:
89 KiB
BIN
prediction_figure/Figure_4.png
View File
Before
After
Width:
1920
| Height:
961
| Size:
68 KiB
Width:
1920
| Height:
961
| Size:
73 KiB
Write
Preview
Loading…
Cancel
Save