Skip to main content
Advice
1 vote
0 replies
51 views

How to decide I am trying to understand how to properly use repartition and coalesce in Apache Spark, especially for performance optimization. From my understanding: repartition can increase or ...
Test User123's user avatar
Advice
0 votes
1 replies
38 views

I have an excel spreadsheet of results for the analysis of beams in a building. For each beam I have 6 different loads for 6 different situations. These loads are not linearly related, sometime a beam ...
dmaynard's user avatar
Advice
0 votes
1 replies
50 views

I am implementing Domain-Driven Design (DDD) and facing a problem: balancing database performance with clean domain modeling. I want to stop loading child entities that I don't need when getting an ...
Quốc Dũng's user avatar
1 vote
0 answers
114 views

Problem Statement: We are running a Java/Spring GET/POST getAll pagination API on top of MySQL in AWS RDS and need help optimizing exact filtered counts Current state: The main dataset is courses with ...
Rishabh Sharma's user avatar
Best practices
0 votes
4 replies
46 views

I have a PostgreSQL table foo partitioned by date (monthly partitions). The table currently contains ~13 million rows and continues to grow. This query runs any time someones opens the dashboard of ...
jrlevi's user avatar
  • 31
2 votes
1 answer
59 views

I tried making a logistic regression model using nn.Module class LogisticRegressionModel(nn.Module): def __init__(self, input_dim= None) -> None: super().__init__() if input_dim ...
Bakr MARHFOUL's user avatar
Advice
1 vote
8 replies
115 views

For robust ray–triangle intersection, it turns out that the following must be exactly true in floating-point math: a*b - c*d = -(d*c - b*a) There is no problem if this is computed as two ...
geometrian's user avatar
  • 15.6k
1 vote
2 answers
112 views

I need a function that behave like np.random.choice, but that takes the argument "p" to be a 2-dimension array, of which each row is a probability. The function should return a sample from ...
Liathan's user avatar
  • 13
1 vote
1 answer
37 views

I’m trying to maximize the profit of a battery that can charge r_i or discharge q_i, with wholesale electricity prices P_elec,i, within a n=24 hour period. (eta is just the efficiency of the battery, ...
Guilherme Larangeira's user avatar
4 votes
0 answers
59 views

Hi all — I’m debugging an unexpected ordering/progress issue with peer-to-peer device copies and I’d like help understanding what CUDA/driver/runtime behavior could explain it. Setup Single node, 2 ...
Abhishek Ghosh's user avatar
Best practices
1 vote
1 replies
68 views

It's a fairly common bit of knowledge that you want to cache the current camera instead of using Camera.main because it does a Find function every time under the hood, which is expensive (this might ...
Sean Duggan's user avatar
  • 1,153
7 votes
1 answer
217 views

There is a trig related function missing from math.h, namely x-sin(x). I am trying to implement it accurate to full double precision for |x| <= pi. Minimum ripple polynomial or rational ...
Martin Brown's user avatar
  • 3,865
1 vote
1 answer
222 views

I was fiddling with the Brainfuck esolang over the past few days, and tried to implement an increment operation on an N-byte-wide integer in big-endian format. Note that I am imposing a structural ...
so8714's user avatar
  • 19
4 votes
1 answer
120 views

I'm trying to perform logistic regression on samples randomly subsampled from a huge dataset for binary classification. I implemented logistic regression using iterative reweighted least squares (IRLS)...
Elkan's user avatar
  • 648
1 vote
1 answer
86 views

I am working on some simulation code in Fortran. Part of that are potential cells that induce velocity. Here is the definition for the cell type: type CELL doubleprecision :: xmin,ymin,...
byl's user avatar
  • 107

15 30 50 per page
1
2 3 4 5
2662