{"id":5929,"date":"2021-12-01T13:13:29","date_gmt":"2021-12-01T12:13:29","guid":{"rendered":"https:\/\/joapen.com\/blog\/?p=5929"},"modified":"2021-12-10T13:18:58","modified_gmt":"2021-12-10T12:18:58","slug":"time-series-notes","status":"publish","type":"post","link":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/","title":{"rendered":"Time Series notes"},"content":{"rendered":"\n<p>I have done <a href=\"https:\/\/www.kaggle.com\/learn\/time-series\" target=\"_blank\" rel=\"noreferrer noopener\">this course<\/a> proposed by Kaggle, and I would like to take some notes.<\/p>\n\n\n\n<p>The&nbsp;<strong>trend<\/strong>&nbsp;component of a time series represents a persistent, long-term change in the mean of the series.<\/p>\n\n\n\n<p>We mainly have:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Time dependent properties: trends and seasonality.<\/li><li>Serial dependent properties: Cycles and lagged series<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">1. Trends<\/h2>\n\n\n\n<p>The&nbsp;<strong>trend<\/strong>&nbsp;component of a time series represents a persistent, long-term change in the mean of the series.<\/p>\n\n\n\n<p>The use of polynomials enable the ability to predict trends. The right order of polynomials is key. To use high order of polynomial has risks.<\/p>\n\n\n\n<p>An high-order polynomial tend to diverge rapidly outside of the training period making forecasts very unreliable.<\/p>\n\n\n\n<p><strong>Splines<\/strong> are a nice alternative to polynomials when you want to fit a trend. The <em>Multivariate Adaptive Regression Splines<\/em> (MARS) algorithm in the <code>pyearth<\/code> library is powerful and easy to use. There are a lot of hyper-parameters you may want to investigate.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">2. Seasonality<\/h2>\n\n\n\n<p>We say that a time series exhibits&nbsp;<strong>seasonality<\/strong>&nbsp;whenever there is a regular, periodic change in the mean of the series. Seasonal changes generally follow the clock and calendar.<\/p>\n\n\n\n<p>For simple situations we only needed eight features (four sine \/ cosine pairs) to get a good estimate of the annual seasonality. Compare this to the seasonal indicator method which would have required hundreds of features (one for each day of the year). By modeling only the &#8220;main effect&#8221; of the seasonality with Fourier features, you&#8217;ll usually need to add far fewer features to your training data, which means reduced computation time and less risk of over-fitting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"What-is-Serial-Dependence?\">What is Serial Dependence?<a href=\"https:\/\/www.kaggle.com\/ryanholbrook\/time-series-as-features#What-is-Serial-Dependence?\"><\/a><\/h2>\n\n\n\n<p>In time series, we have seen properties that are most easily modeled as&nbsp;<em><strong>time dependent<\/strong><\/em>&nbsp;properties, that is, with features we could derive directly from the time index (for instance: trend and seasonality).<\/p>\n\n\n\n<p>Some time series properties, however, can only be modeled as&nbsp;<em><strong>serially dependent<\/strong><\/em>&nbsp;properties, that is, using as features past values of the target series. The structure of these time series may not be apparent from a plot over time; plotted against past values, however, the structure becomes clear plotting in different forms.<\/p>\n\n\n\n<p>For instance:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-imgur wp-block-embed-imgur\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"imgur-embed-pub\" lang=\"en\" data-id=\"X0sSnwp\"><a href=\"https:\/\/imgur.com\/X0sSnwp\">View post on imgur.com<\/a><\/blockquote><script async src=\"\/\/s.imgur.com\/min\/embed.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">3.- Cycles<\/h2>\n\n\n\n<p>Cycles are patterns of growth and decay in a time series associated with how the value in a series at one time depends on values at previous times, but not necessarily on the time step itself.<\/p>\n\n\n\n<p>What distinguishes cyclic behavior from seasonality is that cycles are not necessarily time dependent, as seasons are.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Lagged-Series-and-Lag-Plots\">Lagged Series and Lag Plots<a href=\"https:\/\/www.kaggle.com\/ryanholbrook\/time-series-as-features#Lagged-Series-and-Lag-Plots\"><\/a><\/h2>\n\n\n\n<p>To investigate possible serial dependence (like cycles) in a time series, we need to create &#8220;lagged&#8221; copies of the series.&nbsp;<strong>Lagging<\/strong>&nbsp;a time series means to shift its values forward one or more time steps, or equivalently, to shift the times in its index backward one or more steps. In either case, the effect is that the observations in the lagged series will appear to have happened later in time.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Choosing-lags\">Choosing lags<a href=\"https:\/\/www.kaggle.com\/ryanholbrook\/time-series-as-features#Choosing-lags\"><\/a><\/h3>\n\n\n\n<p>When choosing lags to use as features, it generally won&#8217;t be useful to include&nbsp;<em>every<\/em>&nbsp;lag with a large autocorrelation.<\/p>\n\n\n\n<p>The&nbsp;<strong>partial autocorrelation<\/strong>&nbsp;tells you the correlation of a lag accounting for all of the previous lags &#8212; the amount of &#8220;new&#8221; correlation the lag contributes, so to speak. Plotting the partial autocorrelation can help you choose which lag features to use. &#8220;plot_pacf(data, lags=12)&#8221;<\/p>\n\n\n\n<p>&nbsp;When using lag features, however, we are limited to forecasting time steps whose lagged values are available. Using a lag 1 feature on Monday, we can&#8217;t make a forecast for Wednesday because the lag 1 value needed is Tuesday which hasn&#8217;t happened yet.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">4.- Hybrid models<\/h2>\n\n\n\n<p>Linear regression excels at extrapolating trends, but can&#8217;t learn interactions. XGBoost excels at learning interactions, but can&#8217;t extrapolate trends. So, mixing them in the right way could help to get better results.<\/p>\n\n\n\n<p>The difference between the target series and the predictions gives the series of <strong>residuals<\/strong>. These residuals can be used.<\/p>\n\n\n\n<p>There are generally two ways a regression algorithm can make predictions:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>By <strong>transforming the&nbsp;<em>features<\/em><\/strong>: &nbsp;learn some mathematical function that takes features as an input and then combines and transforms them to produce an output that matches the target values in the training set.<\/li><li>By <strong>transforming the&nbsp;<em>target<\/em><\/strong>: use the features to group the target values in the training set and make predictions by averaging values in a group; a set of feature just indicates which group to average. Decision trees and nearest neighbors are of this kind.<\/li><\/ol>\n\n\n\n<p>For instance:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Linear regression and neural nets -works by transforming the features.<\/li><li>Decision trees and nearest neighbors works by transforming the target.<\/li><\/ol>\n\n\n\n<p>The important thing is this: feature transformers generally can&nbsp;<strong>extrapolate<\/strong>&nbsp;target values beyond the training set given appropriate features as inputs, but the predictions of target transformers will always be bound within the range of the training set. If the time dummy continues counting time steps, linear regression continues drawing the trend line. Given the same time dummy, a decision tree will predict the trend indicated by the last step of the training data into the future forever.&nbsp;<em>Decision trees cannot extrapolate trends.<\/em>&nbsp;Random forests and gradient boosted decision trees (like XGBoost) are ensembles of decision trees, so they also cannot extrapolate trends.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">A decision tree will fail to extrapolate a trend beyond the training set.<\/pre>\n\n\n\n<p>This drives us to hybrid models: use linear regression to extrapolate the trend, transform the&nbsp;<em>target<\/em>&nbsp;to remove the trend, and apply XGBoost to the detrended residuals.<\/p>\n\n\n\n<p>To hybridize a neural net (a feature transformer), you could instead include the predictions of another model as a feature, which the neural net would then include as part of its own predictions. The method of fitting to residuals is actually the same method the gradient boosting algorithm uses, so we will call these <strong>boosted<\/strong> hybrids; the method of using predictions as features is known as &#8220;stacking&#8221;, so we will call these<strong> stacked<\/strong> hybrids.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">5.- Multistep Forecasting Strategies<\/h2>\n\n\n\n<p>Let&#8217;s start with some definitions:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The&nbsp;<strong>forecast origin<\/strong>&nbsp;is time at which you are making a forecast. Practically, you might consider the forecast origin to be the last time for which you have training data for the time being predicted. Everything up to he origin can be used to create features.<\/li><li>The&nbsp;<strong>forecast horizon<\/strong>&nbsp;is the time for which you are making a forecast. We often describe a forecast by the number of time steps in its horizon: a &#8220;1-step&#8221; forecast or &#8220;5-step&#8221; forecast, say. The forecast horizon describes the target.<\/li><li>The time between the origin and the horizon is the&nbsp;<strong>lead time<\/strong>&nbsp;(or sometimes&nbsp;<em>latency<\/em>) of the forecast.<\/li><\/ul>\n\n\n\n<p>There are a number of strategies for producing the multiple target steps required for a forecast:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Multioutput model<\/strong>: <a href=\"https:\/\/www.kaggle.com\/ryanholbrook\/forecasting-with-machine-learning#Multioutput-model\"><\/a>Use a model that produces multiple outputs naturally. Linear regression and neural networks can both produce multiple outputs. This strategy is simple and efficient, but not possible for every algorithm you might want to use.<\/li><li><strong>Direct strategy<\/strong>: Train a separate model for each step in the horizon: one model forecasts 1-step ahead, another 2-steps ahead, and so on. Forecasting 1-step ahead is a different problem than 2-steps ahead (and so on), so it can help to have a different model make forecasts for each step. The downside is that training lots of models can be computationally expensive.<\/li><li><strong>Recursive strategy<\/strong>: Train a single one-step model and use its forecasts to update the lag features for the next step. With the recursive method, we feed a model&#8217;s 1-step forecast back in to that same model to use as a lag feature for the next forecasting step. We only need to train one model, but since errors will propagate from step to step, forecasts can be inaccurate for long horizons.<\/li><li><strong>DirRec strategy<\/strong>: A combination of the direct and recursive strategies: train a model for each step and use forecasts from previous steps as new lag features. Step by step, each model gets an additional lag input. Since each model always has an up-to-date set of lag features, the DirRec strategy can capture serial dependence better than Direct, but it can also suffer from error propagation like Recursive.<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, long-term change in the mean of the series. We mainly have: Time dependent properties: trends and seasonality. Serial dependent properties: Cycles and lagged series 1. Trends The&nbsp;trend&nbsp;component of a time series &#8230; <a title=\"Time Series notes\" class=\"read-more\" href=\"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/\" aria-label=\"Read more about Time Series notes\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[151],"tags":[],"class_list":["post-5929","post","type-post","status-publish","format-standard","hentry","category-machine-learning"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Time Series notes -<\/title>\n<meta name=\"description\" content=\"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Time Series notes -\" \/>\n<meta property=\"og:description\" content=\"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects\" \/>\n<meta property=\"og:url\" content=\"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/\" \/>\n<meta property=\"og:site_name\" content=\"joapen projects\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-01T12:13:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-10T12:18:58+00:00\" \/>\n<meta name=\"author\" content=\"joapen\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"joapen\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/\"},\"author\":{\"name\":\"joapen\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"headline\":\"Time Series notes\",\"datePublished\":\"2021-12-01T12:13:29+00:00\",\"dateModified\":\"2021-12-10T12:18:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/\"},\"wordCount\":1371,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"articleSection\":[\"Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/\",\"name\":\"Time Series notes -\",\"isPartOf\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#website\"},\"datePublished\":\"2021-12-01T12:13:29+00:00\",\"dateModified\":\"2021-12-10T12:18:58+00:00\",\"description\":\"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/2021\\\/12\\\/01\\\/time-series-notes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\\\/\\\/joapen.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Time Series notes\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#website\",\"url\":\"http:\\\/\\\/joapen.com\\\/blog\\\/\",\"name\":\"joapen projects\",\"description\":\"Just a place to write\",\"publisher\":{\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\\\/\\\/joapen.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\\\/\\\/joapen.com\\\/blog\\\/#\\\/schema\\\/person\\\/23919df2312175fe9c4609203595b217\",\"name\":\"joapen\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"url\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"contentUrl\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\",\"width\":400,\"height\":400,\"caption\":\"joapen\"},\"logo\":{\"@id\":\"https:\\\/\\\/joapen.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/04\\\/joapen-mini.jpeg\"},\"sameAs\":[\"http:\\\/\\\/www.joapen.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Time Series notes -","description":"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects","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:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/","og_locale":"en_US","og_type":"article","og_title":"Time Series notes -","og_description":"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects","og_url":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/","og_site_name":"joapen projects","article_published_time":"2021-12-01T12:13:29+00:00","article_modified_time":"2021-12-10T12:18:58+00:00","author":"joapen","twitter_misc":{"Written by":"joapen","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/#article","isPartOf":{"@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/"},"author":{"name":"joapen","@id":"http:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"headline":"Time Series notes","datePublished":"2021-12-01T12:13:29+00:00","dateModified":"2021-12-10T12:18:58+00:00","mainEntityOfPage":{"@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/"},"wordCount":1371,"commentCount":0,"publisher":{"@id":"http:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"articleSection":["Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/","url":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/","name":"Time Series notes -","isPartOf":{"@id":"http:\/\/joapen.com\/blog\/#website"},"datePublished":"2021-12-01T12:13:29+00:00","dateModified":"2021-12-10T12:18:58+00:00","description":"I have done this course proposed by Kaggle, and I would like to take some notes. The&nbsp;trend&nbsp;component of a time series represents a persistent, - joapen projects","breadcrumb":{"@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/joapen.com\/blog\/2021\/12\/01\/time-series-notes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/joapen.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Time Series notes"}]},{"@type":"WebSite","@id":"http:\/\/joapen.com\/blog\/#website","url":"http:\/\/joapen.com\/blog\/","name":"joapen projects","description":"Just a place to write","publisher":{"@id":"http:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/joapen.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"http:\/\/joapen.com\/blog\/#\/schema\/person\/23919df2312175fe9c4609203595b217","name":"joapen","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","url":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","contentUrl":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg","width":400,"height":400,"caption":"joapen"},"logo":{"@id":"https:\/\/joapen.com\/blog\/wp-content\/uploads\/2021\/04\/joapen-mini.jpeg"},"sameAs":["http:\/\/www.joapen.com"]}]}},"_links":{"self":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/5929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/comments?post=5929"}],"version-history":[{"count":7,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/5929\/revisions"}],"predecessor-version":[{"id":5999,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/posts\/5929\/revisions\/5999"}],"wp:attachment":[{"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/media?parent=5929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/categories?post=5929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/joapen.com\/blog\/wp-json\/wp\/v2\/tags?post=5929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}