Numpy quick start - Introduction to array (creation of array + basic operation of array)

explain This article will not introduce all array functions and will not explain all parameters. For details, please refer to the official documents.Parameters with square brackets [] can be omitted.The output of each small piece of code is written in the comments below. 1, Array creation 1.1 create an array using existing data function ...

Added by RobNewYork on Sat, 05 Feb 2022 06:45:13 +0200

NumPy: high performance scientific computing & the basic package of data analysis

NumPy is not only the most used third-party library in Python, but also the basic library of data science such as SciPy and Pandas. The data structure it provides is "more advanced and efficient" than Python itself. It can be said that the data structure provided by NumPy is the basis of Python data analysis. In NumPy, we need to f ...

Added by ibechane on Fri, 04 Feb 2022 08:01:20 +0200

Data driven analysis practice 8 - promotion model

Data driven analysis practice 8 Lifting model When dealing with growth related issues, a very important key factor is efficiency. First, we need to improve time efficiency, which means rapid conception, practice, learning and iteration; The second is the cost, which can make greater profits under the same budget, time and effort. User segmen ...

Added by betportal on Fri, 04 Feb 2022 06:42:19 +0200

[data preparation and Feature Engineering] feature transformation

1. Feature digitization 1.1 Replace() function import pandas as pd df = pd.DataFrame({"gene_segA": [1, 0, 0, 1, 1, 1, 0, 0, 1, 0], "gene_segB": [1, 0, 1, 0, 1, 1, 0, 0, 1, 0], "hypertension": ["Y", 'N', 'N', 'N', 'N', 'N', 'Y', 'N', 'Y', 'N'], "Gallstones": ['Y', 'N', 'N', 'N', 'Y', 'Y', 'Y', 'N', 'N', 'Y'] }) df df.replace({"N": 0, 'Y': ...

Added by croakingtoad on Wed, 02 Feb 2022 15:20:32 +0200

Java basic syntax 2

Java basic syntax 1 type conversion In Java, some data types can be converted to each other. There are two cases: automatic type conversion and forced type conversion. 1.1 implicit transformation (understanding) Assign a value or variable representing a small data range to another variable representing a large data range. This conversion mo ...

Added by poison6feet on Tue, 01 Feb 2022 20:53:55 +0200

Loan risk prediction

Loan default risk prediction The project comes from the Kaggle competition. It is required to predict whether the customer's loan will default according to the customer's credit card information, installment information, credit bureau information and so on. Load module and build environment import numpy as np import pandas as pd import matpl ...

Added by Darhazer on Tue, 01 Feb 2022 16:10:52 +0200

Forecast the existing stock data and draw with matplotlib

Baidu cloud link of the file used in this article: Link: https://pan.baidu.com/s/15-qbrbtRs4frup24Y1i5og Extraction code: pm2c linear prediction Assuming that a set of data conforms to a linear law, we can predict the data that will appear in the future a b c d e f g h .... ax + by + cz = d bx + cy + dz = e cx + dy + ez = f In ...

Added by gernot on Mon, 31 Jan 2022 22:36:44 +0200

Play pandas access_ lower

Official account: Special HouseAuthor: PeterEditor: Peter Hello, I'm Peter~ This will be the last article on DataFrame data filtering, focusing on the use of three pairs of functions: iloc and loc, the most important and frequently used pair of functionsat and iatany and all Important learning materials: https://pandas.pydata.org/pand ...

Added by BLottman on Mon, 31 Jan 2022 17:41:53 +0200

How to improve the accuracy of regression model

In this article, we will see how to deal with the regression problem and how to improve the accuracy of machine learning model by using the concepts of feature transformation, feature engineering, clustering, enhancement algorithm and so on. Data science is an iterative process. Only through repeated experiments can we get the most suitable mo ...

Added by SmoshySmosh on Mon, 31 Jan 2022 16:52:40 +0200

Matlab analysis function, polynomial, nonlinear function

catalogue 1 data analysis function library 1.1 basic data analysis 1.2 functions for random data analysis 1.3 functions for correlation analysis 2. Polynomial function library 2.1} four operations of polynomials 2.2 derivation, root and evaluation of polynomials 2.3 polynomial fitting 2.4 solutions of linear differential equations 3. ...

Added by amylou on Mon, 31 Jan 2022 07:32:52 +0200