QA Official

C++:Implementation of Vector and List

https://qaofficial.com/post/2019/04/15/70311-c-implementation-of-vector-and-list.html 2019-04-15
Implementation of Vector //test.h #pragma once #include <iostream> #include <cstdio> #include <string.h> #include <assert.h> using namespace std; typedef int DataType; #define TESTHEADER printf("\n================%s===============\n", __FUNCTION__) class Vector { public: Vector(); Vector(const Vector& v); ~Vector(); Vector& operator = (Vector& v); void Swap(Vector& v); size_t Size()const; size_t Capacity()const; void Reserve(size_t n); void Resize(size_t n, DataType); DataType& operator[](size_t pos); void PushBack(DataType v); void PopBack(); private: void Expand(size_t n); DataType* _start; DataType* _finish; DataType* _endofstorage;

Cross Validation of Python Machine Learning

https://qaofficial.com/post/2019/04/15/70226-cross-validation-of-python-machine-learning.html 2019-04-15
Data Link: https://pan.baidu.com/s/1yW6gye5rJQ-Rn_iKlKUm1g Password: ejki import numpy as np import matplotlib.pyplot as plt import pandas as pd import seaborn as sns from sklearn.model_selection import train_test_split 1, data loading # 加载数据集 fruits_df = pd.read_table('fruit_data_with_colors.txt') print(fruits_df.head()) print('样本个数:', len(fruits_df)) # 创建目标标签和名称的字典 fruit_name_dict = dict(zip(fruits_df['fruit_label'], fruits_df['fruit_name']))

Cross Verification in Machine Learning

https://qaofficial.com/post/2019/04/15/70217-cross-verification-in-machine-learning.html 2019-04-15
Cross validation. Cross validation is used to prevent over-fitting caused by too complex a model. It is sometimes called cyclic estimation.It is a practical method to cut data samples into smaller subsets statistically.Therefore, one subset can be analyzed first, while the other subsets are used for subsequent confirmation and verification of this analysis.The initial subset is called the training set.The other subsets are called validation set or test sets.Cross-validation is to evaluate the generalization ability of statistical analysis and machine learning algorithms to data sets independent of training data.

Essence-Program Realization of Eight People Crossing the River

https://qaofficial.com/post/2019/04/15/70345-essence-program-realization-of-eight-people-crossing-the-river.html 2019-04-15
topic: Beethoven's 2nd, a father, a mother, two sons, two daughters, and a policeman, a villain, crossed a river. The father does not hurt his son in his mother's absence, the mother does not hurt her daughter in his father's absence, and the police does not hurt Beethoven's 2nd in the villain's absence. Only Mom, Dad, and the police can sail a boat. There can only be two people and

Introduction to Cross Validation

https://qaofficial.com/post/2019/04/15/70209-introduction-to-cross-validation.html 2019-04-15
1, training set vs test set In the related research of pattern recognition and machine learning, the dataset is often divided into two subsets: training set and testing set. The former is used to build a model, while the latter is used to evaluate the accuracy of the model in predicting unknown samples. The normal expression is generalization ability.How to divide the complete data set into training set and test set must follow the following points:

Introduction to Cross-validation in Machine Learning

https://qaofficial.com/post/2019/04/15/70242-introduction-to-cross-validation-in-machine-learning.html 2019-04-15
1. What is Cross Validation? Cross-validation is a measure adopted when the data in the experiment is insufficient, but we want to train a good model.The idea of cross-validation is to reuse data, split the given data, and combine the split data sets into training sets and test sets. On this basis, training, testing and model selection are continuously repeated.The following two cross-validation methods are introduced. The cross-validation method mainly

Learn some git commands from scratch

https://qaofficial.com/post/2019/04/15/70283-learn-some-git-commands-from-scratch.html 2019-04-15
I think the inventor of git is really a genius, not only can do it anywhere, but also can roll back any version and return to future versions.You can view the version number of each modification.You can view the modified content. First you need to create a folder.We found git bash directly from the beginning and opened it. 0: $ mkdir xixixi At this time there was xixixi's folder

Learning git Usage under ubuntu (1)

https://qaofficial.com/post/2019/04/15/70299-learning-git-usage-under-ubuntu-1.html 2019-04-15
git installation $ git//如果输入改命令后显示如下内容,则表明系统已经装了git usage: git [--version] [--help] [-C <path>] [-c name=value] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path] [-p | --paginate | --no-pager] [--no-replace-objects] [--bare] [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>] <command> [<args>] 这些是各种场合常见的 Git

Machine Learning-Cross Verification Function

https://qaofficial.com/post/2019/04/15/70218-machine-learning-cross-verification-function.html 2019-04-15
1. Cross-validation When establishing the classification model, Cross Validation is simply called CV, CV is used to verify the performance of the classifier.Its main idea is to group the original data, one as training set and the other as validation set.The training set is used to train the model, and the validation set is used to test the model to evaluate the performance of the classification model. 2. Role of

Rule Language comparison of ilog, Drools, Jess rule engines

https://qaofficial.com/post/2019/04/15/70350-rule-language-comparison-of-ilog-drools-jess-rule-engines.html 2019-04-15
IlogJRulesis the most famous commercial BRMS, just took JOLT;; Drools is the most active open source rule engine, and it has made great progress all the way.Jess is the java implementation of Clips, just as JRuby is to Ruby, and is the representative of AI system. Today, I compared the rule languages of these three representative rule engines.Among them, Ilog is a commercial product and has no chance of actual combat.