jQuery in javascipts for python learning

Introduction to jQueryjquery is a function library, a js file, which can be used when a page is introduced with a script tag.Download address:Official jQuery website: http://jquery.com/<script type="text/javascript" src="js/jquery-1.12.2.js"></script> Writing the statement to get the element to the header of the page will cause err ...

Posted on Sun, 23 Feb 2020 10:31:52 -0800 by Tr4mpldUndrfooT

Python drawing normal curve: linespace combination Matplotlib (put into self write library, one line of code to realize complex drawing)

                    . Not much to say, given mu and sigma, a line of code to achieve complex drawing, all kinds of details of configuration are in silence. PS: the specific usage of this figure is shown ...

Posted on Sun, 23 Feb 2020 04:29:52 -0800 by mega77

QuantLib financial computing -- package Python interface by yourself

Catalog QuantLib financial computing -- package Python interface by yourself (2) Summary How to encapsulate a complex function? Strategies for finding the minimum set of functions practice Estimated term structure parameters Modification of official interface documents Ne ...

Posted on Sun, 23 Feb 2020 02:00:36 -0800 by jonsjava

kNN learning notes of machine learning practice

Using k-nearest neighbor algorithm to recognize handwritten numbers First, we must format the image as a vector. We transform a 3232 binary image matrix into a 11024 vector, so that the previous classification chess can process the digital image information import numpy as np import operator from os i ...

Posted on Sun, 23 Feb 2020 01:24:55 -0800 by elthomo

Learning path of data mining 5: knowledge of K-nearest neighbor algorithm (KNN) of classification algorithm and implementation of Python case

K-nearest neighbor algorithm K-nearest-neighbor algorithm is one of the simplest classification algorithms. It classifies by measuring the distance between different features. If most of the k-nearest-neighbor samples in the feature space belong to a certain category, then the samples also belong to t ...

Posted on Sun, 23 Feb 2020 00:18:32 -0800 by scrappy1855

Python Game Programming Reversegam

Reversegam is a game on a grid, so we'll use a Cartesian coordinate system with XY coordinates. primary coverage How to play Reversegam bool function Simulate Move on Reversegam Game Edition Write a Reversegam AI program Catalog How to play Reversegam Import modules and set constants Data s ...

Posted on Sat, 22 Feb 2020 17:24:53 -0800 by jeff_borden

Using Pandas Library in python to implement a commodity futures grid strategy

Pandas is a NumPy based tool created to solve data analysis tasks. Pandas incorporates a large number of libraries and some standard data models, providing the tools needed to efficiently operate large datasets. Pandas provides a large number of functions and methods that enable us to process data quickly and conveniently. You will soon find th ...

Posted on Fri, 21 Feb 2020 21:52:37 -0800 by el-sid

Python3 Socket Programming (Personal Summary)

Summary: Socket s, also known as sockets, are used by applications to make requests to or respond to network requests through sockets, enabling communication between hosts or between processes on a computer. 1. Socket Object In Python, we use the socket() function to create a socket in the following s ...

Posted on Fri, 21 Feb 2020 19:52:08 -0800 by sundru

Details of using json module in Python 3

This article mainly introduces the detailed use of json module in Python 3. The editor thinks it's very good. Now I'll share it with you and give you a reference. Let's follow Xiaobian to have a look Article directory 1. overview 2. Read JSON 2.1 simplest example 2.2 bytes and byte array data 2.3 cod ...

Posted on Fri, 21 Feb 2020 06:49:26 -0800 by fibonacci

[Python] handwritten digit recognition based on MNIST data set

Novice Xiaobai, I'm going to record my study here. I hope to meet some partners who work side by side. I hope the big guy can point out my shortcomings in the comment area! Recently, I was writing a neural network for handwritten Chinese character recognition, so I started from scratch with the big guy ...

Posted on Fri, 21 Feb 2020 04:36:41 -0800 by phpMover