Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Follow publication

Deep Learning: Forecasting of Confirmed Covid-19 Positive Cases Using LSTM

Dede Kurniawan
Towards AI
Published in
9 min readAug 13, 2022

--

Photo by Markus Spiske from Pexels

Introduction

Task

Import library

Data cleaning and pre-processing

df = data.copy()

Exploratory data analysis

df.describe().transpose()
Pie chart
Image by the author.
Line chart
Image by the author.
Visualization of correlation between data using heatmap
Visualization of correlation between data using heatmap (Image by author).

Modeling

Image by the author.
model.compile(loss= 'mse', optimizer= 'adam')
Result of model training (Image by author).
Visualization of training and validation loss
Visualization of training and validation loss (Image by author).
Actual value vs. Predicted value
Actual value vs. Predicted value (Image by author).
Number of positive confirmed cases
Visualizing the predicted output
Visualizing the predicted output (Image by author).

Summary

References:

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Published in Towards AI

The leading AI community and content platform focused on making AI accessible to all. Check out our new course platform: https://academy.towardsai.net/courses/beginner-to-advanced-llm-dev

Written by Dede Kurniawan

A writer who focuses on the topics of Python 🐍, Data Science 📊, and Biology 🧬. My LinkedIn: https://www.linkedin.com/in/dede-kurniawann/

Responses (3)

Write a response