Hash coding method and device
A hash coding and coding technology, applied in database indexing, structured data retrieval, etc., can solve problems such as inability to distinguish data well, affecting large-scale data indexing and neighbor query effects, and achieve the effect of maintaining the neighbor structure.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] An embodiment of the present invention provides a hash coding method. figure 1 is the processing flowchart of this method, please refer to figure 1 , the method includes:
[0043] Step 101: Generate projections, that is, generate multiple projection directions based on a given training data set;
[0044] Step 102: Generate cluster centers, that is, project all the training data in the training data set in each of the projection directions to obtain a set of projection values corresponding to each projection direction, and use the preset clustering The class algorithm clusters the projection values corresponding to each projection direction to obtain a predetermined number of cluster centers corresponding to each projection direction;
[0045] Step 103: Determine the threshold, that is, according to the predetermined number of cluster centers corresponding to each projection direction, determine multiple thresholds corresponding to each projection direction accordi...
Embodiment 2
[0083] The embodiment of the present invention also provides a hash coding device. Since the problem-solving principle of the device is similar to the method in embodiment 1, its specific implementation can refer to the implementation of the method in embodiment 1, and the same content is no longer Repeat instructions.
[0084] Figure 8 is a schematic diagram of the composition of the hash coding device, such as Figure 8 As shown, the device includes: a projection unit 801, a clustering unit 802, a threshold determination unit 803, and an encoding unit 804, wherein:
[0085] The projection unit 801 generates multiple projection directions based on a given training data set.
[0086] The clustering unit 802 projects all the training data in the training data set on each of the projection directions to obtain a set of projection values corresponding to each projection direction, and utilizes a preset clustering algorithm for each projection The projection values corresp...
Embodiment 3
[0102] The embodiment of the present invention also provides a hash coding device, which is different from the hash coding device in embodiment 2 in that in this embodiment, the threshold determination unit determines the number of values corresponding to each projection direction by means of linear weighting. a threshold. Wherein, the same content as that of Embodiment 2 will not be described repeatedly.
[0103] Figure 9 is a schematic diagram of the composition of the hash coding device in this embodiment, such as Figure 9 As shown, the hash coding device includes: a projection unit 901, a clustering unit 902, a threshold determination unit 903, and an encoding unit 904, wherein:
[0104] The projection unit 901 generates multiple projection directions based on a given training data set.
[0105] The clustering unit 902 projects all the training data in the training data set on each of the projection directions to obtain a set of projection values corresponding to ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com