Generation method of decision tree and device thereof
A decision tree and rule technology, applied in the computer field, can solve problems such as occupying storage space, and achieve the effect of reducing the probability of rule duplication
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0098] Figure 1a It is a flowchart of a method for generating a decision tree provided by an embodiment of the present invention. Such as Figure 1a As shown, the method includes:
[0099] 11a: Generate an encoding rule set according to the rule set.
[0100] 12a: Generate the first weighted undirected graph.
[0101] 13a: Calculate the weight of each edge in the first weighted undirected graph.
[0102] 14a: If the weight of the edge with the largest weight in the first weighted undirected graph is greater than the first threshold, execute the first operation in a loop until the weight of the edge with the largest weight in the newly generated weighted undirected graph is less than Or equal to the first threshold.
[0103] 15a: Generate a decision tree for the sub-rule set corresponding to each vertex in the newly generated weighted undirected graph.
[0104] In the above 11a, the rule set includes a plurality of rules, each rule is a character string containing 0, 1 or ...
Embodiment 2
[0197] Figure 10 It is a flowchart of a method for generating a decision tree provided by an embodiment of the present invention. Such as Figure 10 As shown, the method includes:
[0198] 101: Generate a coding rule set according to the rule set.
[0199] 102: Generate a first weighted undirected graph.
[0200] 103: Calculate the weight of each edge in the first weighted undirected graph.
[0201] 104: If the weight of the edge with the largest weight in the first weighted undirected graph is less than the first threshold, the first threshold is an integer greater than or equal to 1 and less than or equal to X, where X is a bit in the first encoding rule number, then execute the first operation in a loop until the weight of the edge with the smallest weight in the newly generated weighted undirected graph is greater than or equal to the first threshold.
[0202] 105: Generate a decision tree for the sub-rule set corresponding to each vertex in the newly generated weigh...
Embodiment 3
[0264] Figure 19 It is a schematic structural diagram of an apparatus for generating a decision tree provided by an embodiment of the present invention. The device can be implemented through the method provided in Embodiment 1. Such as Figure 19 As shown, the device includes:
[0265] The encoding processing unit 191 is configured to generate an encoding rule set according to the rule set; the rule set includes a plurality of rules, and each rule is a string containing 0, 1 or wildcard characters, and any two rules in the plurality of rules are mutually exclusive. Equal; the encoding rule set includes a plurality of encoding rules, any two encoding rules in the plurality of encoding rules are not equal to each other; each encoding rule in the plurality of encoding rules corresponds to at least one of the plurality of rules , each rule in the plurality of rules corresponds to one of the plurality of encoding rules; the encoding rule corresponding to the first rule is obtai...
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