QA Official

list in Python: Detailed Explanation and Implementation

https://qaofficial.com/post/2019/04/15/70309-list-in-python-detailed-explanation-and-implementation.html 2019-04-15
list is a common data type in python, which is a built-in class in python and inherits from object.Next, we will introduce the common methods of list and the classes that implement the function of Class list themselves.Create listCreate an empty list ​ list1 = [] ​ list2 = list() Create and initialize listlist1 = ['a',' b',' c', 123] # is commonly used, and the types can be inconsistent list2

machine learning -CrossValidation cross validation

https://qaofficial.com/post/2019/04/15/70240-machine-learning-crossvalidation-cross-validation.html 2019-04-15
concept "cross validation" is a good and accurate method for evaluating models.It divides the data set DD into k mutually exclusive subsets with similar sizes, namely d = d1d2 ... dk, didj = empty set (I ≠ j) d = d _ 1 \ bigcup d _ 2 \ bigcup ... \ bigcup d _ k, d _ I \ bigcup d _ j = empty set (i\neq j).Each subset

sklearn in python for cross validation

https://qaofficial.com/post/2019/04/15/70210-sklearn-in-python-for-cross-validation.html 2019-04-15
Quality is more important than quantity, just like a home run is better than two doubles.-Ant Financial 1, Overview In the analysis of experimental data, some algorithms need to build models with existing data, such as Convolutional Neural Network (CNN). Such algorithms are called Supervisied Learning.The data needed to build the model is called training data. After the model is built, the correctness of the model needs to be verified by data, which is called test data.

10 Fold Cross Validation Summary of Simple Data Set Partition Methods

https://qaofficial.com/post/2019/04/14/70202-10-fold-cross-validation-summary-of-simple-data-set-partition-methods.html 2019-04-14
DataFrame manually performs 10-fold cross-validation, and after sampling 10-fold, the index set of the original total data and the sampled 10-fold index set are differentiated to obtain another 9-fold index for constructing the training set. """1.10折交叉验证中数据的随机划分函数""" def cross_10folds(path,columns1): import pandas as pd #data=pd.read_csv(path)[:100] #经验

Elasticsearch Fragmentation/Cleavage/Optimization

https://qaofficial.com/post/2019/04/14/70099-elasticsearch-fragmentation/cleavage/optimization.html 2019-04-14
Elasticsearch Fragmentation default is randomize across shards random selection means that data is randomly taken from fragments._local: it means that the query operation will preferentially query in some fragments of the local node, otherwise, it will be queried in other nodes._primary: refers to the query only in the main fragment_primary_first: It means that the query will be first queried in the master slice. If the master slice cannot be found (hung up), the query will be made in the copy.

HTTP Protocol and Process Description

https://qaofficial.com/post/2019/04/14/111871-http-protocol-and-process-description.html 2019-04-14
HTTP protocol defines the communication method of file transfer between server and client.The current version of the HTTP protocol is Http1.1.RFC 2616 describes the specific information of HTTP protocol.This protocol has become the standard between browsers and Web sites.How does the bottom layer interact when I surf the Internet?When visitors click on a hyperlink, they will submit a URL address to the browser.Through this URL address, the browser will know which website to link to and obtain the specific page file (also may be a picture, a pdf file).

JAVA Notes-Basis of Java Grammar (Operators, Control Statements)

https://qaofficial.com/post/2019/04/14/70080-java-notes-basis-of-java-grammar-operators-control-statements.html 2019-04-14
JAVA syntax basics (operators, control statements) operator Arithmetic Operator:+-*/%++-- Attention to Arithmetic Operators If negative numbers are modulized, the minus sign of the modulo can be ignored, for example: 5%-2=1.But the modulus is negative is another matter. For division sign "/",there is a difference between integer division and decimal division: when dividing integers, only the integer part is retained and the decimal part is discarded. for example: int x=3510;x=x/1000*1000;What is

Java Basic Data Type and Floating Point Type

https://qaofficial.com/post/2019/04/14/70085-java-basic-data-type-and-floating-point-type.html 2019-04-14
Java has two floating point types: float and double.Java's floating-point type has a fixed range of table numbers that is machine independent of The length of the field, The length of the field, and table number ranges.Java floating-point numbers follow the IEEE754 standard, using the Scientific notation of binary data to represent floating-point numbers. For float-type values, the first bit is the sign bit, the next 8 bits are the exponent, and the next 23 bits are the mantissa.

Java Operator and operator precedence Details: Including Results of i=i

https://qaofficial.com/post/2019/04/14/70071-java-operator-and-operator-precedence-details-including-results-of-ii.html 2019-04-14
1. Arithmetic Operators 符 描述 例子 + 加法 - 相加运算符两侧的值 A + B 等于 30 - 减法 - 左操作数减去右操作数 A – B 等于 -10 * 乘法 - 相乘操作符两侧的值 A * B等于200 / 除

R language uses bagging method to classify and cross-verify data

https://qaofficial.com/post/2019/04/14/70201-r-language-uses-bagging-method-to-classify-and-cross-verify-data.html 2019-04-14
Data Classification Description R adabag package supports bagging and boosting, of which Bootstrap aggregating's Adabag package provides Breiman Bootstrap aggregating. The concept of sub-multi-version classifier is first proposed in Breiman bagging, and an aggregate classifier is obtained. operating data classification Import and Install Algorithm Package library(rpart) library(adabag) Call bagging function to complete the training of data set (different results may be produced in the training process) set.seed(2) churn.bagging = bagging(churn ~ .