-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathno-sidebar.html
95 lines (83 loc) · 3.48 KB
/
no-sidebar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE HTML>
<html>
<head>
<title>No Sidebar - Landed by HTML5 UP</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/main.css" />
<noscript><link rel="stylesheet" href="assets/css/noscript.css" /></noscript>
</head>
<body class="is-preload">
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<h1 id="logo"><a href="https://www.nature.com/collections/aijdgieecb">COVID-19 <i>Nature</i> Publications</a></h1>
<nav id="nav">
<ul>
<li><a href="index.html">Home</a></li>
<li>
<a href="#">Data & Predictions</a>
<ul>
<li><a href="left-sidebar.html">Data Visualisation and Graphs</a></li>
<li><a href="right-sidebar.html">Sources of Data</a></li>
<li><a href="no-sidebar.html">Machine Learning</a></li>
</ul>
</li>
<li><a href="creators.html">Creators</a></li>
<li><a href="#" class="button primary">Pay for my Coffee :)</a></li>
</ul>
</nav>
</header>
<!-- Main -->
<div id="main" class="wrapper style1">
<div class="container">
<header class="major">
<h2>We used Machine Learning to Predict COVID-19 Cases in the US.</h2>
<p><small>Work in progress in front end.</small></p>
</header>
<!-- Content -->
<section id="content">
<a href="#" class="image fit"><img src="images/coviddata.png" alt="" /></a>
Work in progress..
</section>
</div>
<h4>Predicting Total Number of Cases in The United States</h4>
<blockquote></blockquote>
<pre><code>def predict(model, baseTable=confirmed_cases_clean, windowSize=5, daysToPredict=5, country="United States of America"):
pop = world_pop_clean.loc[country][0]
data = baseTable.loc[country, :][-windowSize:] / pop
predictions = []
while len(predictions) < daysToPredict:
nextData = data[-windowSize:]
nextPred = model.predict(nextData)[0]
predictions.append(nextPred)
data = np.append(data, normalize(nextPred, world_pop_clean, country))
}
return predictions
</code></pre>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<ul class="icons">
<li><a href="https://twitter.com/1HackerDrive" class="icon brands alt fa-twitter"><span class="label">Twitter</span></a></li>
<li><a href="https://github.com/SansBasnet/COVID_project" class="icon brands alt fa-github"><span class="label">Github</span></a></li>
<li><a href="mailto:[email protected]" class="icon solid alt fa-envelope"><span class="label">Email</span></a></li>
<li><a href="https://www.linkedin.com/in/sansbasnet/" class="icon brands alt fa-linkedin-in"><span class="label">LinkedIn</span></a></li>
</ul>
<ul class="copyright">
<li>© 2020 Sans Basnet. All rights reserved.</li>
</ul>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/browser.min.js"></script>
<script src="assets/js/breakpoints.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>