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
8
votes
1 answer

replace pattern with a sequential number string in python

I'm trying to achieve the following replacement in python. Replace all html tags with {n} & create a hash of [tag, {n}] Original string -> " This is a string.

This is another part.

" Replaced text -> "{0} This is a string. {1}{2} This…
Ans
  • 105
  • 4
7
votes
4 answers

Keras: "must compile model before using it" despite compile() is used

I want to create and train a CNN model in Keras for classification of banknotes. Creating models works fine with simple tutorials but not with the architecture I adopt from this paper. Keras outputs: RuntimeError('You must compile your model before…
very_interesting
  • 335
  • 1
  • 2
  • 11
7
votes
1 answer

Replicate MLPClassifier() of sklearn in keras

I am new to keras. I was attempting an ML problem. About the data: It has 5 input features, 4 output classes and about 26000 records. I had first attempted it using MLPClassifier() as follows: clf = MLPClassifier(verbose=True, tol=1e-6,…
7
votes
5 answers

returning the max of a list

I am trying to return the max of a list. I have the following code list_max([]) -> []; list_max([H|T]) -> list_max(H, T). list_max(Temp, []) -> Temp; list_max(Temp, [H|T]) when H > Temp -> Temp = H; list_max(Temp, T). But am…
some_id
  • 29,466
  • 62
  • 182
  • 304
6
votes
2 answers

What is the best activation function to use for time series prediction

I am using the Sequential model from Keras, with the DENSE layer type. I wrote a function that recursively calculates predictions, but the predictions are way off. I am wondering what is the best activation function to use for my data. Currently I…
6
votes
1 answer

Multiple inputs to Keras Sequential model

I am trying to merge output from two models and give them as input to the third model using keras sequential model. Model1 : inputs1 = Input(shape=(750,)) x = Dense(500, activation='relu')(inputs1) x = Dense(100, activation='relu')(x) Model1…
Piyush Doke
  • 135
  • 2
  • 11
6
votes
0 answers

Keras - custom loss function / access 75th percentile element of a tensor

I am trying to implement a slightly modified binary crossentropy loss function for a model in Keras. From Keras, binary_crossentropy is defined as: def binary_crossentropy(y_true, y_pred): return K.mean(K.binary_crossentropy(y_true, y_pred),…
atester
  • 61
  • 3
6
votes
4 answers

Comparing between groups in grouped dataframe

I am trying to perform a comparison between items in subsequent groups in a dataframe - I guess this is pretty easy when you know what you are doing... My data set can be represented as follows: set.seed(1) data <- data.frame( date =…
CrustyNoodle
  • 379
  • 1
  • 14
6
votes
4 answers

Android - Asynchronous Network Calls - Response dependent on each other

I just encountered this sort of a situation while developing an Android application today where I was required to render graphs based on responses from 2 different API's. I'm using Volley and what I did is I made a sequential network call i.e I made…
Shubhral
  • 334
  • 3
  • 15
6
votes
3 answers

Switching to sequential (comb) guids - what about existing data?

We have a database with 500+ tables, in which almost all the tables have a clustered PK that is of datatype guid (uniqueidentifier). We are in the process of testing a switch from "normal" "random" guids generated through .NETs Guid.NewGuid()…
Eyvind
  • 5,221
  • 5
  • 40
  • 59
6
votes
2 answers

Sequential (comb) GUIDs for Oracle

We are in the process of switching from the C# Guid.NewGuid() random-ish guid generator to the sequential guid algorithm suggested in this post. While this seems to work well for MS SQL Server, I am unsure about the implications for Oracle…
Eyvind
  • 5,221
  • 5
  • 40
  • 59
6
votes
2 answers

What is the pythonic way to implement sequential try-excepts?

I have to parse some numbers from file names that have no common logic. I want to use the python way of "try and thou shall be forgiven", or try-except structure. Now I have to add more than two cases. What is the correct way of doing this? I am now…
Juha
  • 2,053
  • 23
  • 44
5
votes
5 answers

Plotting data sequentially from emacs using Common Lisp and Gnuplot

Assume that I have some array of data (a vector to be specific). Can I plot it element by element sequentially using Gnuplot such that it seems as if it is a real life signal that is being traced through a monitor? I know that I can write the whole…
jkt
  • 2,538
  • 3
  • 26
  • 28
5
votes
1 answer

Synchronous service calls in Android

I'm working on application whose main responsibility is to contact remote server and display the data provided. Service is Soap based. For that I use ksoap library, but let's cut to the case. I've been "calling service" with the use of asynchronous…
Olek
  • 165
  • 1
  • 3
  • 10
5
votes
1 answer

Sequential Inputs For Neural Networks

What type of neural networks should be used when we have sequential inputs. Let say we want to phrase some text which should give output depend on the sequence of the words. For this the output should dependent on the previous state of the inputs.
Jayantha Lal Sirisena
  • 21,216
  • 11
  • 71
  • 92
1 2
3
61 62