k-nearest neighbor algorithm
KNN overview
k-nearest neighbor (KNN) algorithm is a basic classification and regression method.
As a supervised classification algorithm, it is one of the simplest machine learning algorithms. As the name implies, the main idea of its algorithm is to determine its own category according to the ne ...
Added by Kinneh on Mon, 17 Feb 2020 08:11:49 +0200
Create a new pose for the instance, using factory mode instead of the constructor
1, Simple engineering model
Simple factory mode is also called static factory method mode
Content: it is up to a factory object to decide which product class instance to create.
Feature: a factory object only produces one corresponding instance.
Advantage: very simple to use
Disadvantages: it is ...
Added by slyte33 on Sun, 16 Feb 2020 05:57:37 +0200
Web foundation -- JavaScript&DOM&BOM
JavaScript:
Concept: a client scripting language
Running in the client browser. Every browser has a JavaScript parsing engine
Script language: it can be parsed and executed by the browser without compilation
Functions:
It can enhance the interaction between users and html pages, control html el ...
Added by pkenny9999 on Sat, 15 Feb 2020 14:36:50 +0200
CSS learning (three selectors, div, span, three ways of introduction, background series, font series, four access states of hyperlink)
CSS (Cascading Style Sheets)
It allows you to control the style and layout of multiple pages at the same time, define the style for HTML elements (each label), and display the changed style in the page. Update the whole HTML globally.
(1) There are three ways to style:
(1) id selector
id is a ...
Added by c_shelswell on Fri, 14 Feb 2020 18:39:50 +0200
VUE MVVM introduction and demonstration
MVVM introduction and demonstration
easyUI
knockout
smartclient
exit.js
During the interview, the interviewer will ask you to describe the MVVM you know?
What is MVVM implemented in Vue?
OK, let's solve the problem
First of all, the first M refers to the Model, that is, the * * data Model. In fact, it refers to the data * * in the Vue co ...
Added by chooseodie on Fri, 14 Feb 2020 09:45:56 +0200
Basic knowledge of Vue + small cases
vue Foundation
First vue program
Import the development version of vue.js < script SRC = "https://cdn.jsdelivr.net/npm/vue/dist/vue.js" > < / script >
Create vue instance object, set el property and data property
Using simple template syntax to render data to the page
el m ...
Added by salman_ahad@yahoo.com on Thu, 13 Feb 2020 12:14:46 +0200
BS-1 Python basic knowledge-1.10 exception handling and testing
Exception handling and testing
Error type
exception handling
Example 1
try to execute code that may cause exception exception exception capture exception
Example 2
Example 3
finally
raise
Official python Exception document
Code testing
Test function
Test class
Illustrate with examples
unit testi ...
Added by dvt85 on Thu, 13 Feb 2020 05:25:50 +0200
NIO operation I. FileChannel
Definition
A new API is defined in JDK 1.4, i.e. New IO, which has different working modes from the standard IO API. The core components of NIO include channel, buffer and selectors.
Traditional IO is based on byte stream and character stream operation, which is blocking, while NIO is based on Channel ...
Added by jamiefoxx on Tue, 11 Feb 2020 13:46:18 +0200
Native js+WebGL for 3D Picture Effect
Overseas parties may have encountered this cool 3d picture effect when playing F***book:
Just go through this entry on the client side-
Or this entry for the web page version:
Can be generated.Don't know how to play please refer to the official Help Manual .Let's teach you how to do this today. Don't worry, all the code doesn't add up ...
Added by dirtyfrenchman on Sat, 08 Feb 2020 20:50:11 +0200
Why to add attribute key in Vue v-for
It is highly recommended to add the key attribute when using v-for on the Vue official website. This article looks at the difference between adding attribute key and not adding attribute key. Let's simulate the processing flow of this part in Vue. First, create 3 div elements. The content is
xiaozha ...
Added by phpPete on Sat, 08 Feb 2020 13:28:58 +0200