Data processing method and device
By collecting and filling the characteristic attributes of data processing samples, training classification models, and building task level models, the problem of low efficiency and accuracy of data processing task level division in the existing technology is solved, a reasonable processing strategy is realized, and the user experience is improved. .
Patent Information
- Application Number
- CN202010605126.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-29
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2040-06-29
AI Technical Summary
The existing hierarchical division of data processing tasks relies on experience, resulting in low efficiency and accuracy, affecting user experience.
By collecting data processing samples, judging and filling in missing values of feature attributes, training classification models to build task level models, determining the level of data processing tasks and formulating processing strategies.
It improves the efficiency and accuracy of hierarchical classification of data processing tasks, ensures the rationality of processing strategies, and thereby improves user experience.
Smart Images

Figure CN113760484B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for data processing. Background Art
[0002] As the scale of data warehouses grows, they need to run thousands of data processing tasks every day. How to reasonably classify these data processing tasks run by the data warehouse, distinguish which data processing tasks are important and which data processing tasks are secondary, and then adopt corresponding data processing solutions will directly affect the stability and credibility of warehouse data.
[0003] At present, the way to classify data processing tasks running in data warehouses is mainly that decision makers (humans) subjectively judge the importance of data processing tasks based on their own experience, and then classify the data processing tasks. Then, based on the manually determined levels of the data processing tasks, they determine the processing strategies for the data processing tasks.
[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0005] The existing method of grading data processing tasks mainly relies on experience, which leads to low efficiency and accuracy in determining the levels of data processing tasks, thus causing unreasonable processing strategies determined for data processing tasks and affecting user experience. Summary of the invention
[0006] In view of this, an embodiment of the present invention provides a data processing method and device, which can construct a task level model to effectively improve the efficiency and accuracy of level determination of data processing tasks, so that the processing strategy determined for the data processing task is more reasonable and the user experience is improved.
[0007] To achieve the above object, according to one aspect of an embodiment of the present invention, a data processing method is provided, comprising:
[0008] Collecting a plurality of data processing samples, the data processing samples having a plurality of characteristic attributes and corresponding levels, wherein the levels indicate processing priorities of the data processing samples;
[0009] For the data processing sample, determine whether the attribute value of each of the characteristic attributes is missing, and if so, fill in the corresponding attribute value for the characteristic attribute;
[0010] The classification model is trained using data processing samples with complete attribute values and corresponding levels to obtain a task level model;
[0011] The task grade model is used to determine the grade of the new data processing task, and the processing strategy of the new data processing task is determined according to the grade of the new data processing task.
[0012] Preferably, the data processing method further comprises: dividing the plurality of data processing samples into a complete data set and a missing data set, wherein the data processing samples divided into the complete data set have complete attribute values, and the data processing samples divided into the missing data set have missing attribute values;
[0013] For each characteristic attribute of each of the data processing samples in the missing data set, a step of determining whether an attribute value of the characteristic attribute is missing is performed.
[0014] Preferably, the data processing method further comprises:
[0015] Generating a code of a preset number of bits for the data processing sample according to the attribute values corresponding to the multiple characteristic attributes of the data processing sample;
[0016] According to the codes of the data processing samples, the complete data set is divided into at least one code set, wherein the codes corresponding to all data processing samples belonging to the same code set are equal;
[0017] The step of filling in the corresponding attribute value for the characteristic attribute comprises:
[0018] According to the codes corresponding to the data processing samples in the missing data set, matching the corresponding target code set for the data processing samples in the missing data set;
[0019] According to the attribute values of the data processing samples corresponding to the target coding set, the missing attribute values of the data processing samples in the missing data set are filled.
[0020] Preferably,
[0021] According to the attribute value of each of the characteristic attributes in the data processing sample, a first signature value of a preset number of bits is generated for each of the characteristic attributes, wherein each bit value in the first signature value is a value within a preset value range;
[0022] The code corresponding to the data processing sample is calculated according to the preset weight corresponding to the characteristic attribute and the first signature value corresponding to each of the characteristic attributes.
[0023] Preferably, the step of generating a code of a preset number of bits for the data processing sample comprises:
[0024] According to the attribute value of each of the characteristic attributes in the data processing sample, generating a signature value of a preset number of bits for each of the characteristic attributes;
[0025] According to a preset replacement strategy, numerically replace each bit value in the signature value;
[0026] The code corresponding to the data processing sample is calculated according to the result of replacing the preset weight corresponding to the feature attribute and the numerical value corresponding to each feature attribute.
[0027] Preferably, the replacement strategy includes:
[0028] Replaces the value zero with the first value and replaces non-zero values with the second value.
[0029] Preferably, before the step of using the data processing samples with complete attribute values and the corresponding grades to train the classification model, the method further comprises:
[0030] Calculating the information gain of each of the feature attributes based on the data processing samples processed with the attribute values;
[0031] Selecting a plurality of target feature attributes according to the information gain of each of the feature attributes;
[0032] The steps of training a classification model using data processing samples with complete attribute values and corresponding levels include:
[0033] The classification model is trained using data processing samples having complete attribute values of the target feature attributes.
[0034] Preferably, the step of calculating the information gain corresponding to each of the feature attributes includes:
[0035] For each of the characteristic attributes,
[0036] Calculating a first information entropy using the probabilities of attribute values corresponding to the characteristic attributes in the plurality of data processing samples;
[0037] Classifying the data processing samples according to the attribute values corresponding to the characteristic attributes;
[0038] Calculating a second information entropy based on the probability of each category in the classification result and the probability of the attribute value corresponding to the characteristic attribute;
[0039] The information gain corresponding to the feature attribute is calculated using the first information entropy and the second information entropy.
[0040] Preferably,
[0041] The multiple target characteristic attributes include: any two or three of the service duration for executing the data processing task, the number of recursive subtasks required for executing the data processing task, and the number of times the data processing task is used.
[0042] Preferably, the data processing method further comprises: setting a data processing sequence table, wherein the data processing sequence table is used to store data processing tasks in a processing order;
[0043] The step of determining a processing strategy for the new data processing task comprises:
[0044] inserting the new data processing task into the data processing sequence table according to the level of the new data processing task;
[0045] According to the storage order of the data processing sequence table, the new data processing tasks stored in the data processing sequence table are processed.
[0046] Preferably, the data processing method further comprises: allocating a corresponding monitoring scheme to each of the levels, the monitoring scheme comprising monitoring time intervals corresponding to different levels;
[0047] The step of determining a processing strategy for the new data processing task comprises:
[0048] Monitoring the new data processing task according to monitoring time intervals corresponding to different levels;
[0049] When the monitoring result indicates that the new data processing task has reached the processing time limit and / or the data processing task of the previous level corresponding to the new data processing task has been processed, the new data processing task is processed.
[0050] In a second aspect, an embodiment of the present invention provides a data processing device, comprising: a collection unit, a filling unit, a training unit and a processing unit, wherein:
[0051] The collecting unit is used to collect a plurality of data processing samples, wherein the data processing samples have a plurality of characteristic attributes and corresponding levels, wherein the levels indicate the processing priorities of the data processing samples;
[0052] The filling unit is used to determine whether the attribute value of each characteristic attribute of the data processing sample collected by the collection unit is missing, and if yes, fill the corresponding attribute value for the characteristic attribute;
[0053] The training unit is used to train the classification model using the data processing samples with complete attribute values collected by the collection unit and obtained by the filling unit and the corresponding grades to obtain a task grade model;
[0054] The processing unit is used to obtain a task level model using the training unit, determine the level of the new data processing task, and determine the processing strategy of the new data processing task according to the level of the new data processing task.
[0055] An embodiment of the above invention has the following advantages or beneficial effects: Generally speaking, based on the trained task level model, data processing tasks can be graded with the help of computing resources. Compared with manual division, the scheme provided by the embodiment of the present invention can effectively improve the efficiency of grade division of data processing tasks. In addition, since the integrity of the attribute values of the characteristic attributes of the data processing samples used in the training classification model will directly affect the accuracy of the trained task level model, the present application scheme fills in the missing attribute values of the characteristic attributes, ensuring that the data processing samples used in the training classification model have complete attribute values, thereby training a more accurate task level model, thereby effectively improving the accuracy of the grade of the data processing task, then, according to the grade, determine the processing strategy of the data processing task, so that the data processing plan is more reasonable, thereby improving the user experience.
[0056] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with specific implementation examples. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0058] Figure 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention;
[0059] Figure 2 is a schematic diagram of a main process of filling missing attribute values of characteristic attributes of a data processing sample according to an embodiment of the present invention;
[0060] Figure 3 is a schematic diagram of a main process of generating a code with a preset number of bits according to an embodiment of the present invention;
[0061] Figure 4 is a schematic diagram of a main process of selecting multiple target feature attributes according to an embodiment of the present invention;
[0062] Figure 5 is a schematic diagram of a partial structure of a task level model according to an embodiment of the present invention;
[0063] Figure 6 is a schematic diagram of a main process of determining a processing strategy for a new data processing task according to an embodiment of the present invention;
[0064] Figure 7is a schematic diagram of a main process of determining a processing strategy for a new data processing task according to an embodiment of the present invention;
[0065] Figure 8 is a schematic diagram of main units of a data processing apparatus according to an embodiment of the present invention;
[0066] Fig. 9 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0067] Fig.10 It is a schematic diagram of the structure of a computer system suitable for implementing a server of an embodiment of the present invention. DETAILED DESCRIPTION
[0068] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0069] Figure 1 is a data processing method according to an embodiment of the present invention, such as Figure 1 As shown, the data processing method may include the following steps:
[0070] S101: Collect multiple data processing samples, where the data processing samples have multiple characteristic attributes and corresponding levels, where the level indicates the processing priority of the data processing samples;
[0071] S102: for the data processing sample, determine whether the attribute value of each characteristic attribute is missing, if yes, execute S103; otherwise, execute S104;
[0072] S103: Fill in the corresponding attribute value for the feature attribute;
[0073] S104: training a classification model using data processing samples with complete attribute values and corresponding levels to obtain a task level model;
[0074] S105: Determine the level of the new data processing task using the task level model;
[0075] S106: Determine a processing strategy for the new data processing task according to the level of the new data processing task.
[0076] The multiple data processing samples collected in step S101 may be sent by the receiving user through a terminal, or may be collected from an existing data warehouse.
[0077] The data processing sample refers to the data processing task that has been processed by the data warehouse and has a processing priority or level.
[0078] Among them, characteristic attributes refer to information that can characterize the characteristics or features of data processing tasks, such as the name of the data processing task, the type of data processing task, the CPU size limit of the data processing task, the memory size limit of the data processing task, the task version, whether to alarm, the service time required to execute the data processing task, the number of recursive subtasks required to execute the data processing task, and the number of times the data warehouse model required to execute the data processing task is used.
[0079] The attribute value refers to the value of the characteristic attribute after digitization. The digitization can be completed according to a preset digitization rule.
[0080] Among them, the task level model can be a decision tree obtained by the ID3 algorithm, that is, the above-mentioned training classification model can specifically be to use the ID3 algorithm to generate corresponding decision trees for multiple data processing samples.
[0081] Generally speaking, the task level model obtained based on training can be used to classify tasks with the help of computing resources. Compared with manual classification, the solution provided by the embodiment of the present invention can effectively improve the efficiency of data processing task level classification. In addition, since the integrity of the attribute values of the characteristic attributes of the data processing samples used in the training classification model will directly affect the accuracy of the trained task level model, the present application scheme fills in the missing attribute values of the characteristic attributes, ensuring that the data processing samples used in the training classification model have complete attribute values, thereby training a more accurate task level model, thereby effectively improving the accuracy of the level of the data processing task. Then, according to the level, the processing strategy of the data processing task is determined, so that the data processing plan is more reasonable, thereby improving the user experience.
[0082] In an embodiment of the present invention, the above-mentioned data processing method may further include: dividing multiple data processing samples into a complete data set and a missing data set, wherein the data processing samples divided into the complete data set have complete attribute values, and the data processing samples divided into the missing data set have missing attribute values; for each characteristic attribute of each data processing sample in the missing data set, executing the step of determining whether the attribute value corresponding to the characteristic attribute is missing. By dividing different data processing samples into a complete data set and a missing data set, and only supplementing the attribute values for the data processing samples in the missing data set, the workload of the determination process is effectively reduced, and computing resources are saved.
[0083] Among them, multiple characteristic attributes can be shown in Table 1 below.
[0084] Table 1
[0085]
[0086] Among them, service time refers to the time that the data warehouse serves the data processing task; the number of recursive subtasks refers to the number of recursive subtasks that need to be executed in the process of the data warehouse executing the data processing task; the number of times the data warehouse model is used refers to the number of times the data warehouse model is used to execute a certain data processing task within a period of time.
[0087] In the embodiment of the present invention, Figure 2 As shown, the data processing method may further include the following steps:
[0088] S201: generating a code of a preset number of bits for the data processing sample according to the attribute values corresponding to the multiple characteristic attributes of the data processing sample;
[0089] S202: Divide the complete data set into at least one coding set according to the coding of the data processing samples, wherein the coding corresponding to all data processing samples belonging to the same coding set is equal;
[0090] S203: Matching a corresponding target coding set for the data processing samples in the missing data set according to the coding corresponding to the data processing samples in the missing data set;
[0091] S204: Fill in the missing attribute values of the data processing samples in the missing data set according to the attribute values of the data processing samples corresponding to the target coding set.
[0092] The above steps S203 and S204 may be performed for each data processing sample in the missing data set.
[0093] Among them, step S203 and step S204 are a specific implementation method of filling the corresponding attribute value for the feature attribute with a missing attribute value.
[0094] The code refers to a digital string with a fixed number of digits.
[0095] There are two specific implementation methods of S201:
[0096] The first implementation method:
[0097] For a combination of multiple characteristic attributes of a data processing sample, executing: using attribute values corresponding to the characteristic attributes included in the combination of the multiple characteristic attributes, generating a corresponding code of a preset number of bits for the data processing sample.
[0098] For example, if the data processing sample includes characteristic attributes A, B, C, D, and E, the combination of the various characteristic attributes of the data processing sample may be a combination of characteristic attribute A and characteristic attribute B; a combination of characteristic attribute A and characteristic attribute C; a combination of characteristic attribute A, characteristic attribute B, and characteristic attribute C; a combination of characteristic attributes A, B, C, D, and E, etc. For the combination of characteristic attribute A and characteristic attribute B, the attribute value of characteristic attribute A and the attribute value of characteristic attribute B are used to generate a corresponding code of a preset number of bits for the data processing sample; for the combination of characteristic attribute A, characteristic attribute B, and characteristic attribute C, the attribute value corresponding to characteristic attribute A, the attribute value corresponding to characteristic attribute B, and the attribute value corresponding to characteristic attribute C are used to generate a corresponding code of a preset number of bits for the data processing sample, etc.
[0099] The second implementation method:
[0100] The attribute value corresponding to each of the multiple characteristic attributes of the data processing sample is used to generate a corresponding code of a preset number of bits for the data processing sample.
[0101] The second implementation is a special case of the third implementation. For example, if the data processing sample includes characteristic attributes A, B, C, D, and E, the attribute value corresponding to the characteristic attribute A of the data processing sample, the attribute value corresponding to the characteristic attribute B, the attribute value corresponding to the characteristic attribute C, the attribute value corresponding to the characteristic attribute D, and the attribute value corresponding to the characteristic attribute E are used to generate a corresponding preset number of bits of code for the data processing sample.
[0102] The second implementation simplifies the process of generating a code with a preset number of bits for the data processing samples, and can effectively reduce the consumption of computing resources.
[0103] In a preferred embodiment, the first implementation method is selected to generate a corresponding preset number of bits of code for the data processing sample, so that a data processing sample corresponds to multiple preset number of bits of code, and the preset number of bits of code corresponding to the data processing sample obtained by the first implementation method can better divide the data processing sample into code sets according to feature attributes to ensure the accuracy of subsequent matching results.
[0104] There are two specific implementations of step S203:
[0105] In one embodiment, a method for matching a data processing sample in a missing data set with a corresponding target encoding set is to search for a target encoding set that is the same as the encoding of the data processing sample in the missing data set.
[0106] This implementation manner may be directed to the first implementation manner of generating a code with a preset number of bits for a data processing sample provided in the above embodiment.
[0107] In another embodiment, the implementation method for matching the corresponding target coding set with the data processing samples in the missing data set is to search for the target coding set with the smallest coding difference with the data processing samples in the missing data set.
[0108] This implementation manner may be directed to the second implementation manner of generating a code with a preset number of bits for a data processing sample provided in the above embodiment.
[0109] By dividing the complete data set into at least one coding set, in which the codes corresponding to all data processing samples belonging to the same coding set are equal, it is achieved that similar data processing samples are divided into the same coding set. The purpose of subsequently matching the corresponding target coding set for each data processing sample in the missing data set is to find the closest coding set for each data processing sample in the missing data set, that is, the attribute values included in the data processing samples in the missing data set are very close to those of the data processing samples in the closest coding set. Then, in the subsequent completion of the missing attribute values of the characteristic attributes of the data processing samples according to the attribute values of the data processing samples in the target coding set, the accuracy of the filled-in attribute values can be effectively improved.
[0110] In one embodiment of the present invention, generating a code of a preset number of bits for a data processing sample may include: generating a first signature value of a preset number of bits for each characteristic attribute in the data processing sample based on the attribute value of each characteristic attribute in the data processing sample, wherein each bit value in the first signature value belongs to a value within a preset numerical range; and calculating the code corresponding to the data processing sample based on a preset weight corresponding to the characteristic attribute and the first signature value corresponding to each characteristic attribute.
[0111] The preset value range may be [-1, 1]. By limiting the preset value range, the situation where a single characteristic attribute has too great an impact can be avoided and various characteristic attributes can be balanced.
[0112] The generation of the first signature value of the preset number of digits may be implemented by using a hash algorithm. For example, the characteristic attribute is the service duration, and the attribute value corresponding to the service duration is A. The attribute value A is converted into a signature value of the preset number of digits (for example, 0001) by using a hash algorithm.
[0113] For example, the encoding of the data processing sample is calculated using the characteristic attributes A, B, C and E in the data processing sample. Among them, the signature value corresponding to each characteristic attribute can be: A→0, 0, 0, 1; B→0, 0, 1, 0; C→0, 0, 1, 1; E→0, 1, 0, 1; for example, the preset weights corresponding to the characteristic attributes can be: the weight corresponding to characteristic attribute A is 1; the weight corresponding to characteristic attribute B is 3; the weight corresponding to characteristic attribute C is 1; the weight corresponding to characteristic attribute D is 3; accordingly, the specific process of calculating the encoding of the data processing sample is: each bit in the numerical value corresponding to each characteristic attribute is multiplied by the weight to obtain the weighted result of the signature value corresponding to each characteristic attribute, and the numerical values on the same bit in the weighted results of each characteristic attribute are added to obtain the numerical value on the corresponding bit of the encoding; the sum of the numerical values on the same bit in the weighted results of each characteristic attribute refers to the numerical value of the first bit in the weighted result of characteristic attribute A, the numerical value of the first bit in the weighted result of characteristic attribute B, The first value of the weighted result of the characteristic attribute C and the first value of the weighted result of the characteristic attribute E are added together, and the result obtained is the first value in the code; the second value of the weighted result of the characteristic attribute A, the second value of the weighted result of the characteristic attribute B, the second value of the weighted result of the characteristic attribute C, and the second value of the weighted result of the characteristic attribute E are added together, and the result obtained is the second value in the code; and so on, the fourth (last) value of the weighted result of the characteristic attribute A, the fourth (last) value of the weighted result of the characteristic attribute B, the fourth (last) value of the weighted result of the characteristic attribute C, and the fourth (last) value of the weighted result of the characteristic attribute E are added together, and the result obtained is the fourth (last) value in the code. A specific example is used for explanation, as shown below:
[0114]
[0115] In one embodiment of the present invention, Figure 3 As shown, generating a code with a preset number of bits for a data processing sample may include the following steps:
[0116] S301: generating a second signature value of a preset number of bits for each characteristic attribute according to the attribute value of each characteristic attribute in the data processing sample;
[0117] The generation of the second signature value of the preset number of digits can be implemented by using a hash algorithm. For example, the characteristic attribute is the service duration, and the attribute value corresponding to the service duration is A. The attribute value A is converted into a signature value of the preset number of digits (for example, 0001) by using a hash algorithm.
[0118] S302: Performing numerical substitution on each bit value in the second signature value according to a preset substitution strategy;
[0119] The replacement strategy may include: replacing the value zero with the first value, replacing the non-zero value with the second value, and the first value and the second value may be set by the user. For example, the first value is -1, the second value is 1, and the signature value 0001 converted from the attribute value A is 0001. Through this step, the first bit 0, the second bit 0, the third bit 0, and the fourth bit 1 are replaced by values, and the replacement result is: -1, -1, -1, 1.
[0120] S303: Calculate the code of the data processing sample according to the result after replacing the preset weight corresponding to the feature attribute and the numerical value corresponding to each feature attribute.
[0121] For example, the characteristic attributes A, B, C and E in the data processing sample are used to calculate the code of the data processing sample. Among them, the signature value corresponding to each characteristic attribute obtained by step S301 can be: A→0, 0, 0, 1; B→0, 0, 1, 0; C→0, 0, 1, 1; E→0, 1, 0, 1; For example, the preset weights corresponding to the characteristic attributes can be: the weight corresponding to the characteristic attribute A is 1; the weight corresponding to the characteristic attribute B is 3; the weight corresponding to the characteristic attribute C is 1; the weight corresponding to the characteristic attribute D is 3; Accordingly, the specific process of calculating the code of the data processing sample is: each bit in the result after the numerical substitution corresponding to each characteristic attribute is multiplied by the weight to obtain the weighted result of the signature value corresponding to each characteristic attribute, and the same weighted results of each characteristic attribute are added. The sum of the values on the bits is used to obtain the values on the corresponding bits of the code; for example, the result of the numerical substitution corresponding to the feature attribute A (-1, -1, -1, 1) corresponds to the weighted result (-1, -1, -1, 1); the result of the numerical substitution corresponding to the feature attribute B (-1, -1, 1, -1) corresponds to the weighted result (-3, -3, 3, -3); the result of the numerical substitution corresponding to the feature attribute C (-1, -1, 1, 1) corresponds to the weighted result (-1, -1, 1, 1); the result of the numerical substitution corresponding to the feature attribute E (-1, 1, -1, 1) corresponds to the weighted result (-3, 3, -3, 3). The sum of the values on the same digit in the weighted results of each characteristic attribute means that the value of the first digit in the weighted result of characteristic attribute A, the value of the first digit in the weighted result of characteristic attribute B, the value of the first digit in the weighted result of characteristic attribute C, and the value of the first digit in the weighted result of characteristic attribute E are added together, and the result obtained is the first digit value in the code; the value of the second digit in the weighted result of characteristic attribute A, the value of the second digit in the weighted result of characteristic attribute B, the value of the second digit in the weighted result of characteristic attribute C, and the value of the second digit in the weighted result of characteristic attribute E are added together, and the result obtained is the second digit value in the code; and by analogy, the value of the fourth digit (last digit) in the weighted result of characteristic attribute A, the value of the fourth digit (last digit) in the weighted result of characteristic attribute B, the value of the fourth digit (last digit) in the weighted result of characteristic attribute C, and the value of the fourth digit (last digit) in the weighted result of characteristic attribute E are added together, and the result obtained is the fourth digit (last digit) value in the code. The implementation of the above steps S301 to S303 is described with a specific example, as shown below:
[0122]
[0123]
[0124] Through the above process of converting the attribute value into the corresponding code, similar data processing samples can have the same code, making it easier to divide the code set.
[0125] In the embodiment of the present invention, Figure 4 As shown, before the step of training the grade model using the attribute values corresponding to the plurality of feature attributes, the following steps may be further included:
[0126] S401: Calculate the information gain corresponding to each feature attribute based on the data processing sample of the processed attribute value;
[0127] S402: Select multiple target feature attributes according to the information gain corresponding to each feature attribute.
[0128] Accordingly, based on the above embodiment, the step of training the grade model using the attribute values corresponding to the multiple feature attributes may include: training the classification model using the attribute values corresponding to the multiple target feature attributes.
[0129] By selecting target feature attributes with greater influence, the resource usage of the training level model can be effectively reduced, thereby reducing the cost of model construction while ensuring the accuracy of the obtained task level model.
[0130] Among them, the step of calculating the information gain corresponding to each characteristic attribute may include: for each characteristic attribute, executing: calculating the first information entropy using the probability of the attribute value corresponding to the characteristic attribute; classifying the data processing sample according to the attribute value corresponding to the characteristic attribute; calculating the second information entropy according to the proportion of each level in the classification result and the probability of the attribute value corresponding to the characteristic attribute; using the first information entropy and the second information entropy, calculating the information gain corresponding to the characteristic attribute.
[0131] The first information entropy can be calculated by the following calculation formula (1):
[0132]
[0133] Among them, H Sj Characterizes the first information entropy corresponding to the jth feature attribute; p ij Represents the probability of the i-th attribute value corresponding to the j-th feature attribute; n represents the number of attribute values corresponding to the j-th feature attribute.
[0134] The second information entropy can be calculated by the following calculation formula (2):
[0135]
[0136] Among them, H Sj ′ represents the second information entropy corresponding to the jth feature attribute; k gThe ratio of the attribute value of the jth feature attribute in the gth level in the classification result; p ijg The probability of the i-th attribute value corresponding to the j-th feature attribute in the g-th level; n g Represents the number of attribute values corresponding to the jth feature attribute in the gth level; m represents the number of categories.
[0137] The proportion of the g-th level refers to the proportion of the number of attribute values (such as the i-th attribute value) of a certain characteristic attribute (such as the j-th characteristic attribute) in the g-th level to the number of all attribute values corresponding to the j-th characteristic attribute (i.e., n). For example, if the number of attribute values corresponding to a feature attribute in the g-th level is 40, and the number of all attribute values corresponding to the feature attribute is 100 (i.e., n=100), then for the feature attribute, the proportion of the g-th level is 0.4, i.e., k g =0.4.
[0138] Accordingly, the information gain corresponding to the feature attribute is calculated using the following calculation formula (3).
[0139] Calculation formula (3):
[0140] H j =H Sj -H Sj ′ (3)
[0141] Among them, H j Characterizes the information gain corresponding to the j-th feature attribute.
[0142] In one embodiment of the present invention, the multiple target characteristic attributes may include any two or three of: the service time for executing the data processing task, the number of recursive subtasks required to execute the data processing task, and the number of times the data warehouse model is used to execute the data processing task. Figure 5 As shown, a task level model obtained may include the service time for executing the data processing task, the number of recursive subtasks required for executing the data processing task, and the number of times the data warehouse model is used to execute the task. Among them, high number, low number, and medium number represent the attribute values of the amount of data of the recursive subtask (these attribute values can also be digitized during use, that is, converted into corresponding values, for example, high number corresponds to 2, low number corresponds to 0, and medium number corresponds to 1); a, b, c, d represent the attribute values of the service time; high, medium, and low represent the attribute values of the number of times (these attribute values can also be digitized during use, that is, converted into corresponding values, for example, high corresponds to 10, low corresponds to -1, and medium corresponds to 5); L1, L2, and L3 represent the data processing task level, wherein the processing priority of L1 is higher than that of L2, and the processing priority of L2 is higher than that of L3.
[0143] Determining the level of a data processing task based on a task level model with high accuracy can make the level of the data processing task more accurately determined, thereby better managing data processing tasks of various levels in the data warehouse.
[0144] For example, based on Figure 5 The partial task level model shown divides the tasks to be divided. For a new data processing task, the attribute value of the recursive subtask data volume is low and the attribute value of the number of times used is high. Then the task level corresponding to the new data processing task is L1.
[0145] In the embodiment of the present invention, there are two specific implementation methods for determining the processing strategy for the new data processing task.
[0146] Implementation method 1:
[0147] The data processing method may further include: setting a data processing sequence table, the data processing sequence table is used to store data processing tasks in a processing order; accordingly, Figure 6 As shown, determining a processing strategy for a new data processing task may include the following steps:
[0148] S601: inserting the new data processing task into the data processing sequence table according to the level of the new data processing task;
[0149] There are two specific ways to implement this step:
[0150] The first method: according to the level of the new data processing task, find the area where other data processing tasks with the same level are located in the data processing sequence table, and add the new data processing task to the last position in the found area;
[0151] The second method: according to the level of the new data processing task, the area where other data processing tasks with the level are located is searched in the data processing sequence table. In the found area, if multiple other data processing tasks are included, two adjacent other data processing tasks are determined, and the processing deadline of one of the two adjacent other data processing tasks is earlier than the processing deadline of the new data processing task, and the processing deadline of the other is later than the processing deadline of the new data processing task, and the new data processing task is inserted between the two adjacent other data processing tasks; if one other data processing task is included, the processing deadline of the new data processing task is compared with the processing deadlines of the other data processing tasks. If the comparison result is that the processing deadline of the new data processing task is earlier than the processing deadlines of other data processing tasks, the new data processing task is inserted before the other data processing tasks; if the comparison result is that the processing deadline of the new data processing task is later than the processing deadlines of other data processing tasks, the new data processing task is inserted after the other data processing tasks.
[0152] S602: Processing new data processing tasks stored in the data processing sequence table according to the storage order of the data processing sequence table.
[0153] Implementation method 2:
[0154] The data processing method may further include: assigning a corresponding monitoring scheme to each of the levels, the monitoring scheme including monitoring time intervals corresponding to different levels; accordingly, Figure 7 As shown, determining a processing strategy for a new data processing task may include the following steps:
[0155] S701: monitoring the new data processing task according to the monitoring plan including monitoring time intervals corresponding to different levels;
[0156] Specific implementation method of this step: monitor the new data processing tasks according to the monitoring time intervals corresponding to different levels.
[0157] S702: When the monitoring result indicates that the new data processing task has reached the processing time limit and / or the data processing task of the previous level corresponding to the new data processing task has been processed, the new data processing task is processed.
[0158] like Figure 8 As shown, an embodiment of the present invention provides a data processing device 800, and the task data processing device 800 may include: a collection unit 801, a filling unit 802, a training unit 803 and a processing unit 804, wherein:
[0159] A collection unit 801 is used to collect a plurality of data processing samples, wherein the data processing samples have a plurality of characteristic attributes and corresponding levels, wherein the level indicates the processing priority of the data processing samples;
[0160] The filling unit 802 is used to process the data sample collected by the collection unit 801, determine whether the attribute value of each characteristic attribute is missing, and if so, fill the corresponding attribute value for the characteristic attribute;
[0161] A training unit 803 is used to train a classification model using the data processing samples with complete attribute values and corresponding levels collected by the collection unit 801 and obtained by the filling unit 802 to obtain a task level model;
[0162] The processing unit 804 is used to obtain the task level model using the training unit 803, determine the level of the new data processing task, and determine the processing strategy of the new data processing task according to the level of the new data processing task.
[0163] In the embodiment of the present invention, Figure 8As shown, the data processing device 800 may further include: a division unit 805, wherein:
[0164] A division unit 805 is used to divide the multiple data processing samples into a complete data set and a missing data set, wherein the data processing samples divided into the complete data set have complete attribute values, and the data processing samples divided into the missing data set have missing attribute values;
[0165] The filling unit 802 is used to perform the step of determining whether the attribute value corresponding to the feature attribute is missing for each data processing sample corresponding to each data processing sample in the missing data set divided by the dividing unit 804.
[0166] In the embodiment of the present invention, Figure 8 As shown, the data processing device 800 may further include: a conversion unit 806, wherein:
[0167] The conversion unit 806 is used to generate a code of a preset number of bits for the data processing sample according to the attribute values corresponding to the multiple characteristic attributes of the data processing sample; and divide the complete data set into at least one code set according to the code of the data processing sample, wherein the codes corresponding to all data processing samples belonging to the same code set are equal;
[0168] The filling unit 802 is further used to match the corresponding target coding set for the data processing samples in the missing data set according to the coding corresponding to the data processing samples in the missing data set; and fill the missing attribute values of the data processing samples in the missing data set according to the attribute values of the data processing samples corresponding to the target coding set.
[0169] In an embodiment of the present invention, the conversion unit 806 is further used to generate a first signature value of a preset number of bits for each characteristic attribute in the data processing sample according to the attribute value of each characteristic attribute in the data processing sample, wherein each bit value in the first signature value belongs to a value within a preset numerical range; and calculate the code corresponding to the data processing sample according to the preset weight corresponding to the characteristic attribute and the first signature value corresponding to each characteristic attribute.
[0170] In an embodiment of the present invention, the conversion unit 806 is further used to generate a second signature value of a preset number of bits for each characteristic attribute in the data processing sample according to the attribute value of each characteristic attribute in the data processing sample; perform numerical substitution on each bit value in the second signature value according to a preset substitution strategy; and calculate the code corresponding to the data processing sample according to the preset weight corresponding to the characteristic attribute and the result after the numerical substitution corresponding to each characteristic attribute.
[0171] In the embodiment of the present invention, the replacement strategy pre-set in the conversion unit 806 may include: replacing the value zero with the first value, and replacing the non-zero value with the second value.
[0172] In an embodiment of the present invention, the training unit 803 is further used to calculate the information gain of each feature attribute based on the data processing samples with processed attribute values; select multiple target feature attributes according to the information gain of each feature attribute; and train the classification model using the data processing samples with complete attribute values of the target feature attributes.
[0173] In an embodiment of the present invention, the training unit 803 is further used to calculate, for each feature attribute, a first information entropy using the probability of attribute values corresponding to the feature attribute in multiple data processing samples; classify the data processing samples according to the attribute values corresponding to the feature attributes; calculate a second information entropy based on the proportion of each level in the classification result and the probability of the attribute value corresponding to the feature attribute; and calculate the information gain corresponding to the feature attribute using the first information entropy and the second information entropy.
[0174] In an embodiment of the present invention, the multiple target feature attributes may include: any two or three of: the service time for executing a data processing task, the number of recursive subtasks required to execute the data processing task, and the number of times a data warehouse model is used required to execute the data processing task.
[0175] In an embodiment of the present invention, the processing unit 804 is further used to set a data processing sequence table, which is used to store data processing tasks in order of processing; insert a new data processing task into the data processing sequence table according to the level of the new data processing task; and process the new data processing task stored in the data processing sequence table according to the storage order of the data processing sequence table.
[0176] In an embodiment of the present invention, the processing unit 804 is further used to assign a corresponding monitoring plan to each level, the monitoring plan including monitoring time intervals corresponding to different levels; monitor the new data processing task according to the monitoring time intervals corresponding to different levels; and process the new data processing task when the monitoring result indicates that the new data processing task has reached the processing time limit and / or the data processing task of the previous level corresponding to the new data processing task has been completed.
[0177] Fig. 9 An exemplary system architecture 900 is shown to which the data processing method or data processing apparatus according to the embodiment of the present invention can be applied.
[0178] like Fig. 9As shown, the system architecture 900 may include terminal devices 901, 902, 903, a network 904, a server 905, and a data warehouse 906. The network 904 is used to provide a medium for communication links between the terminal devices 901, 902, 903 and the server 905, and between the server 905 and the data warehouse. The network 904 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0179] Users can use terminal devices 901, 902, 903 to interact with server 905 through network 904. Terminal devices 901, 902, 903 send data processing samples to server 905, or server 905 sends task level models to terminal devices 901, 902, 903 so that users can review the structure of the task level model.
[0180] The terminal devices 901, 902, 903 may be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc., so that users can manually check data processing samples.
[0181] The data warehouse 906 interacts with the server 905 through the network 904. The data warehouse 906 receives the task level model sent by the server 905 to classify its own data processing tasks. Alternatively, the data warehouse 906 sends information about the data processing tasks to the server 905. The server uses the constructed task level model to assign corresponding levels to the data processing tasks, and sends the levels to the data warehouse 906, so that the data warehouse 906 marks the levels corresponding to the data processing tasks.
[0182] The server 905 may be a server that provides various services, such as building a task level model based on data processing samples, and classifying data processing tasks based on the task level model. The management server may analyze multiple feature attributes in the data processing samples, and feed back the processing results (such as the task level model or level - just an example) to the data warehouse 906.
[0183] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 905 , and accordingly, the data processing device is generally set in the server 905 .
[0184] It should be understood that Fig. 9 The number of terminal devices, networks, servers and data warehouses in the embodiment is only for illustration. Any number of terminal devices, networks, servers and data warehouses may be provided according to the implementation requirements.
[0185] Reference below Fig.10, which shows a schematic diagram of the structure of a server computer system 1000 suitable for implementing an embodiment of the present invention. Fig.10 The server shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0186] like Fig.10 As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 into a random access memory (RAM) 1003. In the RAM 1003, various programs and data required for the operation of the system 1000 are also stored. The CPU 1001, the ROM 1002, and the RAM 1003 are connected to each other via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.
[0187] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage section 1008 as needed.
[0188] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the central processing unit (CPU) 1001, the above-mentioned functions defined in the system of the present invention are executed.
[0189] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0190] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0191] The units involved in the embodiments of the present invention may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, a padding unit, a training unit, and a processing unit. The names of these units do not constitute limitations on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring multiple data processing samples".
[0192] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: collecting multiple data processing samples, the data processing samples have multiple characteristic attributes and corresponding levels, wherein the level indicates the processing priority of the data processing samples; for the data processing samples, determining whether the attribute value of each characteristic attribute is missing, and if so, filling the corresponding attribute value for the characteristic attribute; using the data processing samples with complete attribute values and corresponding levels to train the classification model, obtain the task level model; using the task level model, determine the level of the new data processing task; according to the level of the new data processing task, determine the processing strategy of the new data processing task.
[0193] According to the technical solution of the embodiment of the present invention, the data processing tasks can be graded with the help of computing resources based on the trained task grade model. Compared with manual division, the solution provided by the embodiment of the present invention can effectively improve the efficiency of grade division of data processing tasks. In addition, since the integrity of the attribute values of the characteristic attributes of the data processing samples used in the training classification model will directly affect the accuracy of the trained task grade model, the present application solution fills in the missing attribute values of the characteristic attributes, ensuring that the data processing samples used in the training classification model have complete attribute values, thereby training a more accurate task grade model, thereby effectively improving the accuracy of the grade of the data processing task. Then, according to the grade, the processing strategy of the data processing task is determined, so that the data processing plan is more reasonable, thereby improving the user experience.
[0194] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for data processing, characterized in that: include: Collecting a plurality of data processing samples, the data processing samples having a plurality of characteristic attributes and corresponding levels, wherein the levels indicate processing priorities of the data processing samples; For the data processing sample, determine whether the attribute value of each characteristic attribute of the data processing sample is missing, and if yes, fill in the corresponding attribute value for the characteristic attribute; The classification model is trained using data processing samples with complete attribute values and corresponding levels to obtain a task level model; Determining the level of a new data processing task using the task level model; Determining a processing strategy for the new data processing task according to the level of the new data processing task; The method further comprises: dividing the plurality of data processing samples into a complete data set and a missing data set, wherein the data processing samples divided into the complete data set have complete attribute values, and the data processing samples divided into the missing data set have missing attribute values; Generating a code of a preset number of bits for the data processing sample according to the attribute values corresponding to the multiple characteristic attributes of the data processing sample; According to the codes of the data processing samples, the complete data set is divided into at least one code set, wherein the codes corresponding to all data processing samples belonging to the same code set are equal; The step of filling in the corresponding attribute value for the characteristic attribute comprises: According to the codes corresponding to the data processing samples in the missing data set, matching the corresponding target code set for the data processing samples in the missing data set; According to the attribute values of the data processing samples corresponding to the target coding set, the missing attribute values of the data processing samples in the missing data set are filled.
2. The data processing method according to claim 1, characterized in that: For each characteristic attribute of each of the data processing samples in the missing data set, a step of determining whether an attribute value of the characteristic attribute is missing is performed.
3. The data processing method according to claim 1, characterized in that: The step of generating a code with a preset number of bits for the data processing sample comprises: According to the attribute value of each of the characteristic attributes in the data processing sample, a first signature value of a preset number of bits is generated for each of the characteristic attributes, wherein each bit value in the first signature value is a value within a preset value range; The code corresponding to the data processing sample is calculated according to the preset weight corresponding to the characteristic attribute and the first signature value corresponding to each of the characteristic attributes.
4. The data processing method according to claim 1, characterized in that: The step of generating a code with a preset number of bits for the data processing sample comprises: According to the attribute value of each of the characteristic attributes in the data processing sample, generating a second signature value of a preset number of bits for each of the characteristic attributes; According to a preset replacement strategy, numerically replace each bit value in the second signature value; The code corresponding to the data processing sample is calculated according to the result of replacing the preset weight corresponding to the feature attribute and the numerical value corresponding to each feature attribute.
5. The data processing method according to claim 4, characterized in that: The replacement strategy includes: Replaces the value zero with the first value and replaces non-zero values with the second value.
6. The data processing method according to any one of claims 1 to 5, characterized in that: Before the step of using the data processing samples with complete attribute values and the corresponding levels to train the classification model, the method further comprises: Calculating the information gain of each of the feature attributes based on the data processing samples processed with the attribute values; Selecting a plurality of target feature attributes according to the information gain of each of the feature attributes; The steps of training a classification model using data processing samples with complete attribute values and corresponding levels include: The classification model is trained using data processing samples having complete attribute values of the target feature attributes.
7. The data processing method according to claim 6, characterized in that: The step of calculating the information gain corresponding to each of the feature attributes comprises: For each of the characteristic attributes, Calculating a first information entropy using the probabilities of attribute values corresponding to the characteristic attributes in the plurality of data processing samples; Classifying the data processing samples according to the attribute values corresponding to the characteristic attributes; Calculating the second information entropy according to the proportion of each level in the classification result and the probability of the attribute value corresponding to the characteristic attribute; The information gain corresponding to the feature attribute is calculated using the first information entropy and the second information entropy.
8. The data processing method according to claim 6, characterized in that: The multiple target characteristic attributes include: any two or three of the service duration for executing the data processing task, the number of recursive subtasks required for executing the data processing task, and the number of times the data warehouse model is used required for executing the data processing task.
9. The data processing method according to any one of claims 1 to 5, 7 and 8, characterized in that: Further comprising: setting a data processing sequence table, wherein the data processing sequence table is used to store data processing tasks in a processing order; The step of determining a processing strategy for the new data processing task comprises: inserting the new data processing task into the data processing sequence table according to the level of the new data processing task; According to the storage order of the data processing sequence table, the new data processing tasks stored in the data processing sequence table are processed.
10. The data processing method according to any one of claims 1 to 5, 7 and 8, characterized in that: Further comprising: allocating a corresponding monitoring plan for each of the levels, the monitoring plan including monitoring time intervals corresponding to different levels; The step of determining a processing strategy for the new data processing task comprises: Monitoring the new data processing task according to monitoring time intervals corresponding to different levels; When the monitoring result indicates that the new data processing task has reached the processing time limit and / or the data processing task of the previous level corresponding to the new data processing task has been processed, the new data processing task is processed.
11. A data processing device, characterized in that: include: A collection unit, a filling unit, a training unit and a processing unit, wherein: The collecting unit is used to collect a plurality of data processing samples, wherein the data processing samples have a plurality of characteristic attributes and corresponding levels, wherein the levels indicate the processing priorities of the data processing samples; The filling unit is used to determine whether the attribute value of each characteristic attribute of the data processing sample collected by the collection unit is missing, and if yes, fill the corresponding attribute value for the characteristic attribute; The training unit is used to train the classification model using the data processing samples with complete attribute values and corresponding grades collected by the collection unit and obtained by the filling unit to obtain a task grade model; The processing unit is used to obtain a task level model using the training unit, determine the level of the new data processing task, and determine a processing strategy for the new data processing task according to the level of the new data processing task; The data processing device further comprises: a division unit conversion unit, wherein: The division unit is used to divide the plurality of data processing samples into a complete data set and a missing data set, wherein the data processing samples divided into the complete data set have complete attribute values, and the data processing samples divided into the missing data set have missing attribute values; The conversion unit is further used to generate a code of a preset number of bits for the data processing sample according to the attribute values corresponding to the multiple characteristic attributes of the data processing sample; and divide the complete data set into at least one code set according to the code of the data processing sample, wherein the codes corresponding to all data processing samples belonging to the same code set are equal; The filling unit is further used to match the corresponding target coding set for the data processing samples in the missing data set according to the coding corresponding to the data processing samples in the missing data set; and fill the missing attribute values of the data processing samples in the missing data set according to the attribute values of the data processing samples corresponding to the target coding set.
12. A data processing electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.
13. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Method for handling missing values during data stream decision tree classification
CN104035779A
C4.5 decision tree algorithm-based specific user mining system and method thereof
CN106228398A
Data scheduling method and system
CN106888237A
Data update method and device
CN106919706A
Enterprise credit rating evaluation method and device and related equipment
CN109685526A
