
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
Found 1204 Articles for Numpy

198 Views
Inner product is one of the most important operations in the linear algebra mathematical operations, which takes two vectors as input and gives the scalar value as the output. It is also known as the Dot product or the scalar product. The inner product of the two vectors is given as follows. a . b = ||a|| ||b|| cos(Ø) Where, ||a|| and ||b|| are the magnitudes of the vectors a and b respectively Ø is the angle between the vectors a and b a . b is the dot product of a and b Calculating Inner ... Read More

130 Views
In python, for creating histograms we have the numpy, matplotlib and seaborn libraries. In Numpy, we have the function namely histogram() to work with the histogram data. The input argument for the histogram() function is the nums and bins. The nums are used to create the numerical data. Before proceeding with the examples first of all let us understand what is histogram. What is histogram Histogram is the graphical representation of the dataset distribution. It represents the data in the form of series of bars, where the range of data values represented by each bar and height of the bar ... Read More

190 Views
A Histogram is the graphical representation of the dataset distribution. It represents the data in the form of series of bars, where the range of data values represented by each bar and height of the bar represents the frequency of the data values defined within the range. These are mainly used to represent the distribution of the numerical data like grades in a class, distribution of the population or distribution of the incomes of the employees etc. In histogram, x-axis represents the range of data values, divided into intervals and the y-axis represents the frequency of the range of data ... Read More

123 Views
Singular Value Decomposition (SVD) is the matrix factorization technique which divides the matrix into three parts namely left singular matrix, a diagonal singular matrix and right singular matrix. SVD is powerful tool used in linear algebra and it has number of applications in data analysis, machine Learning and signal processing. This is mainly used to compute the rank of the matrix, as well as to perform the linear equations and performing the image compression and many more operations. Calculating Singular Value Decomposition If we compose a real or complex matrix A with the size m x n, then ... Read More

832 Views
Covariance is the measure of two variables that defines how they are related to each other. In other words, it measures the extent to which one variable is associated with the changes in the other variable. When the covariance of the variables is positive, it implies that both variables are moving in the same direction i.e. if one variable tends to increase, as a result, the value of the other variable also increases. When the covariance of the variables is negative then it represents the two variables are moving in opposite direction i.e. if one variable increases the value ... Read More

589 Views
The NumPy library has a wide range of tools which perform the comparison and filtering of the arrays. The comparison of arrays will be done element by element in row wise and column wise based on the dimension of the array. When we want to retrieve a particular array element, then we can apply the filtering. NumPy is abbreviated as Numerical python, which is used to perform mathematical and scientific calculations on multidimensional arrays and matrices. There are different functions and methods available in NumPy to perform the filtering and comparison of the arrays. Comparing NumPy Arrays Following are ... Read More

424 Views
Machine learning uses the mathematical approach of Singular value decomposition to comprehend huge and complicated data sets. In this mathematical approach, a Unique Valued matrix A is factorized into three matrices via decomposition. In terms of the components of A, the Singular value decomposition of matrix A can be written as A=UDVT. In this case, S denotes A's singular values, whereas U and V stand for A's left and right singular vectors, respectively. Mathematical Algorithm Given Matrix A find the Transpose of matrix A that is (AT). Find A*AT Find the Eigen Vector of A*AT ... Read More

6K+ Views
When working with data in Python, it is often necessary to transform and manipulate arrays to facilitate analysis and computations. One common scenario is converting a 1D array of tuples into a 2D Numpy array. This conversion allows for easier indexing, slicing, and applying array operations. In this article, our focus will be on the conversion process of transforming a 1D array of tuples into a Numpy array. 1D Array of Tuple A 1D array of tuples refers to a data structure in which tuples are arranged sequentially in a one−dimensional array. For example, consider the following 1D array of ... Read More

7K+ Views
Numpy is a popular Python library used for numerical computing and scientific computing, providing a powerful array object for handling large and multi−dimensional arrays. However, when it comes to machine learning, deep learning, and neural networks, PyTorch is a widely used library that provides an efficient and flexible platform for building and training these models. While Numpy arrays and PyTorch tensors are similar in many ways, they have different properties and methods, which makes it necessary to convert a Numpy array to a PyTorch tensor when using PyTorch for machine learning applications. In this article, we will explore the process ... Read More

3K+ Views
NumPy is a powerful library in Python for numerical computing that provides an array object for the efficient handling of large datasets. Often, it is necessary to normalize the values of a NumPy array to ensure they fall within a specific range. One common normalization technique is to scale the values between 0 and 1. In this article, we will learn how to normalize a NumPy array so the values range exactly between 0 and 1. We will see the different approaches that can be used to achieve this using NumPy, along with syntax and complete examples. Approaches There are ... Read More