time-series-forecasting | becoming increasingly common for organizations to collect | Time Series Database library
kandi X-RAY | time-series-forecasting Summary
kandi X-RAY | time-series-forecasting Summary
Tidy Time Series and Forecasting in R.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of time-series-forecasting
time-series-forecasting Key Features
time-series-forecasting Examples and Code Snippets
Community Discussions
Trending Discussions on time-series-forecasting
QUESTION
I have a .csv database file which looks like this:
...ANSWER
Answered 2022-Feb-06 at 19:25Assuming the labels are integers, they have the wrong shape for SparseCategoricalCrossentropy
. Check the docs.
Try converting your y
to one-hot encoded labels:
QUESTION
I am using different LSTM architectures in combination with kerastuner.
This one:
...ANSWER
Answered 2022-Jan-18 at 07:41You have to provide an input_shape to the first layer. In your case this is tf.keras.layers.Bidirectional()
and not tf.keras.layers.LSTM
.
Two alternatives are:
- First call your model with actual data
- Call model.build(input_shape) before calling model.compile()
QUESTION
I am trying to use PyCaret
for time series, according to this tutorial.
My analysis did not work. When I created a new column
data['MA12'] = data['variable'].rolling(12).mean()
I got this new MA12
column with NA
values only.
As a resulted I decided to replicate the code from the tutorial, using AirPassangers
dataset, but got the same issue.
When I print data, I get
...ANSWER
Answered 2021-Aug-19 at 23:02Since you want the previous 12 reads, the first 11 will be NaN. You need more rows than 12 before you get a moving average of 12. You can see this on the link you provided. The chart of MA doesn't start up right away.
QUESTION
I was checking the code I found here, the example at Multivariate Multi-Step LSTM Models - > Multiple Input Multi-Step Output
.
I altered the code and used binary_crossentropy
and sigmoid
activation for the last layer.
ANSWER
Answered 2021-Jun-24 at 09:21this is because your network is build to output 3D sequences of shape (None, 3, 1)
while your targets have shape (None, 2, 1)
The best and automated way to handle this situation correctly is to build an encoder-decoder structure... Below the example:
QUESTION
I was trying to run the following two segments, a part from this databricks tutorial.
...ANSWER
Answered 2021-Apr-10 at 21:29Pandas dates default to datetime64[ns]
. So you don't want to compare them to datetime.date
objects. Instead, you can just use a date string and pandas will handle the comparison corectly. Also, if you use loc
to specify the rows and columns, you will get a cleaner syntax than in your examples.
QUESTION
I'm using MATLAB to predict a trend with a machine learning approach.
My data file is an .xlsx file containing a timeline in one column (various sampling timestamps, i.e. numbers that represents seconds), and in the other columns I have some integers representing my trend.
My .xlsx file is pretty much like this:
...ANSWER
Answered 2021-Apr-03 at 20:46I would distinguish the forecasting problem from the data sampling time problem. You are dealing substantially with missing data.
Forecasting problem: You may use any machine learning technique just ignoring missing data. If you are not familiar with machine learning, I would suggest you to use LASSO (least absolute shrinkage and selection operator), which has been demonstrated to have predicting power (see "Sparse Signals in the Cross-Section of Returns" by ALEX CHINCO, ADAM D. CLARK-JOSEPH, and MAO YE).
Missing imputation problem: In the first place you should consider the reason why you have missing data. Sometime it makes no sense to impute values because the information that the value is missing is itself important and should not be overridden. Otherwise you have multiple options, other than linear interpolation, to estimate the missing values. For example check the MATLAB function
fillmissing
.
QUESTION
Foreword: I have no idea what I'm doing.
For a uni stats class we have to do some timeseries forecasting in python.
I've basically followed this tutorial but used my data: https://www.digitalocean.com/community/tutorials/a-guide-to-time-series-forecasting-with-arima-in-python-3
Everything is working perfectly fine, except the MSE.
When plotted everything, it looks like this:
Here's my data which I use for the MSE:
Original data (transactions['2016-05-01':]):
...ANSWER
Answered 2021-Jan-23 at 18:14Mean squared error can't be compared across datasets, because its magnitude depends on the units of the dataset. So you can't compare the MSE you're getting here to the MSE you see in example problems using other data.
One way to tell that the MSE value you're getting is reasonable is to look at the root mean squared error, which is in the scale of your original dataset. It's about 1000, and on average it looks like the forecasts are roughly 1000 away from the true values.
(this second part is a bit of a simplification, since RMSE penalizes large errors more than small errors, but it gives you an approximate check that the value you're getting is in the ballpark).
QUESTION
I am using the R programming language. Using the following tutorial : https://plotly.com/r/time-series/ and this stackoverflow question : How to plot multiple series/lines in a time series using plotly in R? I was able to make an interactive time series plot:
...ANSWER
Answered 2021-Jan-07 at 06:52I just figured out how to change the date to a more standard format:
QUESTION
I am new to Python. I followed this website as a guide to do some future predictions. After I did everything, the graph did not show up and I got these errors:
...ANSWER
Answered 2020-Oct-09 at 06:53From the error message, it looks like you didn’t install the CUDA driver for your graphics card.
QUESTION
I am trying to forecast for future values of a periodic position dependent on time (x ~ time), univariate forecasting using support vector regression. The model fits well on train data but then trails into a straight line when evaluated on test data. In the code below, I used 50 observations for train (the first half of the red periodic curve, where SVR fits perfectly) and 50 observations for test (the second half of the red curve, where SVR fails to predict).
...ANSWER
Answered 2020-Oct-08 at 12:34You can use caretForecast
package. You can use any ML model which supported by caret
including SVM.
to install the package: devtools::install_github("Akai01/caretForecast")
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install time-series-forecasting
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page