WO2019001359A1 - 数据处理方法和数据处理装置 - Google Patents
数据处理方法和数据处理装置 Download PDFInfo
- Publication number
- WO2019001359A1 WO2019001359A1 PCT/CN2018/092390 CN2018092390W WO2019001359A1 WO 2019001359 A1 WO2019001359 A1 WO 2019001359A1 CN 2018092390 W CN2018092390 W CN 2018092390W WO 2019001359 A1 WO2019001359 A1 WO 2019001359A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- incremental
- decision tree
- model
- data
- data processing
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N20/00—Machine learning
- G06N20/20—Ensemble learning
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9535—Search customisation based on user profiles and personalisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/217—Validation; Performance evaluation; Active pattern learning techniques
- G06F18/2193—Validation; Performance evaluation; Active pattern learning techniques based on specific statistical tests
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/24—Classification techniques
- G06F18/243—Classification techniques relating to the number of classes
- G06F18/24323—Tree-organised classifiers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
Definitions
- the invention belongs to the field of data processing, and in particular relates to a data processing method and a data processing device.
- the random forest classification model is one of the more commonly used classification models.
- the classification model consists of multiple decision trees. When the samples to be classified enter the random forest, the multiple decision trees are classified, and finally the selection times of all decision trees are selected. The most categories are the final classification results.
- the offline machine learning process is usually used to construct the classification model. Through the learning, analysis and training of the full amount of user behavior data, the knowledge about the classification is obtained, thereby completing the construction of the classification model and deploying the online. Over time, the classification models deployed on-line will generally degrade and the accuracy of their classification may not be sufficient.
- the embodiment of the present invention provides a data processing method and a data processing apparatus to solve the problem that the existing prediction models are all offline prediction modes, and adaptive update cannot be implemented.
- an embodiment of the present invention provides a data processing method, where the data processing method includes generating at least one incremental decision tree according to incremental data; and based on a plurality of model decision trees and at least one incremental decision tree pair in the classification model The incremental data is predicted and the predicted result is obtained; the classification model is updated according to the predicted result.
- generating at least one incremental decision tree according to the incremental data comprising: extracting a plurality of sample sets based on the incremental data; generating at least one incremental decision tree based on the plurality of sample sets, wherein The number of decision trees is determined based on the number of model decision trees.
- the classification model is updated according to the prediction result, including obtaining comprehensive performance of at least one incremental decision tree and multiple model decision trees according to the prediction result; and integrating based on the incremental decision tree and the model decision tree Performance, selecting a predetermined number of decision trees from a plurality of model decision trees and at least one incremental decision tree as a model decision tree in the updated classification model.
- the predetermined number is equal to the number of plurality of model decision trees.
- the comprehensive performance of the at least one incremental decision tree and the plurality of model decision trees is obtained according to the prediction result, including establishing time and incrementing based on the at least one incremental decision tree and the plurality of model decision trees.
- the prediction accuracy of the data determines the overall performance.
- the incremental data is predicted based on the plurality of model decision trees and the at least one incremental decision tree in the classification model, including multiple model decision trees and at least one incremental decision tree based on the classification model Label prediction for incremental data.
- the method further includes determining, according to a result of the label prediction, a prediction accuracy of the plurality of model decision trees and the at least one incremental decision tree on the incremental data; and the plurality of model decision trees and the at least one incremental decision
- the establishment time of the tree is used as the weight for determining the comprehensive performance, and the prediction accuracy of the incremental data is sorted.
- the weight of the decision tree with long establishment time is smaller than the weight of the decision tree with short establishment time.
- the number of incremental decision trees is determined based on the number of model decision trees.
- the number of incremental decision trees is equal to 10% to 30% of the number of model decision trees.
- the method further includes: acquiring incremental data in a predetermined time period, and determining, according to whether a classification model exists, determining a quantity of generating at least one incremental decision tree; wherein, if there is a classification model, generating according to the incremental data At least one incremental decision tree.
- the method further includes: if there is no classification model, creating a classification model including a plurality of model decision trees according to the historical data, wherein the historical data is classified data.
- the data processing method includes acquiring incremental data within a predetermined time period, and determining a number of generated decision trees based on whether a classification model exists; and if there is a classification model, generating an increment according to the incremental data Decision tree, and based on the incremental decision tree and the model decision tree and the incremental decision tree in the classification model, the incremental data is tagged, wherein the number of incremental decision trees is determined based on the number of model decision trees before the update.
- an embodiment of the present invention further provides a data processing apparatus, where the data processing apparatus includes an incremental decision tree generating module, configured to generate at least one incremental decision tree according to the incremental data, and a prediction module, configured to be based on the classification model The plurality of model decision trees and the at least one incremental decision tree predict the incremental data and obtain the predicted result; and the update module is configured to update the classification model according to the predicted result.
- the data processing apparatus includes an incremental decision tree generating module, configured to generate at least one incremental decision tree according to the incremental data, and a prediction module, configured to be based on the classification model The plurality of model decision trees and the at least one incremental decision tree predict the incremental data and obtain the predicted result; and the update module is configured to update the classification model according to the predicted result.
- the incremental decision tree generating module includes a sampling unit configured to extract a plurality of sample sets based on the incremental data, and a generating unit configured to generate at least one incremental decision based on the plurality of sample sets A tree, wherein the number of at least one incremental decision tree is determined based on the number of multiple model decision trees.
- the update module includes an integrated performance determining unit, configured to obtain a comprehensive performance of the at least one incremental decision tree and the plurality of model decision trees according to the prediction result; and the updating unit is configured to perform the at least one incremental decision
- the comprehensive performance of the tree and the plurality of model decision trees selects a predetermined number of decision trees from the plurality of model decision trees and the at least one incremental decision tree as the model decision tree in the updated classification model.
- the data processing apparatus includes: an incremental data input unit configured to acquire incremental data within a predetermined time period; and a determining unit configured to generate a representation of the existing classification model according to whether a classification model exists a first signal and a second signal characterizing the absence of the classification model; the decision tree generation unit configured to generate an incremental decision tree based on the incremental data based on the first signal of the response; the label prediction unit configured to be in accordance with the classification model a model decision tree and an incremental decision tree for tag prediction of incremental data; a decision tree selection unit configured to select a predetermined performance based on a comprehensive performance of each of the decision trees in the model decision tree and the incremental decision tree A number of decision trees; a model update unit configured to use the selected predetermined number of decision trees as model decision trees in the updated classification model.
- the predetermined number in the update unit is equal to the number of the plurality of model decision trees.
- the comprehensive performance determining unit is further configured to determine the comprehensive performance based on the setup time of the at least one incremental decision tree and the plurality of model decision trees and the prediction accuracy rate for the incremental data.
- the prediction module is configured to perform tag prediction on the incremental data based on the plurality of model decision trees and the at least one incremental decision tree in the classification model.
- the prediction module is further configured to determine, according to a result of the label prediction, a prediction accuracy of the plurality of model decision trees and the at least one incremental decision tree on the incremental data; and the plurality of model decision trees and at least one The establishment time of the incremental decision tree is used as the weight for determining the comprehensive performance, and the prediction accuracy of the incremental data is sorted.
- the weight of the decision tree with long establishment time is smaller than the weight of the decision tree with short establishment time.
- the number of at least one incremental decision tree in the incremental decision tree generation module is determined according to the number of the plurality of model decision trees.
- the number of at least one incremental decision tree in the incremental decision tree generation module is equal to 10% to 30% of the number of the plurality of model decision trees.
- the incremental decision tree generating module is further configured to acquire incremental data within a predetermined time period, and determine, according to whether a classification model exists, determine the number of generated at least one incremental decision tree; wherein, if there is a classification The model generates at least one incremental decision tree based on the incremental data.
- the incremental decision tree generating module is further configured to: if there is no classification model, create a classification model including a plurality of model decision trees according to the historical data, wherein the historical data is classified data.
- the embodiment of the present invention further provides a computer storage medium, where the data processing program is stored, and the data processing program is executed by the processor to implement data processing mentioned in any of the above embodiments. The operation of the method.
- the data processing method provided by the embodiment of the invention updates the classification model by using the incremental data, so that the classification model can make corresponding adjustments according to the changes of the sample data in a timely or near real-time manner, and realizes the classification model and the latest sample data. Synchronize. That is to say, the data processing method provided by the embodiment of the present invention can perform adaptive update based on the currently newly obtained data, thereby adapting to the new trend change of the data, thereby ensuring the accuracy of the prediction.
- the embodiment of the present invention achieves the purpose of eliminating the need for manual intervention in the service cycle of the model, and greatly saves the cost, so that the data processing method provided by the embodiment of the present invention is intelligent and efficient. specialty.
- FIG. 1 is a schematic flowchart diagram of a data processing method according to an embodiment of the present invention.
- FIG. 2 is a schematic flowchart of generating at least one incremental decision tree operation according to incremental data according to a data processing method according to an embodiment of the present invention.
- FIG. 3 is a schematic flowchart diagram of an update operation of a classification model according to a prediction result according to a data processing method according to an embodiment of the present invention.
- FIG. 4 is a schematic flowchart diagram of a data processing method according to another embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of an incremental decision tree generating module of a data processing apparatus according to an embodiment of the present invention.
- FIG. 7 is a schematic structural diagram of an update module of a data processing apparatus according to an embodiment of the present invention.
- FIG. 8 is a schematic structural diagram of a data processing apparatus according to another embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of a decision tree selection unit of a data processing apparatus according to an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the embodiment of the present invention proposes a technical solution for generating an incremental decision tree based on incremental data and then updating the classification model.
- the incremental data can be from financial product information transmitted via a network, such as price, transaction amount, transaction volume, and the like.
- the random forest classification model is a classifier containing multiple decision trees, and the output classification result is determined by the total number of classification results output by a single decision tree.
- the basic idea of random forest classification is to randomly extract N sample sets from the original sample set, and the sample size of each sample set is the same as the original sample set; N is established for each N sample set.
- Decision trees each decision tree has a vote option to select the classification results, and obtain N classification results; each sample is voted according to the N classification results to determine its final classification.
- the process of random forest generation is the process of training each decision tree.
- the process of training each decision tree includes the following: (1) randomly selecting M samples with a return, and training a decision tree with the M samples; (2) each sample has multiple attributes in the decision tree When a split node is needed, m attributes are randomly selected from the plurality of attributes, and then a specific attribute is selected from the m attributes to select the best attribute as the split attribute of the current node; (3) each node of the decision tree The splits are carried out according to (2) until they cannot be split.
- the classification model deployed on the line that is, the classification model consisting of a predetermined number of model decision trees
- the classification model deployed on the line can be used to perform category prediction by scoring, and the category with the highest score will be used. (Select the largest number of decision trees in this category) as the forecast category, and based on the forecast category, carry out pre-set business applications, such as determining the price rise and fall by category.
- FIG. 1 is a schematic flowchart diagram of a data processing method according to an embodiment of the present invention.
- the method of Figure 1 is performed by a server or computing device.
- the data processing method provided by the embodiment of the present invention includes the following content.
- incremental data refers to new data acquired over a certain period of time (eg, 10 minutes, 1 hour, or 1 day) from a data storage device or server.
- An incremental decision tree is a tree structure in which each internal node of an incremental decision tree represents an attribute test, each branch represents a test output, and each leaf node represents a category.
- model decision tree is also a tree structure in which each internal node of the model decision tree represents an attribute test, each branch represents a test output, and each leaf node represents a category.
- the prediction operation of the incremental data is performed by means of a label prediction method.
- the incremental data is subjected to back-sampling, a certain number of sample sets are extracted, and then a corresponding number of incremental decision trees are generated based on the extracted sample sets, and finally, the incremental data is subjected to label prediction operations based on the generated incremental decision trees.
- the prediction results should be able to reflect the overall performance of the incremental decision tree, especially for the prediction accuracy of incremental data.
- the incremental decision tree is first generated based on the incremental data, and then the incremental data is predicted based on the model decision tree and the incremental decision tree to obtain the prediction result. Finally, the model decision tree in the classification model is based on the prediction result. Perform an update operation.
- the update operation refers to selecting an incremental decision tree with better comprehensive performance to replace the model decision tree with poor comprehensive performance in the pre-update classification model.
- the data processing method provided by the embodiment of the present invention generates an incremental decision tree by using incremental data, and then predicts the incremental data based on the model decision tree and the incremental decision tree in the classification model, and updates the classification model according to the prediction result. In this way, the adaptive update of the classification model is realized, and the purpose of no manual intervention is needed in the business cycle of the model, which greatly saves the cost.
- FIG. 2 is a schematic flowchart of generating at least one incremental decision tree operation according to incremental data according to a data processing method according to an embodiment of the present invention.
- generating at least one incremental decision tree (11) according to the incremental data includes:
- the data processing method provided by the embodiment of the present invention generates an incremental decision tree by adopting a method of extracting multiple sample sets in a reversible manner, so that each node of the incremental decision tree is selected from the characteristics of the sample set.
- the purpose is to provide a prerequisite for the final improvement of the prediction accuracy of the classification model.
- FIG. 3 is a schematic flowchart diagram of an update operation of a classification model according to a prediction result according to a data processing method according to an embodiment of the present invention.
- the classification model is updated according to the prediction result (13), including:
- evaluation parameters in the comprehensive performance may be set according to actual conditions, including but not limited to evaluation parameters such as establishment time, prediction accuracy, and the like.
- the data processing method provided by the embodiment of the present invention selectively updates the model decision tree in the pre-update classification model according to the comprehensive performance of each decision tree, and replaces the update with a comprehensive decision tree with better comprehensive performance.
- the model decision tree in the former classification model which ultimately achieves accurate prediction of the updated classification model.
- FIG. 4 is a schematic flowchart diagram of a data processing method according to another embodiment of the present invention. As shown in FIG. 4, the data processing method provided by the embodiment of the present invention includes the following content.
- acquiring incremental data refers to acquiring incremental data for a predetermined period of time from a financial transaction server or a particular storage device.
- the predetermined time period refers to a time period before the current time, and the length of the predetermined time period may be set according to specific requirements, as long as the user behavior data in the predetermined time period is already in an available state and already contains the actual
- the category label information can be.
- the length of the predetermined time period may be in days, in hours, or in minutes.
- a financial product (such as stock) transaction is taken as an example for description.
- the label of the data may be rising, falling, and flat, that is, the predetermined time period is a time period within 5 minutes before the current time.
- the tags of the data may have many other forms.
- Scenario 1 There is a classification model.
- c represents the actual category of the sample.
- a classification model is used to classify and predict the trend of stock prices, and the attributes of each sample may selectively include specific attributes such as stock name, price, and transaction volume.
- K may be set according to the actual situation, so as to fully improve the adaptability and application of the data processing method provided by the embodiment of the present invention, which is not limited by the embodiment of the present invention.
- each sample set grows into a corresponding delta decision tree, ie each node of the tree is a feature selected from the sample set.
- the model decision tree (assumed T) and the K incremental decision trees in the classification model are used for label prediction (ie, classification prediction), and the unclassified incremental data is classified.
- label prediction ie, classification prediction
- the unclassified incremental data is classified.
- T+K decision trees for tag prediction of incremental data. Because the total number of decision trees participating in the prediction increases and the K incremental decision trees often represent new trend changes, the use of T+K decision trees is beneficial to improve the accuracy of classification model prediction.
- the value range of the setting K is 0.1T to 0.3T.
- T, K are only used to characterize the model decision tree in the classification model and the number of incremental decision trees generated from the incremental data, and are not intended to limit T, K to a specific value, such as greater than or An integer equal to 1.
- the prediction result is first obtained based on the label prediction operation performed in 45, and then the prediction result is compared with the real result, thereby obtaining the current accuracy of each decision tree, that is, the prediction accuracy for the incremental data. rate. Accordingly, the settling time of each decision tree can also be obtained, that is, the time that each decision tree already exists.
- the comprehensive performance a * setup time + b * prediction accuracy, wherein a, b are the weights of the setup time and the prediction accuracy, respectively, and the values of a and b can be adjusted according to actual conditions.
- the generation time of the decision tree also affects the comprehensive performance, that is, the weight of the decision tree closest to the current time is greater than the weight of the decision tree that is longer than the current time.
- the values of a and b it is possible to make the decision tree with shorter settling time better than the decision with longer settling time when the prediction accuracy of the two decision trees is the same.
- the overall performance of the tree is configured.
- the setup time is introduced as a weight that affects the overall performance of the decision tree.
- the two decision trees are further determined according to the establishment time of the two decision trees.
- the comprehensive performance that is, due to the short setup time of decision tree 4, results in the conclusion that the overall performance of decision tree 4 is better than the comprehensive performance of decision tree 5.
- a predetermined number of decision trees are selected as the model decision tree of the updated classification model, wherein the comprehensive performance ranking of each decision tree is based on the label prediction of the incremental data by each decision tree.
- the result is. Specifically, the decision tree is sorted based on the comprehensive performance of the decision tree to obtain a decision tree sequence sorted according to the comprehensive performance shown in Table 1, and a decision tree with excellent comprehensive performance is selected according to the sort result. It can be seen from the foregoing that when considering the weight of the setup time, the overall performance of the decision tree 4 will be better than the comprehensive performance of the decision tree 5, so if four decision trees are required to discard one decision tree, the decision tree 5 will be discarded.
- the decision trees 1 to 4 will be selected as the model decision tree of the classification model, and the updated classification model will be used to predict the subsequent incremental data.
- the data processing method provided by the embodiment of the present invention can implement the update operation of the classification model under the premise of ensuring the prediction accuracy of the classification model.
- the number K of incremental decision trees is determined based on the number T of model decision trees in the classification model.
- the number K of incremental decision trees ranges from 10% to 30% of the number T of model decision trees in the classification model. Further, the specific value of K can be randomly determined between 10% and 30% of T according to the user's instruction or application scenario, so that the number T of model decision trees in the classification model can also produce corresponding changes. It should be understood that the limitation of the number of incremental decision trees in the embodiment of the present invention achieves the purpose of not affecting the stability of the classification model in the case of updating the classification model.
- the number of selected predetermined number of decision trees is equal to the number of original model decision trees in the classification model, that is, the number of model decision trees in the classification model is always kept as T, and discarded.
- the number of decision trees is equal to the number of incremental decision trees.
- the incremental data is subjected to label prediction using T+K (ie, 240) decision trees, and then the comprehensive performance of the decision tree is sorted based on the prediction result.
- T+K ie, 240
- 190, 200 or 210 decision trees can be selected from the 240 decision trees as the model decision tree of the classification model, thereby completing the updating of the classification model.
- K may be any one of 0.1T to 0.3T or a user-specified number when updating with the classification model next time.
- Scenario 2 There is no classification model.
- a model decision tree is generated based on the historical data, for example, the historical data is sampled to form T sample sets, and then based on the T The sample set generates T model decision trees. It can be understood that historical data is classified data.
- the embodiment of the present invention does not adopt a traditional offline calculation method for reconstructing a classification model based on full-quantity data, but uses incremental data to update the classification model, so that the classification model can be made according to the change of the sample data in a timely or near real-time manner. Corresponding adjustments enable synchronization of the classification model with the latest sample data.
- the embodiment of the present invention achieves the purpose of eliminating the need for manual intervention in the service cycle of the model, and greatly saves the cost, so that the data processing method provided by the embodiment of the present invention is intelligent and efficient. specialty.
- FIG. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the data processing apparatus provided by the embodiment of the present invention includes:
- the incremental decision tree generating module 51 is configured to generate at least one incremental decision tree according to the incremental data.
- the prediction module 52 is configured to predict the incremental data based on the plurality of model decision trees and the at least one incremental decision tree in the classification model to obtain the prediction result.
- the updating module 53 is configured to update the classification model according to the prediction result.
- the prediction module 52 is configured to perform label prediction on the incremental data based on the plurality of model decision trees and the at least one incremental decision tree in the classification model.
- the prediction module 52 is further configured to determine, according to a result of the label prediction, a prediction accuracy of the plurality of model decision trees and the at least one incremental decision tree on the incremental data;
- the establishment time of at least one incremental decision tree is used as a weight for determining the comprehensive performance, and the prediction accuracy of the incremental data is ranked, wherein the weight of the decision tree with a long establishment time is smaller than the weight of the decision tree with a short establishment time.
- the number of at least one incremental decision tree in the incremental decision tree generation module 51 is determined according to the number of multiple model decision trees.
- the number of at least one incremental decision tree in the incremental decision tree generation module 51 is equal to 10% to 30% of the number of the plurality of model decision trees.
- the incremental decision tree generating module 51 is further configured to acquire incremental data within a predetermined time period, and determine, according to whether a classification model exists, the number of generated at least one incremental decision tree; There is a classification model that generates at least one incremental decision tree based on the incremental data.
- the incremental decision tree generating module 51 is further configured to create a classification model including a plurality of model decision trees according to historical data if there is no classification model, wherein the historical data is classified data.
- FIG. 6 is a schematic structural diagram of an incremental decision tree generating module of a data processing apparatus according to an embodiment of the present invention.
- the incremental decision tree generating module 51 of the data processing apparatus provided by the embodiment of the present invention includes:
- the sampling unit 61 is configured to extract a plurality of sample sets based on the incremental data.
- the generating unit 62 is configured to generate at least one incremental decision tree based on the plurality of sample sets, wherein the number of the at least one incremental decision tree is determined based on the number of the plurality of model decision trees.
- FIG. 7 is a schematic structural diagram of an update module of a data processing apparatus according to an embodiment of the present invention.
- the update module 53 of the data processing apparatus provided by the embodiment of the present invention includes:
- the comprehensive performance determining unit 71 is configured to obtain comprehensive performance of at least one incremental decision tree and multiple model decision trees according to the prediction result.
- the updating unit 72 is configured to select, according to the comprehensive performance of the at least one incremental decision tree and the plurality of model decision trees, a predetermined number of decision trees from the plurality of model decision trees and the at least one incremental decision tree as the updated classification model Model decision tree.
- the predetermined number in the update unit 72 is equal to the number of multiple model decision trees.
- the comprehensive performance determining unit 71 is further configured to determine the comprehensive performance based on the setup time of the at least one incremental decision tree and the plurality of model decision trees and the prediction accuracy rate for the incremental data.
- FIG. 8 is a schematic structural diagram of a data processing apparatus according to another embodiment of the present invention. As shown in FIG. 8, the data processing apparatus provided by the embodiment of the present invention includes:
- the incremental data input unit 81 is configured to acquire incremental data within a predetermined period of time.
- the determining unit 82 is configured to generate a first signal representing the presence of the classification model and a second signal characterizing the absence of the classification model according to whether there is a classification model.
- the decision tree generation unit 83 is configured to generate an incremental decision tree based on the incremental data based on the first signal.
- the tag prediction unit 84 is configured to perform tag prediction on the delta data according to the model decision tree and the delta decision tree in the classification model.
- the decision tree selection unit 85 is configured to select a predetermined number of decision trees based on the overall performance of the model decision trees in the classification model and the individual decision trees in the incremental decision tree.
- the model update unit 86 is configured to use the selected predetermined number of decision trees as a model decision tree in the updated classification model.
- the data processing apparatus provided by the embodiment of the present invention can predict the incremental data by using a classification model after acquiring the incremental data, and can also update the classification model based on the incremental data. That is to say, the data processing apparatus provided by the embodiment of the present invention implements adaptive updating of the classification model.
- the number of predetermined number of decision trees selected by decision tree selection unit 85 is equal to the number of original model decision trees in the classification model.
- the data processing apparatus further includes a historical data input unit 87 configured to acquire the classified historical data. Specifically, when the determination unit 82 does not find a classification model that can be used, the decision tree generation unit 83 generates a model decision tree based on the history data based on the second signal generated by the determination unit 82, thereby generating a classification model that can be used.
- FIG. 9 is a schematic structural diagram of a decision tree selection unit of a data processing apparatus according to an embodiment of the present invention.
- the decision tree selecting unit 85 includes an accuracy determining unit 91 and a decision tree comprehensive performance sorting unit 92, wherein the accuracy determining unit 91 is configured to be based on the label.
- the result of the prediction determines the prediction accuracy of each decision tree for incremental data
- the decision tree comprehensive performance ranking unit 92 is configured to sort based on the setup time of each decision tree and the prediction accuracy of the incremental data; wherein, the setup time
- the weight of a long decision tree is less than the weight of a decision tree with a short build time.
- the operations and functions of the integrated performance determining unit 71 and the updating unit 72 included in the update module 53 may refer to the data processing methods provided in the above-mentioned FIG. 1 to FIG. 4, and are not described herein again in order to avoid redundancy.
- FIG. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
- the electronic device provided in FIG. 10 is for performing the data processing method described in the embodiments of FIGS. 1 through 4.
- the electronic device includes a processor 101, a memory 102, and a bus 103.
- the processor 101 is configured to invoke, by using the bus 103, the code stored in the memory 102 to generate at least one incremental decision tree according to the incremental data; based on the plurality of model decision trees in the classification model and the at least one incremental decision tree pair increment
- the data is predicted and the predicted results are obtained; the classification model is updated based on the predicted results.
- the electronic device includes, but is not limited to, an electronic device such as a mobile phone or a tablet computer.
- a computer storage medium is further provided, where the data processing program is stored, and the data processing program is executed by the processor to implement the data processing mentioned in any of the above embodiments. The operation of the method.
- the computer readable medium is a CD-ROM, a floppy disk, a hard disk, a digital versatile disk (DVD), a Blu-ray disk or other form of memory.
- some or all of the example methods of FIGS. 1-4 may utilize an application specific integrated circuit (ASIC), a programmable logic device (PLD), an on-site programmable logic device (EPLD), discrete logic, hardware, Any combination of firmware and the like is implemented.
- ASIC application specific integrated circuit
- PLD programmable logic device
- EPLD on-site programmable logic device
- FIGS. 1 to 4 describes the data processing method, the operations in the processing method may be modified, deleted, or merged.
- any of Figures 1 through 4 can be implemented with encoded instructions (such as computer readable instructions) stored on a tangible computer readable medium, such as a hard disk, flash memory, read only memory (ROM) ), a compact disc (CD), a digital versatile disc (DVD), a cache, a random access memory (RAM), and/or any other storage medium on which information can be stored for any time (eg, for a long time, permanently , short-lived situations, temporary buffering, and/or caching of information).
- a tangible computer readable medium is expressly defined to include any type of computer readable stored signal. Additionally or alternatively, the example process of FIG.
- 1 may be implemented with encoded instructions (such as computer readable instructions) stored on a non-transitory computer readable medium such as a hard disk, flash memory, read only memory, optical disk, digital general purpose An optical disc, a cache, a random access memory, and/or any other storage medium in which information can be stored at any time (eg, for a long time, permanently, transiently, temporarily buffered, and/or cached of information).
- a non-transitory computer readable medium such as a hard disk, flash memory, read only memory, optical disk, digital general purpose An optical disc, a cache, a random access memory, and/or any other storage medium in which information can be stored at any time (eg, for a long time, permanently, transiently, temporarily buffered, and/or cached of information).
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Evolutionary Computation (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Mathematical Physics (AREA)
- Computing Systems (AREA)
- Medical Informatics (AREA)
- Development Economics (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Probability & Statistics with Applications (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
决策树ID | 预测准确率 | 建立时间(小时) | 综合性能排序 |
3 | 90% | 5 | 1 |
1 | 85% | 5 | 2 |
2 | 83% | 8 | 3 |
4 | 80% | 8 | 4 |
5 | 80% | 9 | 5 |
Claims (23)
- 一种数据处理方法,其特征在于,包括:根据增量数据生成至少一个增量决策树;基于分类模型中的多个模型决策树和所述至少一个增量决策树对所述增量数据进行预测,获得预测结果;根据所述预测结果对所述分类模型进行更新。
- 如权利要求1所述的数据处理方法,其特征在于,所述根据增量数据生成至少一个增量决策树,包括:基于所述增量数据有放回地抽取多个样本集;基于所述多个样本集生成至少一个增量决策树,其中所述至少一个增量决策树的数量基于所述多个模型决策树的数量来确定。
- 如权利要求1或2所述的数据处理方法,其特征在于,所述根据所述预测结果对所述分类模型进行更新,包括:根据所述预测结果得出所述至少一个增量决策树和所述多个模型决策树的综合性能;基于所述至少一个增量决策树和所述多个模型决策树的综合性能,从所述多个模型决策树和所述至少一个增量决策树中选取预定数量的决策树来作为更新后分类模型中的模型决策树。
- 如权利要求3所述的数据处理方法,其特征在于,所述预定数量等于所述多个模型决策树的数量。
- 如权利要求3或4所述的数据处理方法,其特征在于,所述根据所述预测结果得出所述至少一个增量决策树和所述多个模型决策树的综合性能,包括:基于所述至少一个增量决策树和所述多个模型决策树的建立时间和针对所述增量数据的预测准确率来确定所述综合性能。
- 如权利要求1至5任一所述的数据处理方法,其特征在于,所述基于分类模型中的多个模型决策树和所述至少一个增量决策树对所述增量数据进行预测,包括:基于分类模型中的多个模型决策树和所述至少一个增量决策树对所述增量数据进行标签预测。
- 如权利要求6所述的数据处理方法,其特征在于,还包括:根据所述标签预测的结果来确定所述多个模型决策树和所述至少一个 增量决策树对所述增量数据的预测准确率;将所述多个模型决策树和所述至少一个增量决策树的建立时间作为确定所述综合性能的权重,并对所述增量数据的预测准确率进行排序,其中建立时间长的决策树的权重小于建立时间短的决策树的权重。
- 如权利要求1至7任一所述的数据处理方法,其特征在于,所述至少一个增量决策树的数量根据所述多个模型决策树的数量确定。
- 如权利要求8所述的数据处理方法,其特征在于,所述至少一个增量决策树的数量等于所述多个模型决策树的数量的10%至30%。
- 如权利要求1至9任一所述的数据处理方法,其特征在于,还包括:获取预定时间段内的所述增量数据,并基于是否存在所述分类模型来确定生成所述至少一个增量决策树的数量;其中,若存在所述分类模型,根据所述增量数据生成所述至少一个增量决策树。
- 如权利要求10所述的数据处理方法,其特征在于,还包括:若不存在所述分类模型,根据历史数据创建包括所述多个模型决策树的所述分类模型,其中,所述历史数据是已分类的数据。
- 一种数据处理装置,其特征在于,包括:增量决策树生成模块,用于根据增量数据生成至少一个增量决策树;预测模块,用于基于分类模型中的多个模型决策树和所述至少一个增量决策树对所述增量数据进行预测,获得预测结果;更新模块,用于根据所述预测结果对所述分类模型进行更新。
- 如权利要求12所述的数据处理装置,其特征在于,所述增量决策树生成模块包括:抽样单元,用于基于所述增量数据有放回地抽取多个样本集;生成单元,用于基于所述多个样本集生成至少一个增量决策树,其中所述至少一个增量决策树的数量基于所述多个模型决策树的数量来确定。
- 如权利要求12或13所述的数据处理装置,其特征在于,所述更新模块包括:综合性能判定单元,用于根据所述预测结果得出所述至少一个增量决策树和所述多个模型决策树的综合性能;更新单元,用于基于所述至少一个增量决策树和所述多个模型决策树的综合性能,从所述多个模型决策树和所述至少一个增量决策树中选取预 定数量的决策树来作为更新后分类模型中的模型决策树。
- 如权利要求14所述的数据处理装置,其特征在于,所述更新单元中的预定数量等于所述多个模型决策树的数量。
- 如权利要求14或15所述的数据处理装置,其特征在于,所述综合性能判定单元用于基于所述至少一个增量决策树和所述多个模型决策树的建立时间和针对所述增量数据的预测准确率来确定所述综合性能。
- 如权利要求12至16任一所述的数据处理装置,其特征在于,所述预测模块用于基于分类模型中的多个模型决策树和所述至少一个增量决策树对所述增量数据进行标签预测。
- 如权利要求17所述的数据处理装置,其特征在于,所述预测模块还用于根据所述标签预测的结果来确定所述多个模型决策树和所述至少一个增量决策树对所述增量数据的预测准确率;将所述多个模型决策树和所述至少一个增量决策树的建立时间作为确定所述综合性能的权重,并对所述增量数据的预测准确率进行排序,其中建立时间长的决策树的权重小于建立时间短的决策树的权重。
- 如权利要求12至18任一所述的数据处理装置,其特征在于,所述增量决策树生成模块中的所述至少一个增量决策树的数量根据所述多个模型决策树的数量确定。
- 如权利要求19所述的数据处理装置,其特征在于,所述增量决策树生成模块中的至少一个增量决策树的数量等于所述多个模型决策树的数量的10%至30%。
- 如权利要求12至20任一所述的数据处理装置,其特征在于,所述增量决策树生成模块还用于获取预定时间段内的所述增量数据,并基于是否存在所述分类模型来确定生成所述至少一个增量决策树的数量;其中,若存在所述分类模型,根据所述增量数据生成所述至少一个增量决策树。
- 如权利要求21所述的数据处理装置,其特征在于,所述增量决策树生成模块还用于若不存在所述分类模型,根据历史数据创建包括所述多个模型决策树的所述分类模型,其中,所述历史数据是已分类的数据。
- 一种计算机存储介质,其特征在于,所述计算机可读存储介质上存储有数据处理程序,所述数据处理程序被处理器执行时实现如权利要求1至11中任一项所述的数据处理方法的操作。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020197013526A KR20190075962A (ko) | 2017-06-30 | 2018-06-22 | 데이터 처리 방법과 데이터 처리 장치 |
US16/362,186 US20190220710A1 (en) | 2017-06-30 | 2019-03-22 | Data processing method and data processing device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710523102.5 | 2017-06-30 | ||
CN201710523102.5A CN107330464A (zh) | 2017-06-30 | 2017-06-30 | 数据处理方法和装置 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US16/362,186 Continuation US20190220710A1 (en) | 2017-06-30 | 2019-03-22 | Data processing method and data processing device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019001359A1 true WO2019001359A1 (zh) | 2019-01-03 |
Family
ID=60199340
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/092390 WO2019001359A1 (zh) | 2017-06-30 | 2018-06-22 | 数据处理方法和数据处理装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US20190220710A1 (zh) |
KR (1) | KR20190075962A (zh) |
CN (1) | CN107330464A (zh) |
WO (1) | WO2019001359A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115470397A (zh) * | 2021-06-10 | 2022-12-13 | 腾讯科技(深圳)有限公司 | 内容推荐方法、装置、计算机设备和存储介质 |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107330464A (zh) * | 2017-06-30 | 2017-11-07 | 众安信息技术服务有限公司 | 数据处理方法和装置 |
CN108509727B (zh) * | 2018-03-30 | 2022-04-08 | 深圳市智物联网络有限公司 | 数据建模中的模型选择处理方法及装置 |
CN110196792B (zh) * | 2018-08-07 | 2022-06-14 | 腾讯科技(深圳)有限公司 | 故障预测方法、装置、计算设备及存储介质 |
CN110033098A (zh) * | 2019-03-28 | 2019-07-19 | 阿里巴巴集团控股有限公司 | 在线gbdt模型学习方法及装置 |
CN110942338A (zh) * | 2019-11-01 | 2020-03-31 | 支付宝(杭州)信息技术有限公司 | 一种营销赋能策略的推荐方法、装置和电子设备 |
CN111008119A (zh) * | 2019-12-13 | 2020-04-14 | 浪潮电子信息产业股份有限公司 | 一种硬盘预测模型的更新方法、装置、设备及介质 |
CN111523908B (zh) * | 2020-03-31 | 2023-04-07 | 云南省烟草质量监督检测站 | 一种鉴别卷烟真伪的包装机型溯源方法、装置及系统 |
CN112395371B (zh) * | 2020-12-10 | 2024-05-28 | 深圳迅策科技有限公司 | 一种金融机构资产分类处理方法、装置及可读介质 |
CN116662815B (zh) * | 2023-07-28 | 2023-11-10 | 腾讯科技(深圳)有限公司 | 时间预测模型的训练方法以及相关设备 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140172754A1 (en) * | 2012-12-14 | 2014-06-19 | International Business Machines Corporation | Semi-supervised data integration model for named entity classification |
CN105718490A (zh) * | 2014-12-04 | 2016-06-29 | 阿里巴巴集团控股有限公司 | 一种用于更新分类模型的方法及装置 |
CN106156809A (zh) * | 2015-04-24 | 2016-11-23 | 阿里巴巴集团控股有限公司 | 用于更新分类模型的方法及装置 |
US20160342755A1 (en) * | 2013-06-20 | 2016-11-24 | Microsoft Technology Licensing, Llc | User Behavior Monitoring On A Computerized Device |
CN106446964A (zh) * | 2016-10-21 | 2017-02-22 | 河南大学 | 一种增量式的梯度提升决策树更新方法 |
CN107330464A (zh) * | 2017-06-30 | 2017-11-07 | 众安信息技术服务有限公司 | 数据处理方法和装置 |
-
2017
- 2017-06-30 CN CN201710523102.5A patent/CN107330464A/zh active Pending
-
2018
- 2018-06-22 WO PCT/CN2018/092390 patent/WO2019001359A1/zh active Application Filing
- 2018-06-22 KR KR1020197013526A patent/KR20190075962A/ko not_active Application Discontinuation
-
2019
- 2019-03-22 US US16/362,186 patent/US20190220710A1/en not_active Abandoned
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140172754A1 (en) * | 2012-12-14 | 2014-06-19 | International Business Machines Corporation | Semi-supervised data integration model for named entity classification |
US20160342755A1 (en) * | 2013-06-20 | 2016-11-24 | Microsoft Technology Licensing, Llc | User Behavior Monitoring On A Computerized Device |
CN105718490A (zh) * | 2014-12-04 | 2016-06-29 | 阿里巴巴集团控股有限公司 | 一种用于更新分类模型的方法及装置 |
CN106156809A (zh) * | 2015-04-24 | 2016-11-23 | 阿里巴巴集团控股有限公司 | 用于更新分类模型的方法及装置 |
CN106446964A (zh) * | 2016-10-21 | 2017-02-22 | 河南大学 | 一种增量式的梯度提升决策树更新方法 |
CN107330464A (zh) * | 2017-06-30 | 2017-11-07 | 众安信息技术服务有限公司 | 数据处理方法和装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115470397A (zh) * | 2021-06-10 | 2022-12-13 | 腾讯科技(深圳)有限公司 | 内容推荐方法、装置、计算机设备和存储介质 |
CN115470397B (zh) * | 2021-06-10 | 2024-04-05 | 腾讯科技(深圳)有限公司 | 内容推荐方法、装置、计算机设备和存储介质 |
Also Published As
Publication number | Publication date |
---|---|
US20190220710A1 (en) | 2019-07-18 |
CN107330464A (zh) | 2017-11-07 |
KR20190075962A (ko) | 2019-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019001359A1 (zh) | 数据处理方法和数据处理装置 | |
US11580104B2 (en) | Method, apparatus, device, and storage medium for intention recommendation | |
CN109816221B (zh) | 项目风险决策方法、装置、计算机设备和存储介质 | |
US9984336B2 (en) | Classification rule sets creation and application to decision making | |
CN107871166B (zh) | 针对机器学习的特征处理方法及特征处理系统 | |
CN107609185B (zh) | 用于poi的相似度计算的方法、装置、设备和计算机可读存储介质 | |
WO2019047790A1 (zh) | 生成机器学习样本的组合特征的方法及系统 | |
CN105718490A (zh) | 一种用于更新分类模型的方法及装置 | |
TW201947510A (zh) | 保險業務風險預測的處理方法、裝置及處理設備 | |
CN107291840B (zh) | 一种用户属性预测模型构建方法和装置 | |
WO2020253038A1 (zh) | 一种模型构建方法及装置 | |
CN111582341B (zh) | 用户异常操作预测方法及装置 | |
US20190163780A1 (en) | Generalized linear mixed models for improving search | |
CN112199374B (zh) | 针对数据缺失的数据特征挖掘方法及其相关设备 | |
CN111445139A (zh) | 业务流程模拟方法及装置、存储介质、电子设备 | |
CN108229572B (zh) | 一种参数寻优方法及计算设备 | |
CN109815475B (zh) | 文本匹配方法、装置、计算设备及系统 | |
CN110941952A (zh) | 一种完善审计分析模型的方法及装置 | |
WO2021129368A1 (zh) | 一种客户类型的确定方法及装置 | |
CN113934894A (zh) | 基于指标树的数据显示方法、终端设备 | |
CN113836244B (zh) | 样本获取方法、模型训练方法、关系预测方法及装置 | |
CN117131197B (zh) | 一种招标书的需求类别处理方法、装置、设备及存储介质 | |
US11897818B2 (en) | Machine learning concrete optimization | |
CN111539208B (zh) | 语句处理方法和装置、以及电子设备和可读存储介质 | |
CN111221938B (zh) | 一种预测结果生成方法、终端及存储介质 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18824400 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 20197013526 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2019547757 Country of ref document: JP Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03.06.2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18824400 Country of ref document: EP Kind code of ref document: A1 |