Questions tagged [sequence]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Predict best chess move using RNNs

I am trying to do a project with AI: in which during any certain moment of a chess game i can predict, using a RNN trained on a kaggle dataset, the best possible move that i can make. I am having ...
user3253067's user avatar
0 votes
0 answers
6 views

Are the filtering problem and decoding problem the same thing?

Is there any distinction the filtering problem and the decoding problem? Wikipedia's definition for a filtering problem is: The problem of estimating the states or ideally the posterior distribution ...
Tommaso Bendinelli's user avatar
0 votes
0 answers
36 views

Improving Wake-Word Detection Model Performance: Seeking Advice and Suggestions

I was assigned a task to train a wake-word detection model. Basically, it's a binary sequence classification model on audio samples where it should be 1 if it recognizes the wake word being said (e.g. ...
Ícaro Lorran's user avatar
0 votes
0 answers
17 views

Conditional density estimation for sequences using conditional random fields

I am looking to estimate the conditional distribution of the next observation $x_{t+1} \in \mathbb{R}_+$ of a discrete-time process, given the current observation and $l$ previous observations. I am ...
Jonas's user avatar
  • 1
0 votes
0 answers
27 views

Why use sliding window input features in deep learning?

I was reading through the DNABERT paper and found that their input features were k-mers. This is equivalent to using rolling/sliding window features in the other common family of sequential problem, ...
Avatrin's user avatar
  • 131
0 votes
1 answer
60 views

Why would a sequence-model vs n-gram model depending on ratio of Samples / Words per Sample

This ML tutorial from Google is analyzing the imdb reviews dataset to predict the tag positive or negative. When choosing a model Calculate the number of samples/number of words per sample ratio. If ...
Nate Anderson's user avatar
0 votes
1 answer
43 views

Sequence prediction in Parent - Child dataset

We have a large collection of documents (D), each accompanied by a set of metadata (M). Within this collection, some documents act as parent documents and have multiple child documents. Both parent ...
6nagi9's user avatar
  • 101
0 votes
0 answers
144 views

LSTM multivariate time-series with categorical, numerical and non-temporal inputs

I have a dataset that contains different data types and I'm working on a prediction task of dataset features with LSTM network, but I'm struggling in finding the right way to construct the neural ...
luciadep's user avatar
0 votes
1 answer
224 views

How is PCA applied to (one-hot encoded) DNA sequence data?

I realize some questions have been asked already about one-hot encoding for PCA. The answer seems to be along the lines of 'The PCA will run, but does not necessarily make sense.' However, I have a ...
Chris_abc's user avatar
0 votes
0 answers
21 views

Selecting an element in a sequence with self-attention networks

I have a doubt on I should set up the following problem: Data: My data is a tensor with shape (N, J, F) where N is the batch size, J is the sequence length, and F is the number of features of each ...
Piero Viscone's user avatar
0 votes
0 answers
24 views

Many To One LSTM - Can I Use the Same Sequence as Input from Previous Timesteps?

I'm new to LSTMs, and I'm trying to do a basic timeseries prediction using stock prices. However, I'm a bit confused as to how the LSTM is supposed to remember outputs from previous timesteps when it ...
Krusty the Clown's user avatar
0 votes
1 answer
43 views

Classification of sequential data

I'm currently trying to classify discrete sequential data into five classes with machine learning. The setup is the following: The actual object is filled with various properties, but to separate the ...
bitfish31's user avatar
1 vote
1 answer
177 views

predictions based on irregular repeated measures?

I need to make a model that predicts certain medical outcomes based on the answer to health-related questionnaires. Providers have patients fill out these questionnaires more than once, at irregular ...
Glenn Wright's user avatar
0 votes
1 answer
245 views

Can MLP model sequential data?

When modeling sequential data, RNNs are introduced as an improvement of MLP as they can model the time dependency between the inputs. It is said that feeding the last N data points in the sequence to ...
Lukas Petersson's user avatar
1 vote
1 answer
1k views

Loss on whole sequences in Causal Language Model

I'd like to know, from an implementation point of view, when training a Causal Transformer such as GPT-2, if making prediction on whole sequence at once and computing the loss on the whole sequence is ...
Valentin Macé's user avatar
1 vote
0 answers
19 views

Techniques for early binary classification from sequences revealed over time in a low data environment?

We have data with objects, each of which has a series of events. A series is 1-50 events, revealed over time (a few months). These objects have events come in at different times during a season, so ...
dfrankow's user avatar
  • 123
1 vote
1 answer
607 views

LSTM as learned positional encoding for vor variable sequence length input

