Week 2: how to evaluate the model

Catalog 1. Learning objectives 2. Data splitting 2.1 introduction to data splitting 2.2 manual data splitting function 2.3 call the data splitting function in sklearn, train ﹐ test ﹐ split() 3. Indicators for evaluation of classification results 3.1 accuracy 3.1.1 definition 3.1.2 calculat ...

Posted by kusarigama on Thu, 05 Mar 2020 05:23:45 -0800

Java reflection of Java notes

Java reflection actually means that in the running state, we can know the methods and properties of any class. For any object, we can call its methods and properties. We call this function of dynamically obtaining object information and calling object methods reflection mechanism. Class Class ① Java i ...

Posted by bastienvans on Thu, 05 Mar 2020 04:20:16 -0800

LeetCode algorithm question bank learning (16)

The closest sum of three Title Description: Solutions: First, this problem is similar to the sum of the three numbers of the previous one, so this solution is also a sort+ In general, the writing method of double pointer is the same as the sum of three numbers. It also needs to be de duplicated ...

Posted by wempy on Thu, 05 Mar 2020 03:47:32 -0800

Use of DHT11 temperature and humidity sensor (with source code)

1, Product overview DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor with calibrated digital signal output. It uses special digital module acquisition technology and temperature and humidity sensing technology to ensure the product has high reliability and ...

Posted by pthes on Wed, 04 Mar 2020 22:13:45 -0800

Programming Design Thought and Practice Week2 Experimentation: B-Explode Zero (*) Make a Great Miracle ()

B - Blast zero (*) and work miracles hard () Title Description The real-time evaluation system used in the thought job and experiment of program design is characterized by timely ranking of results. How is its function implemented? After we have worked so hard to look straight into the program and s ...

Posted by gkelley091565 on Wed, 04 Mar 2020 19:00:16 -0800

SCAU--Data Structure Exercise--8580--Merge Chain Lists

Title Description Description The basic operations of a linear chain table are as follows: #include<stdio.h> #include<malloc.h> #define ERROR 0 #define OK 1 #define ElemType int typedef int Status; typedef struct LNode { int data; struct LNode *next; }LNode,*LinkList; Status ListInsert_L ( ...

Posted by xxreenaxx1 on Wed, 04 Mar 2020 18:55:42 -0800

Simple realization of C++11 thread pool

Simple implementation and test of C++11 thread pool Don't talk much, code first //threadpool.h #pragma once #include<vector> #include<queue> #include<thread> #include<iostream> #include<stdexcept> #include<condition_variable> #include<memory> #include<fu ...

Posted by mjm7867 on Wed, 04 Mar 2020 02:14:29 -0800

Search with MySQL regular expression

MySQL must know must know Regular expressions are special strings (character sets) used to match text. Three tables used: customers, products, and vendors Basic character matching: the keyword REGEXP is followed by a regular expression #Retrieve all rows of column prod'u name containing text '1000' ...

Posted by tofi84 on Tue, 03 Mar 2020 23:24:17 -0800

9. Extension of POJO

POJO s generated by jOOQ are generated for fields in a single table.In Association queries, we usually store data from multiple tables in one class.In this case, we can create our own class to add the multitable field member variables we need Creating classes manually is cumbersome for this common s ...

Posted by Jeremysr on Tue, 03 Mar 2020 17:29:18 -0800

Source code analysis of ArrayList based on jdk1.8

Source code analysis of ArrayList based on jdk1.8 When we talk about ArrayList, we may immediately think of it as follows: orderly, repeatable, fast search, but slow add and delete, and unsafe thread. But the specific reasons are not very clear, this article will study with you according to these prob ...

Posted by basim on Tue, 03 Mar 2020 02:08:25 -0800