Questions tagged [sequential]

1) Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing; 2) Implementation questions about sequential neural networks.

Overview

  • Any of various questions about a succession of elements arranged in a series, usually with numeric identifiers or numeric indexing.

  • Implementation questions about sequential neural networks.

930 questions
414
votes
36 answers

Resolve promises one after another (i.e. in sequence)?

Consider the following code that reads an array of files in a serial/sequential manner. readFiles returns a promise, which is resolved only once all files have been read in sequence. var readFile = function(file) { ... // Returns a…
XåpplI'-I0llwlg'I -
  • 21,649
  • 28
  • 102
  • 151
102
votes
9 answers

Notepad++ incrementally replace

Lets say I want to have a 10 rows of data but I want a value to increment for each row or piece of data. How do I increment that value? For example....If I have these rows, is there a regex way of replacing the id values to increment?
Travyguy9
  • 4,774
  • 8
  • 43
  • 63
80
votes
11 answers

How to generate a number sequence in file using vi or Vim?

Is there a way to generate a number sequence in vi or Vim? For example, for an arbitrary range of lines i  through j (where i < j) in a file opened in Vim, is there a way to generate a number sequence from number 1 on line i all the way through…
Sangeeth Saravanaraj
  • 16,027
  • 21
  • 69
  • 98
80
votes
10 answers

Using Moq to verify calls are made in the correct order

I need to test the following method: CreateOutput(IWriter writer) { writer.Write(type); writer.Write(id); writer.Write(sender); // many more Write()s... } I've created a Moq'd IWriter and I want to ensure that the Write() methods…
g t
  • 7,287
  • 7
  • 50
  • 85
64
votes
9 answers

How do I call a function twice or more times consecutively?

Is there a short way to call a function twice or more consecutively in Python? For example: do() do() do() maybe like: 3*do()
alwbtc
  • 28,057
  • 62
  • 134
  • 188
38
votes
1 answer

many parallel applications of a sequential transform in repa

In Repa, I would like to apply a certain d-dimensional linear transform in parallel across the innermost dimension of my array, i.e., on all "column" vectors. In general, such a transformation can be expressed as a matrix M, and each entry of M*v is…
Chris Peikert
  • 563
  • 4
  • 8
29
votes
4 answers

How do I write a PyTorch sequential model?

How do I write a sequential model in PyTorch, just like what we can do with Keras? I tried: import torch import torch.nn as nn net = nn.Sequential() net.add(nn.Linear(3, 4)) net.add(nn.Sigmoid()) net.add(nn.Linear(4,…
Eka
  • 14,170
  • 38
  • 128
  • 212
29
votes
12 answers

How to make all AJAX calls sequential?

I use jQuery. And I don't want parallel AJAX calls on my application, each call must wait the previous before starting. How to implement it? There is any helper? UPDATE If there is any synchronous version of the XMLHttpRequest or jQuery.post I would…
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
27
votes
3 answers

Difference between Closed and open Sequential Pattern Mining Algorithms

I want to use some algorithms to mine my log data. I found a pattern mining framework on: http://www.philippe-fournier-viger.com/spmf/index.php?link=algorithms.php I have tried several algorithms, the BIDE+ algorithm performs the best. The BIDE+…
leon
  • 10,085
  • 19
  • 60
  • 77
24
votes
2 answers

What are the differences between sequential consistency and quiescent consistency?

Can anyone explain me the definitions and differences between sequential consistency and quiescent consistency? In the most dumb form possible :| I did read this: Example of execution which is sequentially consistent but not quiescently…
user4089193
18
votes
2 answers

Sequentially number rows by keyed group in SQL?

Is there a way in SQL to sequentially add a row number by key group? Assume a table with arbitrary (CODE,NAME) tuples. Example table: CODE NAME ---- ---- A Apple A Angel A Arizona B Bravo C Charlie C Cat D Dog D …
Jé Queue
  • 10,359
  • 13
  • 53
  • 61
17
votes
1 answer

pytorch skip connection in a sequential model

I am trying to wrap my head around skip connections in a sequential model. With the functional API I would be doing something as easy as (quick example, maybe not be 100% syntactically correct but should get the idea): x1 = self.conv1(inp) x =…
powder
  • 1,163
  • 2
  • 16
  • 32
17
votes
7 answers

How do I sequentially chain promises with angularjs $q?

In the promise library Q, you can do the following to sequentially chain promises: var items = ['one', 'two', 'three']; var chain = Q(); items.forEach(function (el) { chain = chain.then(foo(el)); }); return chain; however, the following doesn't…
redgeoff
  • 3,163
  • 1
  • 25
  • 39
15
votes
1 answer

Sequential Consistency in Distributed Systems

I am learning Sequential Consistency in Distributed Systems but just could not understand the terms explained. I would appreciate if someone can shed some light in layman's term on why (a) and (c) below are sequentially consistent and (b) is…
user23
  • 415
  • 1
  • 8
  • 22
15
votes
3 answers

Run batch files sequentially

I want to ask you all how to run batch files sequentially in Windows. I have tried : start /w batchfile_1.bat start /w batchfile_2.bat .. start /w batchfile_n.bat but I have to close the previous .bat file process manually (e.g. by clicking)…
user1634603
  • 151
  • 1
  • 1
  • 3
1
2 3
61 62