Top "Scipy" questions

SciPy is an open source library of algorithms and mathematical tools for the Python programming language.

How to normalize a NumPy array to within a certain range?

After doing some processing on an audio or image array, it needs to be normalized within a range before it …

python arrays numpy scipy convenience-methods
dropping infinite values from dataframes in pandas?

what is the quickest/simplest way to drop nan and inf/-inf values from a pandas DataFrame without resetting mode.…

python numpy scipy pandas
How to smooth a curve in the right way?

Lets assume we have a dataset which might be given approximately by import numpy as np x = np.linspace(0,2*np.…

python numpy scipy signal-processing smoothing
Is there a library function for Root mean square error (RMSE) in python?

I know I could implement a root mean squared error function like this: def rmse(predictions, targets): return np.sqrt(((…

python scikit-learn scipy
How to do exponential and logarithmic curve fitting in Python? I found only polynomial fitting

I have a set of data and I want to compare which line describes it best (polynomials of different orders, …

python numpy scipy curve-fitting linear-regression
How to add a new row to an empty numpy array

Using standard Python arrays, I can do the following: arr = [] arr.append([1,2,3]) arr.append([4,5,6]) # arr is now [[1,2,3],[4,5,6]] However, I cannot …

python numpy scipy
A tool to convert MATLAB code to Python

I have a bunch of MATLAB code from my MS thesis which I now want to convert to Python (using …

python matlab numpy matplotlib scipy
ImportError in importing from sklearn: cannot import name check_build

I am getting the following error while trying to import from sklearn: >>> from sklearn import svm Traceback (…

python numpy scipy scikit-learn
Installing SciPy and NumPy using pip

I'm trying to create required libraries in a package I'm distributing. It requires both the SciPy and NumPy libraries. While …

python numpy scipy pip apt
Can't install Scipy through pip

When installing scipy through pip with : pip install scipy Pip fails to build scipy and throws the following error: Cleaning …

python scipy