python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Python: Get part of string between appropriate braces and symbols
For if i have the following in a text file:
{
fun cake(){
"im cute"
subfun notcake(){
"dont close the question!"
}
}
fun notcute(){
"Did you just say..."
}
}
i want to g...
Xephonine
Votes: 0
Answers: 1
R: Count the frequency of pairwise matching strings between all rows of a matrix
I have a 5000 x 1000 matrix of characters in R, with each entry being a color (red, blue, yellow, green, etc.). I would like to compute the frequency of matching colors (character strings) in a pairwi...
yold6
Votes: 0
Answers: 1
Apply custom pairwise function in PyTorch
I have two 1D tensors
a = tensor([1, 2])
b = tensor([3, 4, 5])
I want to compute custom operation pairwise matrix, for example
"a + b" - adds every element from a to every element from b
t...
Vojtooo
Votes: 0
Answers: 1