Skip to main content
0 votes
0 answers
82 views

I'm trying to perform a Gaussian Process Regression on series of data points Y and ln(X+(10^-4)) (The X values are used in log scale to create the model) X ln(X+(10^-4)) Y 0.00001 -9.11503019 ...
Josep's user avatar
  • 1
2 votes
1 answer
28 views

I have downloaded the HEALPix5 DECaPS 3D dust extinction map (from arXiv:2503.02657) and imported it as a numpy array meanmap. The array gives an expected result (51415400, 1, 120) to the meanmap....
Peter Barnes's user avatar
2 votes
1 answer
84 views

originally I was trying to install opencv-python which fails on trying to install numpy:2.2.6 So I am trying to just install this numpy and for some obscure reason it tries to build it! instead of ...
62mkv's user avatar
  • 1,584
3 votes
3 answers
107 views

I have a black box function baseball that determines the magnitude of the distance that a baseball travels when launched. It takes the initial speed, the angle of launch and the initial spin. Assuming ...
panji's user avatar
  • 47
1 vote
1 answer
83 views

I need to compute the Hessian of a function involving cross products in Python. As an experiment, I consider the simple function def func(x): return np.sum(np.cross(x[0:3], x[3:6])) and compute the ...
CW279's user avatar
  • 153
1 vote
0 answers
65 views

I’m computing peristimulus time histograms (PSTHs) in Python. Each trial aligns spikes to a reach-start timestamp and bins them into fixed-width bins. I see vertical “gaps” (low counts) at exact bin ...
May Ren's user avatar
  • 11
0 votes
1 answer
46 views

I have a set of 3D ROI label stacks stored as TIFF files, where each ROI represents a single cell. I want to generate surface meshes(I use trimesh) suitable for downstream shape analysis. I tried ...
Roua Rouatbi's user avatar
-4 votes
0 answers
54 views

I am trying to install and import numpy on my Mac but in the terminal of Pycharm, it comes up with a error message as shown below. I am a relatively new coder in python so I am extremely confused. ...
confused and tired's user avatar
0 votes
0 answers
83 views

I am trying to simulate a deck of cards that can be shuffled, create a hand of 15, then check the hand to see if there is three of a kind within it. I've added the code I have so far used to create ...
Josie's user avatar
  • 9
Best practices
1 vote
1 replies
89 views

I am implementing cosine similarity to my vector database using python and numpy. I would like to know if I should loop through every database entry and find the cosine similarity or is there a way of ...
user20617578's user avatar
0 votes
1 answer
43 views

I was trying to do something for a project where I create two random 3D vectors, project them onto a 2D plane by removing their x-component, taking the dot product between the two to find their ...
Mr. L's user avatar
  • 1
Advice
0 votes
4 replies
61 views

Evening, Is there any way to find a specific sequence of numerical values, matching certain logic (in the same way as in a regex), within a numpy/torch array or matrix row? I know i could just convert ...
Ghost's user avatar
  • 1,594
3 votes
1 answer
80 views

I am trying to have a Pen Tool in my pyqt6 application. I am trying to make it how Inkscape's PenTool works. For now, I am trying to achieve the 'B-Spline' mode. The issue is that my curve does not ...
Tom's user avatar
  • 75
3 votes
2 answers
132 views

Having this kind of pandas dataframe df = pd.DataFrame({ 'ts_diff':[0, 0, 738, 20, 29, 61, 42, 18, 62, 41, 42, 0, 0, 729, 43, 59, 42, 61, 44, 36, 61, 61, 42, 18, 62, 41, 42, 0, 0] }) ts_diff - is ...
ihtus's user avatar
  • 2,863
Advice
2 votes
1 replies
71 views

De Casteljau's algorithm is used to interpolate a Bézier curve and consists a recursive (or iterative) procedure to reduce the number of linear segments until only one is left and the interpolation ...
mins's user avatar
  • 7,766

15 30 50 per page
1
2 3 4 5
7686