Skip to main content
0 votes
1 answer
46 views

How to make VSCode "go to definition" work for scipy? It works for all other packages but this one. I have this: import scipy as sp If I right-click on scipy or sp and choose "Go to ...
Ahmad Zaklouta's user avatar
0 votes
0 answers
61 views

I have a set of binarized images containing forms, each image follows one of N layouts. There are a few outliers which do not follow a layout and contain random text and images. The distance between ...
sebastian's user avatar
  • 1,808
1 vote
2 answers
75 views

I am trying to understand if its possible to reconstruct full jacobian or atleast one element of the jacobian from the infodict of scipy.fsolve To make the request concrete, Lets say im trying to ...
XYZ's user avatar
  • 449
1 vote
0 answers
30 views

I’m building a Python 3.12.10 application with PyInstaller on Ubuntu 22.04. The same project and PyInstaller spec work when I build on Ubuntu 24.04, but on 22.04 the executable fails at runtime with ...
Kuldeep 's user avatar
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
91 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
4 votes
1 answer
64 views

I am facing some strange timings with the RegularGridInterpolator from scipy. Splitting the interpolation into 100 chunks and concatenating the final result seems to be faster for large arrays: When ...
Mads M Pedersen's user avatar
3 votes
1 answer
85 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
1 vote
1 answer
71 views

I'm trying to implement a custom negative binomial loss function for my LGBM model. Here is my code: def negative_binomial_objective(y_true, y_pred): p = 0.5 def loss(x, t): loss = ( ...
mdrishan's user avatar
  • 533
0 votes
1 answer
57 views

I have this code: import matplotlib.pyplot as plt from scipy.signal import find_peaks, peak_prominences # I have my array x peaks, _ = find_peaks(x) prominences, left_bases, right_bases = ...
J Agustin Barrachina's user avatar
0 votes
0 answers
81 views

I am attempting to perform a nonlinear curve fit to some experimental data obtained from an oscilloscope. The time signal is a sinusoidal voltage over time and I want to evaluate the phase of the ...
Yolan Ankaine's user avatar
1 vote
1 answer
77 views

I'm trying to understand why the Generalized Pareto distribution shows different results for the same parameters. The results from SciPy make sense, while the results from TensorFlow Probability do ...
PPR's user avatar
  • 447
2 votes
0 answers
89 views

I'm potentially interested in performing ODR for some laboratory data, so I have started to play around with scipy.odr using fake data, just for the sake of learning. In this fake data example, ...
nukamoi's user avatar
  • 21
3 votes
1 answer
109 views

I am having some troubles finding a simple solution to what seems to be a simple problem. I want to compute the integration a simple function. And I want to modify this function if it reaches a ...
Sparsetacus's user avatar
2 votes
1 answer
117 views

I'm trying to develop a mixture of genextreme distributions in Scipy using the following code. from scipy.stats import genextreme from scipy.stats import Mixture eva_1 = {'c': -0.48, 'loc': 38.82, '...
PPR's user avatar
  • 447

15 30 50 per page
1
2 3 4 5
1459