
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Gaurav Kumar has Published 49 Articles

Gaurav Kumar
291 Views
The linear function named scipy.linalg.solveh_banded is used to solve the banded matrix equation. In the below given example we will be solving the circulant system Cx = b −Examplefrom scipy.linalg import solve_circulant, solve, circulant, lstsq import numpy as np c = np.array([2, 2, 4]) b = np.array([1, 2, 3]) solve_circulant(c, ... Read More

Gaurav Kumar
181 Views
The linear function named scipy.linalg.solve_circulant is used to solve the circulant matrix equation. The form of this function is as follows −scipy.linalg.solve_circulant(c, b, singular=’raise’, tol=None, caxis=-1, baxis=0, outaxis=0)This linear function will solve the equation Cx = b for x where C is a Circulant matrix associated with the vector c.The ... Read More

Gaurav Kumar
129 Views
The linear function named scipy.linalg.solveh_banded is used to solve Hermitian positive-definite banded matrix equations. The form of this function is as follows −scipy.linalg.solveh_banded(ab, b, overwrite_ab=False, overwrite_b=False, lower=False, check_finite=True)This linear function will solve the equation ax = b for x where a is Hermitian positivedefinite banded matrix.The banded matrix a is ... Read More

Gaurav Kumar
343 Views
Below python script will compare the ‘cubic’ and ‘linear’ interpolation on same data using SciPy library −ExampleFirst let’s generate some data to implement interpolation on that −import numpy as np from scipy.interpolate import interp1d import matplotlib.pyplot as plt A = np.linspace(0, 10, num=11, endpoint=True) B = np.cos(-A**2/9.0) print (A, B)OutputThe ... Read More

Gaurav Kumar
217 Views
To implement ‘cubic’ 1-D interpolation using SciPy, we need to specify the kind of interpolation as ‘cubic’ in the ‘kind’ parameter of scipy.interpolate.interp1d class. Let’s see the example below to understand it−ExampleFirst let’s generate some data to implement interpolation on that −import numpy as np from scipy.interpolate import interp1d import ... Read More

Gaurav Kumar
229 Views
Interpolation is a method of generating a value between two given points on a line or a curve. In machine learning, interpolation is used to substitute the missing values in a dataset. This method of filling the missing values is called imputation. Another important use of interpolation is to smooth ... Read More

Gaurav Kumar
464 Views
The determinant of a matrix, denoted by |A|, is a scalar value that can be calculated from a square matrix. With the help of the determinant of a matrix, we can find the inverse of a matrix and other things that are useful in the systems of linear equations, calculus, ... Read More

Gaurav Kumar
697 Views
SciPy has a function called scipy.linalg.solve() to solve linear equations. All we need to know is how we can represent our linear equation in terms of vectors. It will solve the linear equation set a * x = b for the unknown x. Let’s understand it with the help of ... Read More

Gaurav Kumar
956 Views
Hamming distance calculates the distance between two binary vectors. Mostly we find the binary strings when we use one-hot encoding on categorical columns of data. In one-hot encoding the integer variable is removed and a new binary variable will be added for each unique integer value. For example, if a ... Read More

Gaurav Kumar
254 Views
It is difficult to remember the values, units, and precisions of all physical constants. That’s the reason scipy.constants() have four methods with the help of which we can access physical constants. Let’s understand these methods along with examples −scipy.constants.value(key)− This method will give us the value in physical constants indexed ... Read More