Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Machine Learning for Time-Series with Python

You're reading from  Machine Learning for Time-Series with Python

Product type Book
Published in Oct 2021
Publisher Packt
ISBN-13 9781801819626
Pages 370 pages
Edition 1st Edition
Languages
Author (1):
Ben Auffarth Ben Auffarth
Profile icon Ben Auffarth

Table of Contents (15) Chapters

Preface 1. Introduction to Time-Series with Python 2. Time-Series Analysis with Python 3. Preprocessing Time-Series 4. Introduction to Machine Learning for Time-Series 5. Forecasting with Moving Averages and Autoregressive Models 6. Unsupervised Methods for Time-Series 7. Machine Learning Models for Time-Series 8. Online Learning for Time-Series 9. Probabilistic Models for Time-Series 10. Deep Learning for Time-Series 11. Reinforcement Learning for Time-Series 12. Multivariate Forecasting 13. Other Books You May Enjoy
14. Index

Python Exercise

Let's put into practice what we've learned in this chapter so far. We'll be doing a model in Prophet, a Markov Switching model, a Fuzzy time-series model, and a BSTS model.

Let's get started with Prophet!

Prophet

First, let's make sure we have everything installed that we need. Let's quickly install the required libraries. We can do this from the terminal (or similarly from the Anaconda navigator):

pip install -U pandas-datareader plotly

You'll need a recent version of pandas-datareader, otherwise you might get a RemoteDataError.

We'll use the Prophet model through Facebook's Prophet library. Let's install it:

pip install prophet

Once this is done, we are set to go.

In this example, we'll use the daily Yahoo closing stock values in this chapter that we used in several examples in Chapter 7, Machine Learning Models for Time-Series.

To recap, we can download the daily Yahoo...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime}