Decision tree generation method and device
By extracting the tree skeleton of the decision tree from a scene with a large sample size and training the missing split values in a scene with a small sample size, the problem of poor decision tree generation when the sample size is small is solved, and the problem of poor decision tree generation in the sample data is achieved. Trustworthy decision tree generation in fewer scenarios.
Patent Information
- Application Number
- CN202011205097.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-09-21
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2038-09-21
AI Technical Summary
In scenarios with a small number of samples, the generation effect of decision trees is often poor, making it difficult to train a credible model.
Extract the tree skeleton of the decision tree from the scene with a large sample size, including the splitting characteristics of the nodes but excluding the splitting value, and then use the new sample data to train the missing splitting values in the scene with a small sample size to generate the target decision tree .
Through this method, a more credible decision tree can be generated in scenarios with less sample data, which solves the problem of poor model training results in scenarios with less sample data.
Smart Images

Figure CN112418274B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of machine learning technology, and in particular to a decision tree generation method and device. Background Art
[0002] Decision tree is a basic supervised learning model that can continuously cut data to achieve the purpose of segmenting data. The generation of decision trees depends on a large number of labeled samples. When the number of samples is small, the effect of the trained decision tree is often poor. Summary of the invention
[0003] In view of this, the present specification provides a decision tree generation method and device.
[0004] Specifically, this specification is implemented through the following technical solutions:
[0005] A decision tree generation method, comprising:
[0006] Obtaining a basic decision tree, where the basic decision tree is generated based on the first type of sample data;
[0007] Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values;
[0008] The second type of sample data is used to train the missing split values of the tree skeleton to obtain a target decision tree.
[0009] A decision tree generating device, comprising:
[0010] A basic acquisition unit, which acquires a basic decision tree, wherein the basic decision tree is generated based on the first type of sample data;
[0011] A skeleton extraction unit extracts a tree skeleton of the basic decision tree, wherein the tree skeleton includes split features of nodes and does not include split values or includes part of the split values;
[0012] The target training unit uses the second type of sample data to train the missing split values of the tree skeleton to obtain a target decision tree.
[0013] A decision tree generating device, comprising:
[0014] processor;
[0015] memory for storing machine-executable instructions;
[0016] Wherein, by reading and executing the machine executable instructions corresponding to the decision tree generation logic stored in the memory, the processor is prompted to:
[0017] Obtaining a basic decision tree, where the basic decision tree is generated based on the first type of sample data;
[0018] Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values;
[0019] The second type of sample data is used to train the missing split values of the tree skeleton to obtain a target decision tree.
[0020] It can be seen from the above description that the present specification can extract a tree skeleton from the basic decision tree, and can migrate the tree skeleton to a scenario with less sample data, and train the tree skeleton based on the sample data in the scenario, thereby generating a credible decision tree for the scenario with less sample data, solving the model training problem for scenarios with less sample data. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a flowchart of a decision tree generation method shown in an exemplary embodiment of this specification.
[0022] Figure 2 It is a basic decision tree schematic diagram shown in an exemplary embodiment of this specification.
[0023] Figure 3 It is a tree skeleton diagram shown in an exemplary embodiment of this specification.
[0024] Figure 4 It is a structural schematic diagram of a decision tree generating device shown in an exemplary embodiment of this specification.
[0025] Figure 5 It is a block diagram of a decision tree generating device shown in an exemplary embodiment of this specification. DETAILED DESCRIPTION
[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0027] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] This specification provides a decision tree generation scheme, which can extract a tree skeleton from a decision tree of a scene with a large sample size, and then migrate the tree skeleton to a scene with a small sample size, and train the tree skeleton based on the sample data of the scene, so as to train a more reliable decision tree for the scene with a small sample size.
[0030] Figure 1 It is a flowchart of a decision tree generation method shown in an exemplary embodiment of this specification.
[0031] Please refer to Figure 1 , the decision tree generation method may include the following steps:
[0032] Step 102: Obtain a basic decision tree, where the basic decision tree is generated based on the first type of sample data.
[0033] In this embodiment, the first category of sample data comes from a first scenario, which is usually a scenario with a large number of samples. A decision tree for a specified topic can be generated based on the first category of sample data. For ease of distinction, this decision tree can be called a basic decision tree.
[0034] For example, algorithms such as C4.5 and C5 may be used to generate the basic decision tree.
[0035] For another example, a GBDT (Gradient Boosting Decision Tree) algorithm may be used to generate a basic decision tree containing one tree.
[0036] In this embodiment, the subject is usually a classification determination subject, for example, cash withdrawal determination, abnormal account determination, money laundering determination, etc., and this specification does not impose any special restrictions on this.
[0037] In this embodiment, since the first category has a large number of samples, the generated basic decision tree is more credible.
[0038] Step 104: extract the tree skeleton of the basic decision tree, wherein the tree skeleton includes the splitting features of the nodes and does not include the splitting values or includes part of the splitting values.
[0039] In this embodiment, some nodes and the bifurcation paths between the some nodes can be extracted downward from the root node of the basic decision tree, or all nodes of the basic decision tree and the bifurcation paths between all nodes can be extracted downward from the root node to generate a tree skeleton.
[0040] The tree skeleton may include the split features of the extracted nodes, but may not include the split values of the split features, and may also include the split values of some split features. This specification does not impose any special restrictions on this.
[0041] Step 106, using the second type of sample data to train the missing split values of the tree skeleton to obtain a target decision tree.
[0042] In this embodiment, the second type of sample data comes from the second scenario, which is usually a scenario with a smaller sample size and has some of the same features as the first scenario, such as the total transaction amount in the past three days, the total number of people who transferred money on the same day, etc. The decision tree generated based on the second type of sample data is often too fit and has poor credibility. In this step, the tree skeleton extracted in the above step 104 can be trained based on the second type of sample data to obtain the splitting value missing from the tree skeleton, and then the tree skeleton can be further extended to generate a target decision tree of the same theme for the second scenario.
[0043] It can be seen from the above description that the present specification can extract a tree skeleton from the basic decision tree, and can migrate the tree skeleton to a scenario with less sample data, and train the tree skeleton based on the sample data in the scenario, thereby generating a more reliable decision tree for the scenario with less sample data, solving the model training problem for the scenario with less sample data.
[0044] The following describes in detail the specific implementation process of this specification by taking the designated subject of cash-out determination as an example.
[0045] The above-mentioned cash withdrawal refers to the withdrawal of cash, which generally refers to the use of illegal or false means to exchange for cash benefits, for example, credit card cash withdrawal, credit product cash withdrawal, etc.
[0046] In this embodiment, it is assumed that the first scenario is an O2O (Online to Offline) scenario, for example, offline code scanning payment. It is assumed that the second scenario is a payment code collection scenario, for example, a user scans a merchant's static QR code to make a payment.
[0047] In this embodiment, there are many samples for cashing out determination in the O2O scenario. Based on the first type of sample data in the O2O scenario, algorithms such as C4.5 and C5 can be used to generate a basic decision tree for cashing out determination.
[0048] Assume that the basic decision tree trained in the O2O scenario is as follows Figure 2 Please refer to Figure 2 , node 1 is the root node of the basic decision tree, nodes 2 to 7 are ordinary tree nodes of the decision tree, and nodes 8 to 15 are leaf nodes of the basic decision tree.
[0049] The basic decision tree includes several forked paths, which are used to connect various nodes. For example, path 12 connects root node 1 and common tree node 2, path 13 connects root node 1 and common tree node 3, and so on.
[0050] The maximum depth of the basic decision tree is 3. The depth can be understood as the distance from the node to the root node. For example, the distance from ordinary tree node 2 to root node 1 is 1, that is, the depth of ordinary tree node 2 is 1; the distance from leaf node 8 to root node 1 is 3, that is, the depth of leaf node 8 is 3, and so on.
[0051] node Split characteristics Root Node 1 Total transaction amount in the past 10 days Normal tree node 2 Total transaction amount in the past 5 days Normal tree node 3 Number of transfers in the past 5 days Normal tree node 4 Number of transfers in the past 8 days Normal tree node 5 Number of transfers in the past 3 days … …
[0052] Table 1
[0053] Each node except the leaf node in the basic decision tree can represent a split feature. Please refer to the example in Table 1. The split feature represented by the root node 1 is the total transaction amount in the past 10 days, the split feature represented by the ordinary tree node 2 is the total transaction amount in the past 5 days, and the split feature represented by the ordinary tree node 3 is the number of transfers in the past 5 days, etc.
[0054] node Split characteristics Split Value Root Node 1 Total transaction amount in the past 10 days 1000 Normal tree node 2 Total transaction amount in the past 5 days 500 Normal tree node 3 Number of transfers in the past 5 days 8 Normal tree node 4 Number of transfers in the past 8 days 12 Normal tree node 5 Number of transfers in the past 3 days 5 … …
[0055] Table 2
[0056] Each splitting feature may correspond to a splitting value, and a unique bifurcation path may be determined based on the splitting value and the selection strategy of the bifurcation path. The selection strategy of the bifurcation path may be preset, for example, the left bifurcation path corresponds to a determination result that is less than or equal to the splitting value, and the right bifurcation path corresponds to a determination result that is greater than the splitting value.
[0057] Please refer to the example in Table 2. The splitting value of the splitting feature of root node 1, the total transaction amount in the past 10 days, is 1000. When the total transaction amount in the past 10 days is less than or equal to 1000, it can be determined that the bifurcation path is 12, jump to the ordinary tree node 2, and continue to judge the relationship between the total transaction amount in the past 5 days and the splitting value 500. When the total transaction amount in the past 10 days is greater than 1000, it can be determined that the bifurcation path is 13, jump to the ordinary tree node 3, and continue to judge the relationship between the number of transfers in the past 5 days and the splitting value 8, and so on.
[0058] For example, if the total transaction amount of an account in the past 10 days is 950, and the total transaction amount in the past 5 days is 550, then the account Figure 2 The path in the basic decision tree shown is root node 1 - ordinary tree node 2 - ordinary tree node 5..., and so on.
[0059] It is worth noting that Figure 2 This is just an example. In actual applications, the generated basic decision tree is usually Figure 2 More complicated.
[0060] In this embodiment, after the basic decision tree is generated, the tree skeleton may be extracted.
[0061] In one example, nodes less than or equal to a specified depth and branching paths between the nodes may be extracted starting from the root node of the basic decision tree.
[0062] The designated depth is usually less than the maximum depth of the basic decision tree and can be preset, for example, can be set by business personnel based on experience.
[0063] Assuming the specified depth is 2, Figure 2 Taking the basic decision tree shown in the figure as an example, we can extract the nodes with depths of 1 and 2 and the branching paths between the nodes starting from the root node, that is, we can extract the branching paths from node 1 to node 7 and from node 1 to node 7: path 12, path 13, path 24, path 25, path 36 and path 37, and get Figure 3 The tree skeleton shown.
[0064] In this embodiment, the tree skeleton includes the split features represented by the extracted nodes, namely, the split feature of the root node 1, the total transaction amount in the past 10 days, the split feature of the common tree node 2, the total transaction amount in the past 5 days, and the like.
[0065] The tree skeleton may not include the split values of each split feature, and may also include the split values of some split features. For example, it may only include the split values of the split features of the root node 1, the ordinary tree node 2 and the ordinary tree node 3. This specification does not impose any special restrictions on this.
[0066] In another example, all nodes of the basic decision tree and the branching paths between all the nodes may be extracted downward from the root node of the basic decision tree to obtain the tree skeleton of the basic decision tree.
[0067] The tree skeleton may not include the split values of each split feature, and may also include the split values of some split features. This specification does not impose any special restrictions on this.
[0068] In another example, the tree skeleton may be extracted without taking the depth as the basis. Figure 2 For example, the root node 1 and the common tree nodes 2 to 5 etc. can be extracted.
[0069] In this embodiment, after the tree skeleton of the basic decision tree is extracted, the tree skeleton can be trained using the second type of sample data in the payment code scenario to obtain the missing split value of the tree skeleton.
[0070] node Split characteristics Split Value Root Node 1 Total transaction amount in the past 10 days 800 Normal tree node 2 Total transaction amount in the past 5 days 400 Normal tree node 3 Number of transfers in the past 5 days 7 Normal tree node 4 Number of transfers in the past 8 days 10 Normal tree node 5 Number of transfers in the past 3 days 4 … …
[0071] Table 3
[0072] Taking the splitting value of the tree skeleton that does not include any splitting feature as an example, based on the second type of sample data in the payment code scene, the splitting value of each splitting feature can be trained. Please refer to the example in Table 3, the splitting value of the splitting feature of root node 1, the total transaction amount in the past 10 days, is 800. According to the predetermined bifurcation path selection strategy, when the total transaction amount in the past 10 days is less than or equal to 800, it can be determined that the bifurcation path is 12, and so on.
[0073] In this embodiment, after obtaining the splitting values of each splitting feature in the tree skeleton, the tree skeleton can continue to be fitted and extended based on the second type of sample data, and the splitting features and splitting values of each extended node after extension can be determined until the model converges and the target decision tree is obtained, thereby completing the training of the cash-out determination decision tree in the payment code scenario.
[0074] Generally speaking, when the number of black samples of a leaf node is small, the leaf node is usually considered untrustworthy. Optionally, for the target decision tree obtained through training, the credibility of each leaf node in the target decision tree can be calculated using the second type of sample data in the second scenario, and then the leaf nodes whose credibility does not meet the trust condition are filtered to streamline the target decision tree.
[0075] Taking the GBDT algorithm as an example, the leaf nodes of the target decision tree can be scored based on all the second-category sample data. For each leaf node, the scoring results can be summarized and used as the credibility of the leaf node. Assuming that the credibility condition is that the credibility is ranked in the top 1%, the leaf nodes ranked in the top 1% can be retained, and the leaf nodes ranked behind can be filtered.
[0076] It is worth noting that in practical applications, in order to ensure the integrity of the target decision tree, leaf nodes that do not meet the trust conditions may not be pruned, and only the leaf nodes that do not meet the trust conditions are not used in the use of the target decision tree.
[0077] Optionally, for target decision trees related to finance that have high requirements for interpretability, this specification can automatically generate decision rules for the model.
[0078] In this example, for each leaf node of the trained target decision tree, the complete path from the root node to the leaf node can be obtained from bottom to top, and then the decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
[0079] Please continue to refer to Figure 3 , Figure 3 The target decision tree shown includes 4 complete paths, namely node 1-node 2-node 4, node 1-node 2-node 5, node 1-node 3-node 6, and node 1-node 3-node 7.
[0080] Assuming that the split features and split values represented by the above nodes are as shown in Table 2, the logical AND can be used to connect the split features and their split values. Taking node 1-node 2-node 4 as an example, the corresponding judgment rules are: the total transaction amount in the past 10 days is greater than or equal to 1000 and the total transaction amount in the past 5 days is greater than or equal to 500 and the number of transfers in the past 8 days is greater than or equal to 12.
[0081] In this way, each decision rule of the target decision tree can be automatically generated.
[0082] Corresponding to the above-mentioned embodiment of the decision tree generation method, this specification also provides an embodiment of a decision tree generation device.
[0083] The embodiments of the decision tree generation device of this specification can be applied on a server. The device embodiments can be implemented by software, hardware, or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of the server where it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 4 The figure is a hardware structure diagram of the server where the decision tree generation device of this specification is located, except Figure 4 In addition to the processor, memory, network interface, and non-volatile memory shown, the server where the device in the embodiment is located may also include other hardware according to the actual function of the server, which will not be described in detail.
[0084] Figure 5It is a block diagram of a decision tree generating device shown in an exemplary embodiment of this specification.
[0085] Please refer to Figure 5 The decision tree generation device 400 can be applied in the aforementioned Figure 4 The server shown includes: a basic acquisition unit 401, a skeleton extraction unit 402, a target training unit 403 and a rule generation unit 404.
[0086] Wherein, the basic acquisition unit 401 acquires a basic decision tree, where the basic decision tree is generated based on the first type of sample data;
[0087] A skeleton extraction unit 402 extracts a tree skeleton of the basic decision tree, wherein the tree skeleton includes split features of nodes and does not include split values or includes part of the split values;
[0088] The target training unit 403 uses the second type of sample data to train the missing split values of the tree skeleton to obtain a target decision tree.
[0089] Optionally, the skeleton extraction unit 402 extracts nodes less than or equal to a specified depth and bifurcation paths between the nodes starting from the root node of the basic decision tree downward, where the specified depth is less than the depth of the basic decision tree.
[0090] Optionally, the skeleton extraction unit 402 extracts all nodes of the basic decision tree and bifurcation paths between all nodes starting from the root node of the basic decision tree downward.
[0091] Optionally, after obtaining the splitting values missing from the tree skeleton through training with the second type of sample data, the target training unit 403 extends the tree skeleton based on the second sample data and determines the splitting features and splitting values of the extended nodes until convergence.
[0092] A rule generating unit 404 obtains a complete path from a root node to each leaf node of the target decision tree;
[0093] The decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
[0094] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0095] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can refer to the partial description of the method embodiments. The device embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.
[0096] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0097] Corresponding to the embodiment of the above-mentioned decision tree generation method, this specification also provides a decision tree generation device, which includes: a processor and a memory for storing machine executable instructions. The processor and the memory are usually connected to each other via an internal bus. In other possible implementations, the device may also include an external interface to enable communication with other devices or components.
[0098] In this embodiment, by reading and executing the machine executable instructions corresponding to the decision tree generation logic stored in the memory, the processor is prompted to:
[0099] Obtaining a basic decision tree, where the basic decision tree is generated based on the first type of sample data;
[0100] Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values;
[0101] The second type of sample data is used to train the missing split values of the tree skeleton to obtain a target decision tree.
[0102] Optionally, when extracting the tree skeleton of the basic decision tree, the processor is prompted to:
[0103] Nodes with a depth less than or equal to a specified depth and bifurcated paths between the nodes are extracted downward from the root node of the basic decision tree, wherein the specified depth is less than the depth of the basic decision tree.
[0104] Optionally, when extracting the tree skeleton of the basic decision tree, the processor is prompted to:
[0105] All nodes of the basic decision tree and the bifurcated paths between all the nodes are extracted downward from the root node of the basic decision tree.
[0106] Optionally, the processor is further prompted to:
[0107] After obtaining the splitting values missing from the tree skeleton by training with the second type of sample data, the tree skeleton is extended based on the second sample data, and the splitting features and splitting values of the extended nodes are determined until convergence.
[0108] Optionally, the processor is further prompted to:
[0109] For each leaf node of the target decision tree, obtain a complete path from the root node to the leaf node;
[0110] The decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
[0111] Corresponding to the embodiment of the foregoing decision tree generation method, the present specification also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0112] Obtaining a basic decision tree, where the basic decision tree is generated based on the first type of sample data;
[0113] Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values;
[0114] The second type of sample data is used to train the missing split values of the tree skeleton to obtain a target decision tree.
[0115] Optionally, extracting the tree skeleton of the basic decision tree includes:
[0116] Nodes with a depth less than or equal to a specified depth and bifurcated paths between the nodes are extracted downward from the root node of the basic decision tree, wherein the specified depth is less than the depth of the basic decision tree.
[0117] Optionally, extracting the tree skeleton of the basic decision tree includes:
[0118] All nodes of the basic decision tree and the bifurcated paths between all the nodes are extracted downward from the root node of the basic decision tree.
[0119] Optionally, also include:
[0120] After obtaining the splitting values missing from the tree skeleton by training with the second type of sample data, the tree skeleton is extended based on the second sample data, and the splitting features and splitting values of the extended nodes are determined until convergence.
[0121] Optionally, also include:
[0122] For each leaf node of the target decision tree, obtain a complete path from the root node to the leaf node;
[0123] The decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
[0124] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0125] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A decision tree generation method, the method comprising: Get the basic decision tree; The basic decision tree is generated based on the first type of sample data in the first scenario related to the asset transfer business, and is used for cash-out determination or money laundering determination for the asset transfer business in the first scenario; Alternatively, the basic decision tree is generated based on a first type of sample data in a first scenario related to an account usage service, and is used for determining abnormal accounts for the account usage service in the first scenario; Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values; The second type of sample data in the second scenario is used to train the missing split values of the tree skeleton to obtain a target decision tree; the second scenario is a scenario related to the asset transfer business, and the target decision tree is used for cash-out determination or money laundering determination for the asset transfer business in the second scenario; or, the second scenario is a scenario related to the account use business, and the target decision tree is used for abnormal account determination for the account use business in the second scenario; The amount of the first type of sample data in the first scenario is greater than the amount of the second type of sample data in the second scenario.
2. According to the method of claim 1, extracting the tree skeleton of the basic decision tree comprises: Nodes with a depth less than or equal to a specified depth and bifurcated paths between the nodes are extracted downward from the root node of the basic decision tree, wherein the specified depth is less than the depth of the basic decision tree.
3. According to the method of claim 1, extracting the tree skeleton of the basic decision tree comprises: All nodes of the basic decision tree and the bifurcated paths between all the nodes are extracted downward from the root node of the basic decision tree.
4. The method according to claim 2 or 3, further comprising: After the splitting values missing from the tree skeleton are obtained by training with the second type of sample data, the tree skeleton is extended based on the second type of sample data, and the splitting features and splitting values of the extended nodes are determined until convergence.
5. The method according to claim 1, further comprising: For each leaf node of the target decision tree, obtain a complete path from the root node to the leaf node; The decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
6. A decision tree generation device, comprising: A basic acquisition unit, which acquires a basic decision tree; The basic decision tree is generated based on the first type of sample data in the first scenario related to the asset transfer business, and is used for cash-out determination or money laundering determination for the asset transfer business in the first scenario; Alternatively, the basic decision tree is generated based on a first type of sample data in a first scenario related to an account usage service, and is used for determining abnormal accounts for the account usage service in the first scenario; A skeleton extraction unit extracts a tree skeleton of the basic decision tree, wherein the tree skeleton includes split features of nodes and does not include split values or includes part of the split values; A target training unit, using the second type of sample data in the second scene to train the missing split values of the tree skeleton to obtain a target decision tree; The second scenario is a scenario related to an asset transfer business, and the target decision tree is used for cash-out determination or money laundering determination for the asset transfer business in the second scenario; or, the second scenario is a scenario related to an account use business, and the target decision tree is used for abnormal account determination for the account use business in the second scenario; The amount of the first type of sample data in the first scenario is greater than the amount of the second type of sample data in the second scenario.
7. The device according to claim 6, The skeleton extraction unit extracts nodes less than or equal to a specified depth and bifurcation paths between the nodes starting from the root node of the basic decision tree downward, wherein the specified depth is less than the depth of the basic decision tree.
8. The device according to claim 6, The skeleton extraction unit extracts all nodes of the basic decision tree and the bifurcation paths between all the nodes starting from the root node of the basic decision tree downwards.
9. The device according to claim 7 or 8, After obtaining the splitting values missing from the tree skeleton through training with the second type of sample data, the target training unit extends the tree skeleton based on the second type of sample data and determines the splitting features and splitting values of the extended nodes until convergence.
10. The apparatus according to claim 6, further comprising: A rule generating unit, for each leaf node of the target decision tree, obtains a complete path from a root node to the leaf node; The decision rules corresponding to the target decision tree are generated according to the splitting features and splitting values of the nodes on the complete path.
11. A decision tree generation device, the device comprising: processor; memory for storing machine-executable instructions; Wherein, by reading and executing the machine executable instructions corresponding to the decision tree generation logic stored in the memory, the processor is prompted to: Obtaining a basic decision tree; the basic decision tree is generated based on the first type of sample data in the first scenario related to the asset transfer business, and is used for cash-out determination or money laundering determination for the asset transfer business in the first scenario; or the basic decision tree is generated based on the first type of sample data in the first scenario related to the account use business, and is used for abnormal account determination for the account use business in the first scenario; Extracting a tree skeleton of the basic decision tree, wherein the tree skeleton includes splitting features of nodes and does not include splitting values or includes part of the splitting values; The second type of sample data in the second scenario is used to train the missing split values of the tree skeleton to obtain a target decision tree; the second scenario is a scenario related to the asset transfer business, and the target decision tree is used for cash-out determination or money laundering determination for the asset transfer business in the second scenario; or, the second scenario is a scenario related to the account use business, and the target decision tree is used for abnormal account determination for the account use business in the second scenario; The amount of the first type of sample data in the first scenario is greater than the amount of the second type of sample data in the second scenario.