I'm solving a classification task on a time-series dataset. I use a Transformer encoder with learned positional encoding in the form of a matrix of shape $\mathbb{R}^{seq \times embedding}$. ...
debrises's user avatar
1 vote
0 answers
46 views

Forecasting on multivariate time series containing quaternions

I have a multivariate time series containing 3D position data ($x,y,z)$ and orientation data (as quaternions) obtained from motion sensors. My goal is to forecast the future position/orientation, and ...
chronosynclastic's user avatar
1 vote
1 answer
14 views

What is the formal category of problem described by identifying consecutive occurrences of attributes in records?

Apologies for the garbled title, I'd really need to know the answer to the question before I could phrase it properly... Let's imagine I've got a data set of football(soccer if you prefer) match ...
Recalcitrant Caprine's user avatar
1 vote
1 answer
49 views

ML Modeling approach for Event data

I have this two dataset(image below).The one on the left shows events and the right is the alarm data. Goal : Using the two datasets, after any number of events, an alarm can be triggered.I'd like to ...
mehmat's user avatar
  • 33
2 votes
0 answers
125 views

1D Sequence Classification

Cross-post from https://stackoverflow.com/questions/71752744/1d-sequence-classification I am working with a long sequence (~60 000 timesteps) classification task with continuous input domain. The ...
Kevin's user avatar
  • 163
1 vote
2 answers
58 views

Given daily sequence of events with only event ID labels (alphanum strings), what algorithms can be used to detect sequences that are outliers?

For example, the data might be something like this: ...
demoman's user avatar
  • 11
1 vote
1 answer
69 views

Predict indices of text using deep learning

I want to predict the start and end indices of text where a certain type of propaganda technique is used like smears, name-calling, loaded language etc. Some examples from the dataset are: ...
Asim's user avatar
  • 111
0 votes
1 answer
746 views

Sequence Embedding using embedding layer: how does the network architecture influence it? [closed]

I want to obtain a dense vector representation of protein sequences so that I can meaningfully represent them in an embedding space. We can consider them as sequences of letters, in particular there ...
HelpNeederStudent's user avatar
1 vote
0 answers
36 views

How to predict data from sequence of sequences of variable size?

input data ...
Emil's user avatar
  • 308
3 votes
3 answers
126 views

Classification when the classification of the previous itens matter

I have a classification problem to solve, that seems to be common but I am struggling to find the name of this task and the best way to model this problem. Suppose I have a series of events that are ...
bratao's user avatar
  • 31
1 vote
0 answers
86 views

How to compare different forecasting models over different time horizon?

Developed multiple Models with AR, ARIMA, VAR; LSTM , SARIMA. Now, the purpose is to find out which model performs best on a given use case with different time horizons. The time series data is ...
Mannheimer_Coder's user avatar
1 vote
0 answers
479 views

How does data shuffling work when LSTM is involved?

TIL that when using the LSTM layer, the states are remembered throughout the same batch. When using stateful LSTM, they can be even remembered outside of the batch. The first realization gave me a ...
JohnnyQ's user avatar
  • 201
1 vote
0 answers
40 views

Text generation with deep neural network?

For my master's project, I have to build a deep learning model for text generation: the model learns on a set of sentences, then it generates new sentences based on those from which it learned. I ...
zakya's user avatar
  • 11
0 votes
1 answer
38 views

Deep Learning Model to predict sum of Sequences based on flag value

I am trying to Predict Sum of the Sequence based on flag but my model is not able to converge. for each time stamp, include the first element in sum if second number is 1 in Sequence. Example ...
Anup Patel's user avatar
1 vote
1 answer
200 views

Handle with very short and very long sequences with Neural Network

I am working on multi-class problem with sequences. My dataset is composed of sequences of data with different length. E.g. 1500 labeled samples: 500 datapoint belongs to class A, 500 class B and 500 ...
scalessio's user avatar
1 vote
1 answer
28 views

Seq to Seq modelling - ML Algorithms to use

Am new to ML. While I learnt the classical ML concepts like Linera regression, Logistic regression, Boosting and tree based techniques, now am slowly trying to learn Deep Learning techniques like CNN, ...
The Great's user avatar
  • 2,565
1 vote
1 answer
43 views

How can I predict the last element of the fixed length=8 sequence after I get each element?

There are fixed length lists [X1, X2, X3, X4, X5, X6, X7, X8] like this. I have many lists like them from the past. In the future, I will get new element of current list on weekly bases. one new ...
Roman Kutubidze's user avatar
1 vote
1 answer
351 views

Advantages of CNN vs. LSTM for sequence data like text or log-files

When do you tend to use CNN rather than LSTM (or the other way round) in classification or generation tasks of sequential data like text or log-data? What are the reasons for the decision and what ...
moooo112's user avatar
1 vote
0 answers
111 views

Create sequence for a Conv1D layer

Im studying the following tutorial on the Keras website and I'm trying to understand how to create a sequence for a Conv1D layer. This is their method: ...
Fabio's user avatar
  • 53
0 votes
0 answers
31 views

Time-Series analysis with small data set, but long sequences

I'm working on a time-series classification problem. There are 3 classes. Dataset consists of 6 sequences from each class (total 18 sequences). Each sequence is 19,000 in length. What are some time-...
siaabd001's user avatar
0 votes
1 answer
22 views

Find differences of two protein sequence files

I have two separate files A and B of more than 100000 records of protein sequences. Now I need to find the sequences that are in ...
Suresh Pokharel's user avatar
0 votes
1 answer
117 views

Random Sequence Predictions

Can machine learning algorithms predict random number generators. key A= 1 2 3 B= 4 5 6 C= 7 8 9 Example to catch a number sequence 4 8 8 I would select B C C That would give me 27 number combinations ...
John's user avatar
  • 9
2 votes
1 answer
338 views

LSTM with return_sequences - "Training a model on multiple timesteps simultaneously"

So I'm following Tensorflow's LSTM/time series tutorial and there's something I don't understand. I do understand what happens with return_sequences on/off, however,...
lte__'s user avatar
  • 1,320
1 vote
2 answers
76 views

Choosing a model for input: categorised, weighted sequence, output: binary variable

What would be an appropriate model for predicting a binary target variable, given a weighted sequence? Sequences will be reasonably short, typically between ~ 1 and 5 elements. Illustrated example Say ...
Ian's user avatar
  • 33
4 votes
2 answers
1k views

In sequence models, is it possible to have training batches with different timesteps each to reduce the required padding per input sequence?

I want to train an LSTM model with variable length inputs. Specifically I want to use as little padding as possible while still using minibatches. As far as I understand each batch requires a fixed ...
Tonnz's user avatar
  • 63
1 vote
1 answer
82 views

What's the difference between sequence preprocessing and text preprocessing in Keras?

In Keras, we mainly have three types of preprocessing, i.e., sequence preprocessing, text preprocessing, and image preprocessing. However, for me, I think the meanings of the word "sequence" ...
Jie's user avatar
  • 187
2 votes
1 answer
407 views

How to train a model on top of a transformer to output a sequence?

I am using huggingface to build a model that is capable of identifying mistakes in a given sentence. Say I have a given sentence and a corresponding label as follows -> ...
MetaInformation's user avatar
1 vote
0 answers
124 views

Machine learning for circular sequences

My data are sequences of real numbers $a_0,a_1,...,a_{n-1}$. The length of a sequence is fixed and equals $n$. Each sequence is mapped to a real number $y$ and I want to predict $y$ given the sequence....
Vladislav Gladkikh's user avatar
3 votes
1 answer
88 views

Recommender Model for Human Action in Income Protection

Problem Domain I'm working on a project that involves building a model to provide recommendations on the next best step for Human supervisors to take on income protection claims. Income protection is ...
Doogyb's user avatar
  • 31
2 votes
1 answer
25 views

How to use time-sequence data with "meta data" of single value per sample?

I'm, trying to estimate a fish weight by a time-sequence signal of the change in resistance when the fish goes through a gate with electrodes installed. When the fish pass through the gate there's a ...
Shay's user avatar
  • 23
1 vote
1 answer
467 views

How to convert DNA sequences in FASTA format to OneHot Encoded Pandas Dataframe for Neural Networks?

DNA sequences in FASTA format look like: CATGCATTAGTTATTAATAGTAATCAATTACGGGGTCATTAGTTCA... I am trying to convert them into one-hot encoded data in a Pandas ...
David293836's user avatar
1 vote
1 answer
96 views

Predict status of upcoming project milestones with intermediate activities

I have data of 100+ project data. Each project has about 175 sequential activities from start to end. There are approximately 7 key milestones between those 175 activities that we want to predict. ...
Techpro Sachin's user avatar
1 vote
0 answers
18 views

What is External representation of time in Sequential learning?

I am reading the literature on sequential learning and it is often mention that in order to handle sequential/temporal data, there two categories of work in sequential learning External ...
A.B's user avatar
  • 316
2 votes
1 answer
250 views

Predicting sequence element based on the previous M and the following N elements

I have an array of sequences of equal length, each sequence contains 300 numbers (M=300). Each element in a sequence is a number from 1 to 9: ...
stv's user avatar
  • 85