Tag:numpy

  • Stack instance of Python numpy matrix

    Time:2020-9-29

    In practice, I encountered the operation of matrix stacking. I originally wanted to write a function myself. Later, I thought that there should be a library function, so I searched for it import numpy as np a = np.array([1,2,3]) b = np.array([4,5,6]) np.stack ((a, b)) ා default row stack Output: array([[1, 2, 3], [4, 5, […]

  • Example of histogram back projection using numpy in Python

    Time:2020-9-7

    Recently, I studied python with opencv2 Python tutorials_ When backprojection histogram in opencv, the first method is to use numpy to separate the red rose in the graph. The code given in the tutorial is short of a function, which leads to the failure of implementation. The code and effect are as follows: code: import […]

  • The implementation of numpy sorting

    Time:2020-3-31

    Numpy. Sort() function This function provides a variety of sorting functions, and supports a variety of sorting algorithms such as merge sort, heap sort, fast sort, etcThe format of using the numpy. Sort() method is: numpy.sort(a,axis,kind,order) a: Array to sort Axis: along the sorting axis, axis = 0 is sorted by column, axis = 1 […]

  • Implementation of numpy statistical function

    Time:2020-3-29

    Numpy. Amin() and numpy. Amax() Numpy. Amin() is used to calculate the minimum value of the elements in the array along the specified axis. Numpy. Amax() is used to calculate the maximum value of elements in an array along the specified axis a=np.array([1,3,6],[3,4,11],[6,1,4]) Print (NP. Amin (a, 1) 񖓿 minimum value of each line Print […]

  • Mars algorithm practice face recognition

    Time:2020-3-17

    Mars is a matrix based unified distributed computing framework. In the previous article, we have introduced what Mars is and its distributed execution, and Mars has been open-source in GitHub. When you finish reading the introduction of Mars, you may ask what it can do, which almost depends on what you want to do, because […]

  • What is Mars, what can be done and how to do it

    Time:2020-3-15

    Recently, our latest work Mars, matrix based unified computing framework, has been shared in pycon China 2018’s Beijing main venue, Chengdu and Hangzhou branch venues. In this paper, we will elaborate the sharing of pycon in China again in the form of words. Hearing about Mars, many students who first heard about it will ask […]

  • AI = > tensorflow2.0 syntax tensor & basic function (1)

    Time:2019-11-24

    Preface Tf2.0 is what we learned before. It was written in private ynote and rewritten in SF.Tf2.0-gpu installation tutorial portal: https://segmentfault.com/a/11I’ve been exposed to TF1 and manual session mechanism before. It’s a headache to watch Tf2.0 does not need to do thisTf2.0 is easier to understand (gradually Python and numpic)The back end of tf2.0 uses […]

  • ApacheCN Learning Resources Summary 2019.1

    Time:2019-9-6

    [Home page] apachecn.org 【Github】@ApacheCN Temporary offline: community Temporary offline: cwiki knowledge base Self-media Platform Weibo: @ApacheCN Know: @ApacheCN CSDN Brief book OSChina Blog Garden We are not Apache’s official organization / organization / group, but a fan of Apache technology stack (and AI)! Collaborative infringement, please contact [fonttian] <[email protected]> | and send a copy to […]

  • Realization of Neural Network with NumPy

    Time:2019-8-24

    Summary:Pure NumPy code implements a simple neural network from scratch. Keras, TensorFlow and PyTorch are high-level in-depth learning frameworks that can be used to quickly build complex models. Not long ago, I wrote an article about how neural networks work. This paper focuses on the detailed explanation of the mathematical theory knowledge used in the […]

  • Pandas trip (2): bits and pieces of data cleaning

    Time:2019-7-6

    Data cleaning Hello, everyone, this issue I will bring you my pandas learning experience phase II: data cleaning. This step is very important. We usually start this step immediately after we get the data source, so that we can do all kinds of operations in the future. Simply speaking, our goal is to make the […]

  • Pandas Tour (3) Detailed description of the most practical methods of Mage, Join and Concat

    Time:2019-6-12

    Merge, Join, Concat Hello, everyone, I’m back. This week’s update is a little slow, mainly because I updated my resume. If you are interested in it, you can go to see it. My Home Page Personally, I think it’s still beautiful. I have to say that many times foreigners are still very good at design. […]

  • Pandas Tour (4): Perhaps the most practical Pandas skills in the community

    Time:2019-6-9

    Pandas’s Seven Unknown Practical Skills Hello, everybody, I am back diligently today. This issue is mainly to share some practical skills of pandas with you, which will greatly improve efficiency in daily life. I hope it can help you, or as usual. First of all, I will present you a chapter and program catalogue of […]