LSTM-FCN | Codebase for the paper LSTM Fully Convolutional Networks for Time Series Classification | Machine Learning library
kandi X-RAY | LSTM-FCN Summary
kandi X-RAY | LSTM-FCN Summary
LSTM FCN models, from the paper LSTM Fully Convolutional Networks for Time Series Classification, augment the fast classification performance of Temporal Convolutional layers with the precise classification of Long Short Term Memory Recurrent Neural Networks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Plot a dataset
- Load a dataset at given index
- Prompt the user for a cutoff choice
- Calculate the max number of words in dataset
- Visualize the context vector
- Cut sequence length
- Build the evaluation function
- Get outputs from inputs
- Visualize filters
- Writes the context vector to a context vector
- Visualize the model
- Train a model
- Calculate the attention function
- Multiply a time distributed matrix
- Extract features from given dataset
- Performs one step of time - distributed attention
- Write a pre - trained model
- Evaluate a model
- Compile a loss model on a dataset
- Preprocess input tensors
- Call the attention layer
- Generate the recurrent dropout mask
- Generate dropout mask
LSTM-FCN Key Features
LSTM-FCN Examples and Code Snippets
Community Discussions
Trending Discussions on LSTM-FCN
QUESTION
I am trying to understand how to correctly feed data into my keras model to classify multivariate time series data into three classes using a LSTM neural network.
I looked at different resources already - mainly these three excellent blog posts by Jason Brownlee post1, post2, post3), other SO questions and different papers, but none of the information given there exactly fits my problem case, and I was not able to figure out if my data preprocessing / feeding it into the model is correct, so I guessed I might get some help if I specify my exact conditions here.
What I am trying to do is classify multivariate time series data, which in its original form is structured as follows:
I have 200 samples
One sample is one csv file.
A sample can have 1 to 50 features (i.e. the csv file has 1 to 50 columns).
Each feature has its value "tracked" over a fixed amount of time steps, let's say 100 (i.e. each csv file has exactly 100 rows).
Each csv file has one of three classes ("good", "too small", "too big")
So what my current status looks like is the following:
I have a numpy array "samples" with the following structure:
...ANSWER
Answered 2018-Sep-28 at 02:41I believe the input shape for Keras should be:
input_shape=(number_of_samples, nb_time_steps, max_nb_features).
And most often nb_time_steps = 1
P.S.: I tried solving a very similar problem for an internship position (but my results turned out to be wrong). You may take a look here: https://github.com/AbbasHub/Deep_Learning_LSTM/blob/master/2018-09-22_Multivariate_LSTM.ipynb (see if you can spot my mistake!)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LSTM-FCN
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