Tag: numpy
Total: 17 Posts
Posts of Tag: numpy
  1. Convert Numpy Array to Tensor and Tensor to Numpy Array with PyTorch

    .lazyload-placeholder { display: none; } Tensors are multi-dimensional objects, and the essential data representation block of Deep Learning frameworks such as Tensorflow and PyTorch. A scalar has zero dimensio...Learn More
    PythonArrayMachine LearningDeep Learningartificial intelligencenumpypytorch
  2. How to Fill NaNs in a Pandas DataFrame

    .lazyload-placeholder { display: none; } Missing values are common and occur either due to human error, instrument error, processing from another team, or otherwise just a lack of data for a certain observation...Learn More
    Pythondata sciencepandasnumpy
  3. Guide to NumPy Matrix Subtraction

    Introduction Subtracting two matrices in NumPy is a pretty common task to perform. The most straightforward way to subtract two matrices in NumPy is by using the - operator, which is the simplification of the n...Learn More
  4. Calculating Euclidean Distance with NumPy

    In this guide - we'll take a look at how to calculate the Euclidean distance between two points in Python, using Numpy. What is Euclidean Distance? Euclidean distance is a fundamental distance metric pertaining...Learn More
  5. Calculating Spearman's Rank Correlation Coefficient in Python with Pandas

    Introduction This guide is an introduction to Spearman's rank correlation coefficient, its mathematical calculation, and its computation via Python's pandas library. We'll construct various examples to gain a b...Learn More
    Pythondata sciencedata visualizationpandasmathsnumpyseaborn
  6. Self-Organizing Maps: Theory and Implementation in Python with NumPy

    Introduction In this guide, we'll be taking a look at an unsupervised learning model, known as a Self-Organizing Map (SOM), as well as its implementation in Python. We'll be using an RGB Color example to train ...Learn More
    PythonMachine Learningdata scienceartificial intelligencenumpytheory
  7. Random Projection: Theory and Implementation in Python with Scikit-Learn

    Introduction This guide is an in-depth introduction to an unsupervised dimensionality reduction technique called Random Projections. A Random Projection can be used to reduce the complexity and size of data, ma...Learn More
    PythonMachine Learningscikit-learndata scienceartificial intelligencenumpytheory
  8. Guide to Numpy's arange() Function

    Introduction Numpy is the most popular mathematical computing Python library. It offers a great number of mathematical tools including but not limited to multi-dimensional arrays and matrices, mathematical func...Learn More
  9. Matplotlib Stack Plot - Tutorial and Examples

    Matplotlib Stack Plot - Tutorial and Examples Introduction There are many data visualization libraries in Python, yet Matplotlib is the most popular library out of all of them. Matplotlib’s popularity is due to...Learn More
    PythonStackdata sciencedata visualizationmatplotlibpandasnumpy
  10. Python: How to Flatten a List of Lists

    Python: How to Flatten a List of Lists Introduction A list is the most flexible data structure in Python. Whereas, a 2D list which is commonly known as a list of lists, is a list object where every item is a li...Learn More
  11. Python: Slice Notation on NumPy Arrays

    Python: Slice Notation on NumPy Arrays Introduction The term slicing in programming usually refers to obtaining a substring, sub-tuple, or sublist from a string, tuple, or list respectively. Python offers an ar...Learn More
  12. Affine Image Transformations in Python with Numpy, Pillow and OpenCV

    Affine Image Transformations in Python with Numpy, Pillow and OpenCV In this article I will be describing what it means to apply an affine transformation to an image and how to do it in Python. First I will dem...Learn More
    PythonImagenumpyopencvcomputer vision