Word2vec of recommendation system

Word2vec of recommendation system Objective: in the tasks related to natural language processing, we should hand over the natural language to the algorithm in machine learning. Usually, we need to mathematicize the language, because the machine is not a human, and the machine only recognizes mathematical symbols. Vectors are things that people ...

Added by TheMayhem on Fri, 11 Feb 2022 07:41:59 +0200

Front end crawler [puppeter]

Puppeteer It is a node released by the chrome development team in 2017 JS package, as well as Headless Chrome. Used to simulate the operation of Chrome browser. It provides an advanced API to control Headless Chrome or Chromium through the DevTools protocol. It can also be configured to use full (non headless) chrome or Chromium.Before learning ...

Added by ryanbutler on Fri, 11 Feb 2022 07:36:58 +0200

LeetCode question brushing - Summary of sword finger offer stack and queue questions

Sword finger Offer 09 Queue with two stacks subject Implement a queue with two stacks. The declaration of the queue is as follows. Please implement its two functions appendTail and deleteHead to insert integers at the end of the queue and delete integers at the head of the queue respectively. (if there are no elements in the queue, the del ...

Added by likwidmonster on Fri, 11 Feb 2022 07:33:24 +0200

Search algorithms DFS, BFS, backtracking

Deep search Deep search DFS. When a new node is found, it will immediately traverse the new node. It needs to use stack implementation or recursive implementation equivalent to stack. If the parent node of the traversal loop has a different record, it can also be used to detect each parent node. Sometimes we may need to mark the nodes ...

Added by meltingpotclub on Fri, 11 Feb 2022 07:32:19 +0200

Entity Framework Core entity relationship configuration

https://docs.microsoft.com/zh-cn/ef/core/modeling/relationships 1. Introduction to terms Dependent entity: a dependent entity, an entity containing foreign keys, and a child in an entity relationship.Principal entity: principal entity, entity containing primary key / alternate key, and parent entity in entity relationship.Principal key: ...

Added by whitsey on Fri, 11 Feb 2022 07:30:10 +0200

JAVA notes -- Fundamentals of programming (Part 4)

catalogue 1, Methods and arrays 1. Method i. Definition of method ii. Format of method iii. parameters iv. return value v. Method overload method 2. Array i. Definition of array ii. Define array iii. traversal of array iv. array precautions v. Examples 3. Algorithm i. Bubble sorting algorithm ii. Select Sorting Algorithm iii. d ...

Added by luketheduck on Fri, 11 Feb 2022 07:17:58 +0200

W5500 Development Notes | 02 - use W5500 Socket API to establish TCP server and TCP client

Series articles W5500 Development Notes | 01 - description of w5500 socket API 1, Realization idea W5500 is a hardware TCP/IP protocol stack internally. External (MCU) only provides the ability to operate sockets. Internally, it supports 8 independent sockets, and each socket is controlled through Socket n register area (0 ≤ n ≤ 7). T ...

Added by cubik on Fri, 11 Feb 2022 07:07:53 +0200

Implementation of Raft protocol for learning from sentinel Leader election

Learning from sentinel Leader election and implementation of Raft protocol (Part 2) In the last article, I introduced you to the basic process of Raft protocol and the basic process of sentinel instance work. The Sentinels perform periodic execution through the serverCron function, and then call the sentinelTimer function in serverCron to real ...

Added by Magwheel on Fri, 11 Feb 2022 07:04:52 +0200

JAVA notes -- object oriented (Part 2)

catalogue 1, One to one relationship of objects 2, static keyword modifies properties and methods 1. Use the static keyword to decorate an attribute 2. Use the static keyword to decorate a method 3, Memory structure diagram and main method and code block 1. Structure diagram of loading class file into memory 2. main method 3. Code block ...

Added by anujgarg on Fri, 11 Feb 2022 06:50:15 +0200

Summary of knapsack problem

Classification of knapsack problems: 1. 01 knapsack problem 2. Complete knapsack problem 3. Multiple knapsack problem 4. Complete knapsack problem Solutions to DP problems: 01 knapsack problem Problem Description: see example: 01 knapsack problem Problem analysis: for each item, you can choose to or not. Therefore, the calculation of state i ...

Added by littlepeg on Fri, 11 Feb 2022 06:26:49 +0200