Questions tagged [pooling]

a container holds ready objects for clients, to reduce initialization time of expensive buffers or resources.

Commonly refers to network or database connection pools, or byte buffer pools.

239 questions
0
votes
2 answers

Can I use final pooling layer to find best common features after concatenating deep features vector and handcrafted fetures vector?

I have two features vector. One is deep features vector extracted by CNN and another is handcrafted features extracted by uniform local binary pattern. I want to find common best features after concatenating these two features vector. I want to use…
imtinan
  • 15
  • 5
0
votes
0 answers

How to create a polling in a node.js express server

I want to create a polling system on my node.js server. I want him to send a request at regular intervals. As long as the answer is positive the call interval does not change. If the answer is no, I want to reduce or lengthen this interval. There is…
Julien S
  • 23
  • 5
0
votes
1 answer

Hikari pool connection timeout issue for Java Vertx application

We are using an application on Java Vertx. We are using HikariCP for connection pooling with JDBC for Oracle database. This application works fine with certain number of TPS. But it started giving error if the concurrent load on application is…
arupc
  • 356
  • 1
  • 3
  • 12
0
votes
0 answers

How to handle database connection pooling in django with postgresql

I have a django application every api hit in django creating one db connection to handle that request and basically this is an overhead as this is creating several connections if there are multiple requests to handle so I want to have db connection…
0
votes
1 answer

ArrayPool create method giving error in C#

Basically, i want to read data from source file to target file in azure data lake parallelly using ConcurrentAppend API. Also, i dont want to read the data from files all at once but in chunks , i am using buffers for that. i want to create 5…
kchahat20
  • 97
  • 1
  • 11
0
votes
1 answer

Understanding the effect on resolution by using average pooling in convolution neural network

I am using a colorization code on CIFAR-10 dataset and I came across this line: downsize_module = nn.Sequential(nn.AvgPool2d(2), nn.AvgPool2d(2), nn.Upsample(scale_factor=2), .Upsample(scale_factor=2)) Average Pooling is used two times, so what is…
MAC
  • 1,345
  • 2
  • 30
  • 60
0
votes
1 answer

How to use Oracle Connection pooling using PHP?

I am using PHP with Oracle Database 12c and i want to implement connection pooling for improve my application performance Can you help me please ?
0
votes
0 answers

Fama MacBeth vs. Pooled OLS

I have an unbalanced panel of monthly bond returns and would like to regress them on several possible return-drivers. There is cross-sectional correlation in the residuals. In this case, Peterson shows that there are two ways to estimate the model…
Timo
  • 3
  • 2
0
votes
1 answer

how to do avg pool on the output of bert model for each sentence?

for classification, we usually use [CLS] to predict labels. but now i have another request to do avg-pooling on the output of each sentence in bert model. it seems a little bit hard for me? sentence is split by [SEP] but lengh of each sentence in…
0
votes
1 answer

Average pooling with window over variable length sequences

I have a tensor in of shape (batch_size, features, steps) and want to get an output tensor out of the same shape by average pooling over the time dimension (steps) with a window size of 2k+1, that is: out[b,f,t] = 1/(2k+1) sum_{t'=t-k,...,t+k}…
Frithjof
  • 2,214
  • 1
  • 17
  • 38
0
votes
1 answer

R -plm - error within and random effects models (pooling, between & first differences work)

I have problem with Within and random effect method (it doesn't work). And I have no problem with pooling, between or first diffeences estimator -> it works. I have the same problem like R - Error in class(x) - plm - only within and random effects…
Sylwia
  • 3
  • 1
0
votes
0 answers

How can I speed these API queries up?

I am feeding a long list of inputs in a function that calls an API to retrieve data. My list is around 40.000 unique inputs. Currently, the function returns output every 1-2 seconds or so. Quick maths tells me that it would take over 10+ hrs before…
Leon
  • 37
  • 1
  • 7
0
votes
1 answer

How to perform Gaussian pooling on a 2d array using numpy

Given a 2D(M x N) matrix, and a 2D Gaussian Mask(K x K), how do i return a matrix that is the result of Gaussian pooling using the given kernel over the image? I'd like to use numpy if possible(Not Using "for", only use numpy) eg of 2x2 Gaussian…
배성현
  • 3
  • 2
0
votes
3 answers

Object pooling alternatives in Java

I know what is Object Pooling in Java I was keen to know if there are any better alternatives which can be used in an distributed environment, or specifically with server sockets and database connection sockets. Any information or leads would be…
topgun_ivard
  • 8,376
  • 10
  • 38
  • 45
0
votes
0 answers

Using Connector/NET with Connection Pooling

I am looking at using the pooling in MySQL Connector/Net in VB.net and they said that: Do not create a globally accessible instance of MySqlConnection and then >manually open and close it. This interferes with the way the pooling works >and can…
Sleiman
  • 61
  • 1
  • 6