{"id":7790,"date":"2023-10-04T10:56:43","date_gmt":"2023-10-04T18:56:43","guid":{"rendered":"https:\/\/live-cometml.pantheonsite.io\/?p=7790"},"modified":"2025-04-24T17:06:05","modified_gmt":"2025-04-24T17:06:05","slug":"integrating-time-series-analysis-in-comet","status":"publish","type":"post","link":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/","title":{"rendered":"Integrating Time Series Analysis in Comet"},"content":{"rendered":"\n<link rel=\"canonical\" href=\"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\">\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png\" alt=\"\" width=\"700\" height=\"504\"><\/figure><div class=\"mf mg mh\"><picture><\/picture><\/div>\n<\/div><figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Photo credit: <a class=\"af mz\" href=\"https:\/\/www.z5.ai\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">z5.ai<\/a><\/figcaption><\/figure>\n<p id=\"3828\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Time series analysis refers to techniques for deriving useful statistics and other data properties from time series data. Time series forecasting is the process of using a model to forecast future values based on values that have already been observed.<\/p>\n<p id=\"144b\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Time series analysis is used in our day-to-day activities as it answers the questions of \u201cHow many\u201d, \u201cWhen will\u201d, \u201cHow will\u201d, \u201cHow much\u201d and other related questions that may arise when there is a need to predict the future. Depending on the level of accuracy required for the prediction, the duration of the predicted period, and, of course, the amount of time available for feature selection and parameter tuning to produce the desired results, we can approach prediction tasks in various ways.<\/p>\n<p id=\"6c63\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Non-stationary data such as economics, meteorology, stock prices, and retail sales are presented using time series, but must usually be made stationary during pre-processing for predictions. With Prophet, however, we can skip this step and feed non-stationary data directly to the model. We\u2019ll demonstrate how to do this in this article.<\/p>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*JA-q7gCmpe7jrGcFOl4z3A.png\" alt=\"A Time Series Demo\" width=\"700\" height=\"247\"><\/figure><div class=\"mf mg nv\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*JA-q7gCmpe7jrGcFOl4z3A.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*JA-q7gCmpe7jrGcFOl4z3A.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*JA-q7gCmpe7jrGcFOl4z3A.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*JA-q7gCmpe7jrGcFOl4z3A.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*JA-q7gCmpe7jrGcFOl4z3A.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*JA-q7gCmpe7jrGcFOl4z3A.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*JA-q7gCmpe7jrGcFOl4z3A.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*JA-q7gCmpe7jrGcFOl4z3A.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Time series data plot<\/figcaption>\n<\/figure>\n<h1 id=\"97f2\" class=\"nw nx fo be ny nz oa go ob oc od gr oe of og oh oi oj ok ol om on oo op oq or bj\" data-selectable-paragraph=\"\"><strong class=\"al\">Comet<\/strong><\/h1>\n<p id=\"0e5a\" class=\"pw-post-body-paragraph na nb fo be b gm os nd ne gp ot ng nh ni ou nk nl nm ov no np nq ow ns nt nu fh bj\" data-selectable-paragraph=\"\">Comet is a platform for experimentation that enables you to monitor your machine-learning experiments. Comet has another noteworthy feature: it allows us to conduct exploratory data analysis. We can accomplish our EDA objectives thanks to Comet\u2019s integration with well-known Python visualization frameworks. You can learn more about Comet <a class=\"af mz\" href=\"\/signup?utm_source=Heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_SNUP_Heartbeat_Comet_Content\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>.<\/p>\n<p id=\"889c\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">This lesson will teach us how to integrate Comet with our time-series forecasting model. We will carry out some EDA on our Tesla stock dataset, and then we will log the visualizations onto the Comet experimentation website or platform. Without further ado, let\u2019s begin.<\/p>\n<h2 id=\"7a39\" class=\"ox nx fo be ny oy oz pa ob pb pc pd oe ni pe pf pg nm ph pi pj nq pk pl pm pn bj\" data-selectable-paragraph=\"\"><strong class=\"al\">Prerequisites<\/strong><\/h2>\n<p id=\"2a5c\" class=\"pw-post-body-paragraph na nb fo be b gm os nd ne gp ot ng nh ni ou nk nl nm ov no np nq ow ns nt nu fh bj\" data-selectable-paragraph=\"\">You may install the Comet library on your computer if you don\u2019t already have it there by using either of the following lines at the command prompt. Note that if you are installing packages directly into a Colab notebook, or any environment that uses virtual machines, you\u2019ll likely want to use <code class=\"cw po pp pq pr b\">pip<\/code>.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"1c4d\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">pip install comet_ml<\/span><\/pre>\n<p id=\"b8ce\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">\u2014 or \u2014<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"4f29\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">conda install -c comet_ml<\/span><\/pre>\n<h1 id=\"4fed\" class=\"nw nx fo be ny nz oa go ob oc od gr oe of og oh oi oj ok ol om on oo op oq or bj\" data-selectable-paragraph=\"\"><strong class=\"al\">Prophet<\/strong><\/h1>\n<p id=\"75a1\" class=\"pw-post-body-paragraph na nb fo be b gm os nd ne gp ot ng nh ni ou nk nl nm ov no np nq ow ns nt nu fh bj\" data-selectable-paragraph=\"\">Prophet is a additive model for predicting time series data that fits non-linear trends with seasonality that occurs annually, weekly, daily, and on weekends as well as during holidays. Strongly seasonal time series and multiple seasons of historical data are ideal for it. Prophet typically manages outliers well and is robust to missing data and changes in trends.<\/p>\n<p id=\"6288\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">The Facebook Core Data Science team recently released Prophet as an open-source software. It can be downloaded from PyPI and CRAN. To learn more about Prophet, you can check it out <a class=\"af mz\" href=\"https:\/\/facebook.github.io\/prophet\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>.<\/p>\n<p id=\"aa56\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Before we begin our project, we will import Comet and Prophet using the code below.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"ff05\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">import comet_ml\nfrom prophet import Prophet<\/span><\/pre>\n<p id=\"eb62\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">We then create our <code class=\"cw po pp pq pr b\">.comet.config<\/code> file and and add in our API key, workspace, and name of our project so all the readings on our models can be automatically tracked and logged. If you don\u2019t already have a Comet account, you can sign up for free <a class=\"af mz\" href=\"\/signup\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>, and then just grab your API key from <code class=\"cw po pp pq pr b\">Account settings<\/code> \/ <code class=\"cw po pp pq pr b\">API Keys<\/code>.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"bdad\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">comet_string = \"\"\"[comet]\napi_key= &lt;Your-API-Key&gt;\nproject_name= \"Stock Price prediction\"\nworkspace= olujerry\n\"\"\"\nwith open('.comet.config', 'w') as f:\nf.write(comet_string)<\/span><span id=\"c490\" class=\"ox nx fo pr b ia pz px l iq py\" data-selectable-paragraph=\"\">exp = Experiment()<\/span><\/pre>\n<p id=\"7611\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Next, we can get started on our car monthly sales time analysis project. We begin by importing all the remaining necessary libraries.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"8204\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">import numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nfrom pandas.plotting import lag_plot\nfrom pandas import datetime\nfrom statsmodels.tsa.arima_model import ARIMA\nfrom sklearn.metrics import mean_squared_error<\/span><\/pre>\n<p id=\"a6ee\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">After importing all the necessary libraries, we now import <a class=\"af mz\" href=\"https:\/\/github.com\/jbrownlee\/Datasets\/blob\/master\/monthly-car-sales.csv\" target=\"_blank\" rel=\"noopener ugc nofollow\"><strong class=\"be qa\">our dataset<\/strong><\/a>.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"b631\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Car_sales = pd.read_csv('\/content\/monthly-car-sales.csv',\n                        parse_dates=['Month'])<\/span><\/pre>\n<p id=\"af32\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">We then show the first 10 lines of our dataset using the code below:<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"d248\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Car_sales.head(10)<\/span><\/pre>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:337\/1*Xf9DO_SKdctFFF0x4bmOBw.png\" alt=\"\" width=\"337\" height=\"382\"><\/figure><div class=\"mf mg qb\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:674\/format:webp\/1*Xf9DO_SKdctFFF0x4bmOBw.png 674w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 337px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*Xf9DO_SKdctFFF0x4bmOBw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*Xf9DO_SKdctFFF0x4bmOBw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*Xf9DO_SKdctFFF0x4bmOBw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*Xf9DO_SKdctFFF0x4bmOBw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*Xf9DO_SKdctFFF0x4bmOBw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*Xf9DO_SKdctFFF0x4bmOBw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:674\/1*Xf9DO_SKdctFFF0x4bmOBw.png 674w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 337px\" data-testid=\"og\"><\/picture><\/div>\n<\/figure>\n<p id=\"e83a\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">In order to use the <code class=\"cw po pp pq pr b\">prophet.fit()<\/code> function, the DataFrame must be in a particular format. Datetime information must be in the first column, which must be named <code class=\"cw po pp pq pr b\">ds<\/code>. The observations must be in the second column, which must be named <code class=\"cw po pp pq pr b\">y<\/code>.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"1517\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Car_sales= Car_sales.rename(columns= {'Month':'ds', 'Sales':'y'})<\/span><\/pre>\n<p id=\"ef02\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Before we fit our model, let\u2019s quickly visualize it first:<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"153a\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">plt.plot(Car_sales['ds'], Car_sales['y'])\nplt.show()<\/span><\/pre>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*j9GFHeW72hKjUsKX8XGpwA.png\" alt=\"\" width=\"700\" height=\"422\"><\/figure><div class=\"mf mg qc\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*j9GFHeW72hKjUsKX8XGpwA.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*j9GFHeW72hKjUsKX8XGpwA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*j9GFHeW72hKjUsKX8XGpwA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*j9GFHeW72hKjUsKX8XGpwA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*j9GFHeW72hKjUsKX8XGpwA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*j9GFHeW72hKjUsKX8XGpwA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*j9GFHeW72hKjUsKX8XGpwA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*j9GFHeW72hKjUsKX8XGpwA.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<p id=\"37e4\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">We then fit our model:<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"3a3b\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Feature = Prophet()\nFeature.fit(Car_sales)<\/span><\/pre>\n<p id=\"32a5\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">We then make a forecast to predict the price of cars in the future, where N is the number of time periods we would like to predict. Because our data is monthly, this means we will predict the next 10 months worth of data:<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"cdf7\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">N = 10\nfuture_Car_sales = Feature.make_future_dataframe(periods=N)\nforecast = Feature.predict(future_Car_sales)<\/span><\/pre>\n<p id=\"5f17\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">We can now plot the prediction:<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"2623\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Feature.plot(forecast)\nplt.show()<\/span><\/pre>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*HE82Pagrr8mhil13sRJn4Q.png\" alt=\"\" width=\"700\" height=\"399\"><\/figure><div class=\"mf mg qd\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*HE82Pagrr8mhil13sRJn4Q.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*HE82Pagrr8mhil13sRJn4Q.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*HE82Pagrr8mhil13sRJn4Q.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*HE82Pagrr8mhil13sRJn4Q.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*HE82Pagrr8mhil13sRJn4Q.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*HE82Pagrr8mhil13sRJn4Q.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*HE82Pagrr8mhil13sRJn4Q.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*HE82Pagrr8mhil13sRJn4Q.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<p id=\"35a8\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">From the forecast, we can see the rise and fall of prices in cars over the years, with car prices reaching their peak in 1968 at 26,000 before dropping off the ladder in 1969.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<blockquote class=\"qm\"><p id=\"8d7a\" class=\"qn qo fo be qp qq qr qs qt qu qv nu dv\" data-selectable-paragraph=\"\">Curious to see how Comet works? <a class=\"af mz\" href=\"https:\/\/www.comet.com\/site\/blog\/debugging-your-machine-learning-models-with-comet-artifacts\/?utm_source=heartbeat&amp;utm_medium=referral&amp;utm_campaign=AMS_US_EN_AWA_heartbeat_CTA\" target=\"_blank\" rel=\"noopener ugc nofollow\">Check out our PetCam scenario to see MLOps in action.<\/a><\/p><\/blockquote>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div class=\"fh fi fj fk fl\">\n<div class=\"ab ca\">\n<div class=\"ch bg et eu ev ew\">\n<p id=\"383e\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">The next step involves viewing the components of our time series analysis which includes sales per year and other features.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"1329\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">Feature.plot_components(forecast)\nplt.show()<\/span><\/pre>\n<p id=\"22d0\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Finally, we must view our results in Comet, which requires us to terminate our experiment.<\/p>\n<pre class=\"mi mj mk ml mm ps pr pt pu ax pv bj\"><span id=\"ea5c\" class=\"ox nx fo pr b ia pw px l iq py\" data-selectable-paragraph=\"\">exp.end()<\/span><\/pre>\n<h1 id=\"1065\" class=\"nw nx fo be ny nz oa go ob oc od gr oe of og oh oi oj ok ol om on oo op oq or bj\" data-selectable-paragraph=\"\">Showing results in Comet<\/h1>\n<p id=\"91f9\" class=\"pw-post-body-paragraph na nb fo be b gm os nd ne gp ot ng nh ni ou nk nl nm ov no np nq ow ns nt nu fh bj\" data-selectable-paragraph=\"\">To check your result, follow the link displayed in your notebook when you started the experiment, or login to your Comet account and head over to your workspace.<\/p>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*_zC6-tEJawjFD0WNnjE-fw.png\" alt=\"\" width=\"700\" height=\"54\"><\/figure><div class=\"mf mg qw\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*_zC6-tEJawjFD0WNnjE-fw.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*_zC6-tEJawjFD0WNnjE-fw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*_zC6-tEJawjFD0WNnjE-fw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*_zC6-tEJawjFD0WNnjE-fw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*_zC6-tEJawjFD0WNnjE-fw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*_zC6-tEJawjFD0WNnjE-fw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*_zC6-tEJawjFD0WNnjE-fw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*_zC6-tEJawjFD0WNnjE-fw.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<p id=\"bb0e\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">The tuned parameters are listed in the hyperparameters section:<\/p>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*NXDkJGZxmbgamX9ky_a2GA.png\" alt=\"\" width=\"700\" height=\"310\"><\/figure><div class=\"mf mg qx\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*NXDkJGZxmbgamX9ky_a2GA.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*NXDkJGZxmbgamX9ky_a2GA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*NXDkJGZxmbgamX9ky_a2GA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*NXDkJGZxmbgamX9ky_a2GA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*NXDkJGZxmbgamX9ky_a2GA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*NXDkJGZxmbgamX9ky_a2GA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*NXDkJGZxmbgamX9ky_a2GA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*NXDkJGZxmbgamX9ky_a2GA.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<p id=\"b2d4\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">The logged model can be found in the Assets &amp; Artifacts menu.<\/p>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*M_AYY6Vg3FzB11h_9Agj1A.png\" alt=\"\" width=\"700\" height=\"328\"><\/figure><div class=\"mf mg qy\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*M_AYY6Vg3FzB11h_9Agj1A.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*M_AYY6Vg3FzB11h_9Agj1A.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*M_AYY6Vg3FzB11h_9Agj1A.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*M_AYY6Vg3FzB11h_9Agj1A.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*M_AYY6Vg3FzB11h_9Agj1A.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*M_AYY6Vg3FzB11h_9Agj1A.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*M_AYY6Vg3FzB11h_9Agj1A.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*M_AYY6Vg3FzB11h_9Agj1A.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<p id=\"75da\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">Under the Graphics menu, you can see the produced <code class=\"cw po pp pq pr b\">matplotlib<\/code> figures. This shows all the charts for every plot made in our notebook.<\/p>\n<figure class=\"mi mj mk ml mm mn mf mg paragraph-image\">\n<div class=\"mo mp eb mq bg mr\" tabindex=\"0\" role=\"button\">\n<figure><img loading=\"lazy\" decoding=\"async\" class=\"bg ms mt c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*zWbBwpq1yfL66zK1jxAeeQ.png\" alt=\"\" width=\"700\" height=\"333\"><\/figure><div class=\"mf mg qz\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/1*zWbBwpq1yfL66zK1jxAeeQ.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\"><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/1*zWbBwpq1yfL66zK1jxAeeQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/1*zWbBwpq1yfL66zK1jxAeeQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/1*zWbBwpq1yfL66zK1jxAeeQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/1*zWbBwpq1yfL66zK1jxAeeQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/1*zWbBwpq1yfL66zK1jxAeeQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/1*zWbBwpq1yfL66zK1jxAeeQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/1*zWbBwpq1yfL66zK1jxAeeQ.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\"><\/picture><\/div>\n<\/div>\n<figcaption class=\"mu mv mw mf mg mx my be b bf z dv\" data-selectable-paragraph=\"\">Image by author<\/figcaption>\n<\/figure>\n<h1 id=\"1201\" class=\"nw nx fo be ny nz oa go ob oc od gr oe of og oh oi oj ok ol om on oo op oq or bj\" data-selectable-paragraph=\"\">Conclusion<\/h1>\n<p id=\"45a2\" class=\"pw-post-body-paragraph na nb fo be b gm os nd ne gp ot ng nh ni ou nk nl nm ov no np nq ow ns nt nu fh bj\" data-selectable-paragraph=\"\">We just tracked our monthly car price prediction model in Comet.<\/p>\n<p id=\"912a\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">In this tutorial, we\u2019ve demonstrated how to forecast time series data in Comet using Prophet. We\u2019ve discussed how to set up your data, make predictions, and monitor the outcomes in Comet.<\/p>\n<p id=\"1dad\" class=\"pw-post-body-paragraph na nb fo be b gm nc nd ne gp nf ng nh ni nj nk nl nm nn no np nq nr ns nt nu fh bj\" data-selectable-paragraph=\"\">To work with the dataset, you can get it <a class=\"af mz\" href=\"https:\/\/github.com\/jbrownlee\/Datasets\/blob\/master\/monthly-car-sales.csv\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>. You can also download the full code used in this tutorial <a class=\"af mz\" href=\"https:\/\/github.com\/olujerry\/olujerry\/blob\/main\/Time_Series_Analysis.ipynb\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Photo credit: z5.ai Time series analysis refers to techniques for deriving useful statistics and other data properties from time series data. Time series forecasting is the process of using a model to forecast future values based on values that have already been observed. Time series analysis is used in our day-to-day activities as it answers [&hellip;]<\/p>\n","protected":false},"author":99,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"customer_name":"","customer_description":"","customer_industry":"","customer_technologies":"","customer_logo":"","footnotes":""},"categories":[9,7],"tags":[],"coauthors":[197],"class_list":["post-7790","post","type-post","status-publish","format-standard","hentry","category-product","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.9 (Yoast SEO v25.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Integrating Time Series Analysis in Comet - Comet<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Integrating Time Series Analysis in Comet\" \/>\n<meta property=\"og:description\" content=\"Photo credit: z5.ai Time series analysis refers to techniques for deriving useful statistics and other data properties from time series data. Time series forecasting is the process of using a model to forecast future values based on values that have already been observed. Time series analysis is used in our day-to-day activities as it answers [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/\" \/>\n<meta property=\"og:site_name\" content=\"Comet\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cometdotml\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-04T18:56:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-24T17:06:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png\" \/>\n<meta name=\"author\" content=\"Jeremiah Oluseye\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Cometml\" \/>\n<meta name=\"twitter:site\" content=\"@Cometml\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeremiah Oluseye\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Integrating Time Series Analysis in Comet - Comet","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/","og_locale":"en_US","og_type":"article","og_title":"Integrating Time Series Analysis in Comet","og_description":"Photo credit: z5.ai Time series analysis refers to techniques for deriving useful statistics and other data properties from time series data. Time series forecasting is the process of using a model to forecast future values based on values that have already been observed. Time series analysis is used in our day-to-day activities as it answers [&hellip;]","og_url":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/","og_site_name":"Comet","article_publisher":"https:\/\/www.facebook.com\/cometdotml","article_published_time":"2023-10-04T18:56:43+00:00","article_modified_time":"2025-04-24T17:06:05+00:00","og_image":[{"url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png","type":"","width":"","height":""}],"author":"Jeremiah Oluseye","twitter_card":"summary_large_image","twitter_creator":"@Cometml","twitter_site":"@Cometml","twitter_misc":{"Written by":"Jeremiah Oluseye","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#article","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/"},"author":{"name":"Jeremiah Oluseye","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/73f233b4e35ab400cb753ebd29e58621"},"headline":"Integrating Time Series Analysis in Comet","datePublished":"2023-10-04T18:56:43+00:00","dateModified":"2025-04-24T17:06:05+00:00","mainEntityOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/"},"wordCount":891,"publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png","articleSection":["Product","Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/","url":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/","name":"Integrating Time Series Analysis in Comet - Comet","isPartOf":{"@id":"https:\/\/www.comet.com\/site\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#primaryimage"},"image":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#primaryimage"},"thumbnailUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png","datePublished":"2023-10-04T18:56:43+00:00","dateModified":"2025-04-24T17:06:05+00:00","breadcrumb":{"@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#primaryimage","url":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png","contentUrl":"https:\/\/miro.medium.com\/v2\/resize:fit:700\/1*S5rzIPoLJfGNP6bZet0Seg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.comet.com\/site\/blog\/integrating-time-series-analysis-in-comet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.comet.com\/site\/"},{"@type":"ListItem","position":2,"name":"Integrating Time Series Analysis in Comet"}]},{"@type":"WebSite","@id":"https:\/\/www.comet.com\/site\/#website","url":"https:\/\/www.comet.com\/site\/","name":"Comet","description":"Build Better Models Faster","publisher":{"@id":"https:\/\/www.comet.com\/site\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.comet.com\/site\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.comet.com\/site\/#organization","name":"Comet ML, Inc.","alternateName":"Comet","url":"https:\/\/www.comet.com\/site\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2025\/01\/logo_comet_square.png","width":310,"height":310,"caption":"Comet ML, Inc."},"image":{"@id":"https:\/\/www.comet.com\/site\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/cometdotml","https:\/\/x.com\/Cometml","https:\/\/www.youtube.com\/channel\/UCmN63HKvfXSCS-UwVwmK8Hw"]},{"@type":"Person","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/73f233b4e35ab400cb753ebd29e58621","name":"Jeremiah Oluseye","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.comet.com\/site\/#\/schema\/person\/image\/5534a0faf067d6eb66a7f0c328629fbf","url":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/10\/cropped-mBj9qH7g_400x400-96x96.jpg","contentUrl":"https:\/\/www.comet.com\/site\/wp-content\/uploads\/2023\/10\/cropped-mBj9qH7g_400x400-96x96.jpg","caption":"Jeremiah Oluseye"},"url":"https:\/\/www.comet.com\/site\/blog\/author\/oluseyejeremiahgmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/users\/99"}],"replies":[{"embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/comments?post=7790"}],"version-history":[{"count":1,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7790\/revisions"}],"predecessor-version":[{"id":15522,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/posts\/7790\/revisions\/15522"}],"wp:attachment":[{"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/media?parent=7790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/categories?post=7790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/tags?post=7790"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.comet.com\/site\/wp-json\/wp\/v2\/coauthors?post=7790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}