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
12
votes
2 answers

on colab - class_weight is causing a ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

i'm running a CNN with keras sequential on google colab. i'm getting the following error: ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() when i remove the class_weight argument from the…
ether212
  • 135
  • 1
  • 6
12
votes
6 answers

How to wait for one jquery animation to finish before the next one begins?

I have the following jQuery: $("#div1").animate({ width: '160' }, 200).animate({ width: 'toggle' }, 300 ); $("#div2").animate({ width: 'toggle' }, 300).animate({ width: '150' }, 200); My issue is that both happen at the same time. I would like the…
Abe Miessler
  • 82,532
  • 99
  • 305
  • 486
12
votes
5 answers

Sequential Guid in Java

Considering the post I've made about the sequential guid performance on Microsoft.NET framework (see What are the performance improvement of Sequential Guid over standard Guid?) does somebody have a proper, sure, fast and well working Java…
massimogentilini
  • 4,102
  • 5
  • 29
  • 32
11
votes
3 answers

Sequentially execute observables and emit one result

I have an array of observables which I'm executing in parallel using: let observables: Observable[] Observable.forkJoin(observables) This works perfectly, however, I need to execute the array of observables sequentially, and only emit one…
Tom van Brienen
  • 113
  • 1
  • 7
11
votes
2 answers

jQuery Deferred with an array of functions

I have an object full of functions like so: var functions = { fun1 : function(){ ... } fun2 : function(){ ... } fun3 : function(){ ... } }; The object keys are all referenced inside an array like so: var funList =…
ValZho
  • 351
  • 2
  • 11
10
votes
3 answers

Keras' Sequential vs Functional API for Multi-Task Learning Neural Network

I would like to design a neural network for a multi-task deep learning task. Within the Keras API we can either use the "Sequential" or "Functional" approach to build such a neural network. Underneath I provide the code I used to build a network…
10
votes
3 answers

Regex using increasing sequence of numbers Python

Say I have a string: teststring = "1.3 Hello how are you 1.4 I am fine, thanks 1.2 Hi There 1.5 Great!" That I would like as: testlist = ["1.3 Hello how are you", "1.4 I am fine, thanks 1.2 Hi There", "1.5 Great!"] Basically, splitting only on…
sfortney
  • 2,075
  • 6
  • 23
  • 43
10
votes
2 answers

Simple way to do mapping of group of sequential list elements

Normal mapping applies a function to a list element and produces an element of the resultant list. E.g., if list is (1, 2, 3,) and maps the square function, you get a new list (1, 4, 9,). Is there a way to map a group of sequential elements of a…
lisprogtor
  • 5,677
  • 11
  • 17
10
votes
5 answers

sequencing function calls in javascript - are callbacks the only way?

I read through various threads like this one for example. But it really escapes me how to accomplish the following: I have 4 functions, and want them happen one after another in sequence. Notice they are in incorrect order, to get my point across. I…
tim
  • 3,823
  • 5
  • 34
  • 39
9
votes
4 answers

'Sequential' object has no attribute '_in_multi_worker_mode'

I tried to use google colab resources to save my CNN model weights and I get this error. I tried googling it but nothing helps. 'Sequential' object has no attribute '_in_multi_worker_mode' My code: checkpoint_path =…
Adem Kakhadze
  • 111
  • 1
  • 2
9
votes
1 answer

c# Parallel vs Sequential

I got a large list to loop through (1.500.000 items), with each item I have to do a very small check. Totally during 30 seconds. The CPU utilization when using Sequential is around 10%, so there's a lot of resources not used. The first thought was…
user2331234
  • 149
  • 1
  • 1
  • 9
8
votes
1 answer

How to read hadoop sequential file?

I have a sequential file which is the output of hadoop map-reduce job. In this file data is written in key value pairs ,and value itself is a map. I want to read the value as a MAP object so that i can process it further. Configuration config =…
samarth
  • 3,866
  • 7
  • 45
  • 60
8
votes
4 answers

Ruby, run linux commands one by one, by SSH and LOG everything

I want to write code in Ruby witch net::ssh that run commands one by one on remote linux machine and log everything (called command, stdout and stderr on linux machine). So I write function: def rs(ssh,cmds) cmds.each do |cmd| log.debug…
Kamil Kiełczewski
  • 85,173
  • 29
  • 368
  • 345
8
votes
3 answers

ASP.NET MVC 4: Only allow one request at a time

In my ASP.NET MVC Application, I want to handle all requests sequentially; no action/controller code should be executed concurrently with another. If two requests come in at similar times, it should run the first one first, then the second one when…
8
votes
1 answer

animating elements sequentially in pure css3 on loop

I'm trying to animate in elements sequentially in full css3 animations. Seems the very straight forward answer is using animation delay. However I wanted this in loop, any ideas how to make the animation loop infinitely? I found this fiddle on a…
chriz
  • 1,826
  • 2
  • 24
  • 28
1
2
3
61 62