Category "sequence"

convert month of dates into sequence

i want to combine months from years into sequence, for example, i have dataframe like this: stuff_id date 1 2015-02-03 2 2015-03-03 3

Auto-increment in Oracle table when insert in the same table

I have a table and I want to increment a column by 1 when I insert a row into the same table. Table users - when I insert first row value of idusers is 1, and i

Get value from sequence Freemarker

I've got a call that gives a result in the body that looks like this: body=[{"id":"be6ea215-1a69-44bb-8269-4f80867c69d7","name":"BlaBla1","externalLinks":[]},{"

TextView and data structures with practically unlimited capacity?

I need a TextView-like widget that is able to show file contents of arbitrary size. Android default TextView can hold and display 2^31 characters, which is just

How to solve a math sequence in R?

EDIT: I could not come up with a more precise question title but please let me know what better title I could use, thanks! I have a "basic" math problem that I

Gap-free object sequence as a parameter using Oracle PL/SQL function

Good day, everyone! I've got a bunch of sequences. For example: CREATE SEQUENCE seq_id INCREMENT BY 1 START WITH 1 MINVALUE 1 MAXVALUE 20000

Oracle sequence EF Core 6.0?

I need to get a NEXTVAL from a SEQUENCE in an Oracle database. The modelbuilder does have a builder.HasSequence("TABLE_SEQ"); But I have no clue on how to use

replace the header line of several sequences in a fasta file and replace them with the species names stored in a list (.txt)

I have a fasta file with several sequences, but the first line of all the sequences start with the same string (ABI) and I want to change and replace it with th

CSS, .jpg sequence - improve preload/hide last frames

First of all, i am absolute greenhorn when it comes to coding.. I have a scroll animation with a .jpg sequence with this css: <canvas id="Neue-Lippen-Kop

Splitting a Rust string into a Vec of its substrings with contiguous identical characters

I have a string or a &str of ASCII characters and I want to separate it into a Vec of all substrings with contiguous identical characters (for example, "aab

ValueError: setting an array element with a sequence while using MLPCLassifier on classifier.fit

I have this dataset (shape is (36,2)). x is a numerical pattern, y is a binary class (0,1) x y [0.2, 0.3, 0.5 ..... 0.5] 0 [0.1, 0.4, 0.5 ..... 0.9] 1 and so

problem with postgresql sequence and hibernate

I often read this site, but this is the first time I write, hope I won't make mistakes and apologize for my bad english. I get to the point: I have to develop c

ValueError: Input 0 of layer "lstm" is incompatible with the layer: expected ndim=3, found ndim=2. Full shape received: (None, 1024)

I was following Transfer learning with YAMNet for environmental sound classification tutorial. Here is the link: https://www.tensorflow.org/tutorials/audio/tran

In Python, how do I find duplicates in a sequence and collect them in a list? [duplicate]

I was not allowed to answer How do I find the duplicates in a list and create another list with them? but I think my solution is worth it. So,

In Python, how do I find duplicates in a sequence and collect them in a list? [duplicate]

I was not allowed to answer How do I find the duplicates in a list and create another list with them? but I think my solution is worth it. So,

How to use a temp sequence within a Postgresql function

I have some lines of SQL which will take a set of IDs from the same GROUP_ID that are not contiguous (ex. if some rows got deleted) and will make them contiguou

Create a vector using rep() and seq()

How to create a vector sequence of: 2 3 4 5 6 7 8 3 4 5 6 7 8 4 5 6 7 8 5 6 7 8 6 7 8 7 8 I tried to use: 2:8+rep(0:6,each=6) but the result is: 2 3 4 5

cSpade mining frequent sequences

I'm new to cSpade. Trying to figure out how to mine frequent sequences but got a summary that seems to say the codes are not correct. Here's the codes I used: t

Why can't you RSeq an RSeq?

user=> (rseq [:a :b]) (:b :a) user=> (rseq (rseq [:a :b])) ClassCastException clojure.lang.APersistentVector$RSeq cannot be cast to clojure.lang.Reversi

postgresql sequence getting max_value

How to get max_value and min_value Postgres sequence? I created the sequence using this statement create sequence seqtest increment 1 minvalue 0 maxvalue 20;