Unlock instant, AI-driven research and patent intelligence for your innovation.

Accelerator and method of K-nearest neighbor

A K-nearest neighbor algorithm and acceleration device technology, applied in computing, computer components, instruments, etc., can solve problems such as limiting the adaptability of different applications, and achieve the effect of overcoming slow computing speed

Inactive Publication Date: 2017-01-25
INST OF COMPUTING TECH CHINESE ACAD OF SCI +1
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In addition to the above-mentioned improvements to the algorithm itself, many works use dedicated hardware to further accelerate the processing of the KNN algorithm. The advantage of using hardware acceleration is that the dedicated hardware structure is often more optimized than the general-purpose CPU in terms of performance and power consumption. However, for Different applications, including the number of training samples, sample dimensions, K variables and other parameters usually need to be adjusted according to actual needs. In addition, the calculation time also needs to meet the specific needs of different applications. However, the current research on the KNN algorithm based on hardware acceleration The work pays more attention to how to improve the speed by simplifying the algorithm, which usually implements a specific KNN algorithm under fixed dimensions, which limits the adaptability to different applications

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Accelerator and method of K-nearest neighbor
  • Accelerator and method of K-nearest neighbor
  • Accelerator and method of K-nearest neighbor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] The object of the present invention is to propose a K-nearest neighbor algorithm acceleration device and method. The general idea of ​​the present invention is to design and propose a reconfigurable accelerator structure that can quickly calculate the KNN algorithm. By adding multi-dimensional calculation modules, the distance calculation process of the KNN algorithm can be expanded in parallel according to the scale to achieve Acceleration of the KNN algorithm.

[0028] The overall structure diagram of the present invention is as figure 1 shown, and includes the following steps in sequence:

[0029] Step 1) Realization of the signal control module

[0030] Step 11) CONTROL module (control module) implementation

[0031] The CONTROL module is the control module of the whole system, such as figure 2 As shown, it has a register set, which contains system control information such as parallelism, sample dimension, value of nearest neighbor k, system reset, etc. The con...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an accelerating installation and method of K-nearest neighbor, which relates to the field of information retrieval, data mining and computer architecture, the device comprises a control module, used to control each module in the accelerating installation; an address calculation module, used to acquire the address of the training sample; an Euclidean distance calculation module, used to calculate distance when searching K-nearest neighbor; a result module, used to store and transmit the distance; a sequencing module, used to implement K-nearest neighbor sequencing for the distance. Wherein, the result module transmits the distance to the sequencing module, and sends the signal of the next address to the address calculation module for calculation, the address calculation module receives the signal and calculates the address of the next training sample, and the control module clears the contents in the result module. The accelerating installation and method of K-nearest neighbor adjusts KNN algorithm with samples under different dimensions through component increasing and decreasing, and meets different demands of sample algorithm under the same dimension by adjusting degree of parallelism.

Description

technical field [0001] The invention relates to the fields of information retrieval, data mining and computer architecture, in particular to an acceleration device and method for a K-nearest neighbor algorithm. Background technique [0002] KNN algorithm (K-Nearest Neighbor, K nearest neighbor algorithm) is a non-parametric classification algorithm, which has high classification accuracy in the classification of unknown distribution and low error rate in the classification of non-normal distribution, so it is widely used in machine learning , stochastic programming, pattern recognition and other fields, because KNN classification needs to calculate the distance between the feature vector to be classified and each sample in the trained sample set with category labels, resulting in computational complexity when the sample dimension and number of samples are large High, the calculation speed is slow and the real-time performance is poor when using software, which affects its ap...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06K9/62
CPCG06F18/241
Inventor 朱亚涛张志敏范东睿王达张浩
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI