<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Stock Market Prediction &#8211; Adjusting Time Series Prediction Intervals in Python	</title>
	<atom:link href="https://www.relataly.com/changing-prediction-intervals-for-time-series-forecasting-models/169/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.relataly.com/changing-prediction-intervals-for-time-series-forecasting-models/169/</link>
	<description>The Business AI Blog</description>
	<lastBuildDate>Sat, 27 May 2023 10:18:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: David campbell		</title>
		<link>https://www.relataly.com/changing-prediction-intervals-for-time-series-forecasting-models/169/#comment-203</link>

		<dc:creator><![CDATA[David campbell]]></dc:creator>
		<pubDate>Sat, 28 Aug 2021 14:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.relataly.com/?p=169#comment-203</guid>

					<description><![CDATA[hi there,
i did not get the code. first you tried to convert daily data into week data. but in neural model, you utilized daily data. Also did prediction on daily x_test data. then how you predicted next week data?]]></description>
			<content:encoded><![CDATA[<p>hi there,<br />
i did not get the code. first you tried to convert daily data into week data. but in neural model, you utilized daily data. Also did prediction on daily x_test data. then how you predicted next week data?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ed		</title>
		<link>https://www.relataly.com/changing-prediction-intervals-for-time-series-forecasting-models/169/#comment-199</link>

		<dc:creator><![CDATA[Ed]]></dc:creator>
		<pubDate>Wed, 11 Aug 2021 05:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.relataly.com/?p=169#comment-199</guid>

					<description><![CDATA[in the daily timeframe you could also forecast a price 7 days (or 7 bars ) in the future by adjusting the samples. For instance, see below. I tested it and it works. So it just forecasts 1 bar but 7 bars ahead instead of just 1 bar ahead.  Of course the length of the array pred_price_unscaled will also be nfut bars shorter.

Let me know what you think


nfut = 7

def partition_dataset(sequence_length, train_df):
    x, y = [], []
    data_len = train_df.shape[0]
    for i in range(sequence_length, data_len - nfut + 1):
        x.append(train_df[i-sequence_length:i,:]) #contains sequence_length values 0-sequence_length * columsn
        y.append(train_df[i + nfut - 1, index_Close]) #contains the prediction values for validation (3rd column = Close),  for single-step prediction
    
    # Convert the x and y to numpy arrays
    x = np.array(x)
    y = np.array(y)
    return x, y]]></description>
			<content:encoded><![CDATA[<p>in the daily timeframe you could also forecast a price 7 days (or 7 bars ) in the future by adjusting the samples. For instance, see below. I tested it and it works. So it just forecasts 1 bar but 7 bars ahead instead of just 1 bar ahead.  Of course the length of the array pred_price_unscaled will also be nfut bars shorter.</p>
<p>Let me know what you think</p>
<p>nfut = 7</p>
<p>def partition_dataset(sequence_length, train_df):<br />
    x, y = [], []<br />
    data_len = train_df.shape[0]<br />
    for i in range(sequence_length, data_len &#8211; nfut + 1):<br />
        x.append(train_df[i-sequence_length:i,:]) #contains sequence_length values 0-sequence_length * columsn<br />
        y.append(train_df[i + nfut &#8211; 1, index_Close]) #contains the prediction values for validation (3rd column = Close),  for single-step prediction</p>
<p>    # Convert the x and y to numpy arrays<br />
    x = np.array(x)<br />
    y = np.array(y)<br />
    return x, y</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
