NumPy provides a multidimensional array object called ndarray whose elements have a fixed size. That is, NumPy array elements are homogeneous and can only store objects of the same data type. It can use vectorized operation to process the entire array, which has high operation efficiency.
array creation
Create an ndarray array through the arr ...
Posted by Elle0000 on Wed, 04 Jan 2023 20:32:18 +0300
foreword
I wanted to write this because I received a task from the teacher today. The teacher gave me two folders. One of the folders has the candidates’ scores and candidates’ names, and the other has the candidates’ names, but they are out of order. What I have to do is to write the scores of these people into a new exc ...
Posted by Orkan on Wed, 12 Oct 2022 01:26:16 +0300
Trimble Data Conversion programming related supplements
This paper is a supplement to the data conversion applet of Tianbao digital level.
Interface design
Main functions of this program:
Open;
Generate observation manual;
Output adjustment format;
According to the three main functions of the program, the following controls are roughly requi ...
Posted by stevepatd on Tue, 24 May 2022 17:37:38 +0300
Python - data analysis - pandas data preprocessing Standardized data
Different features often have different dimensions, and the resulting numerical differences may be very large. If they are not processed when it comes to spatial distance calculation or gradient descent method, the accuracy of data analysis results will be affected. In order ...
Posted by jchemie on Tue, 24 May 2022 16:55:00 +0300
1. Data import and export
(1) Data import and export of csv file
import pandas
# Import 1.csv data into the data variable
data = pandas.read_csv(
# file path
'D:/1.csv',
# Set the engine parameter so that the Chinese meaning in the path will not report an error
engine='python',
# set encoding format
encoding='utf8'
)
# Data output
# de ...
Posted by EvilWalrus on Mon, 23 May 2022 07:22:19 +0300
SVD and CUR self summary
reference resources: https://www.cnblogs.com/endlesscoding/p/10033527.html https://blog.csdn.net/WangWeb1998/article/details/114376298
1. SVD (singular value decomposition)
definition: There is one
m
×
n
...
Posted by shruti on Sat, 21 May 2022 02:38:13 +0300
Application case of machine learning logistic regression algorithm
Time: September 12, 2020 source: https://www.kesci.com/home/project/5bfe39b3954d6e0010681cd1 Note: for beginners of logical regression, I followed the blog boss's article and left a record for later reading, which is also for everyone to learn..
1. Data
This data is Kaggle's ...
Posted by savj14 on Wed, 18 May 2022 07:40:03 +0300
TF-IDF model: analysis of epidemic text data based on stuttering word segmentation and wordcloud
Recently, we have made a text data analysis of China's policy on the COVID-19. Let's introduce the relevant knowledge to summarize and consolidate, and hope to help more people.
1, TF IDF: keyword extraction
Stop words: stop words are words o ...
Posted by Dasndan on Fri, 13 May 2022 00:46:36 +0300
text processing
Date processing
earliesCreditLine: You can see that earliesCreditLine uses English months to years for storage. Here we use the regular expression of '-' to separate the month and year, then use the judgment statement to convert the English month into a digital month, and finally unify the storage format of the two. The ...
Posted by weekenthe9 on Thu, 12 May 2022 16:24:24 +0300