A method and system for improving data computing efficiency based on algorithm model
Distributed data evaluation and cleaning through the agent, combined with the centralized training of the experience return pool, solves the problem of low efficiency in large-scale data operations, and achieves efficient data processing and rapid convergence of the agent.
Patent Information
- Application Number
- CN202410040592.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-11
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-01-11
AI Technical Summary
Existing data cleaning technology is inefficient in large-scale data operations and cannot adapt to the format differences of different data sources, resulting in reduced processing efficiency.
An algorithm-based method is adopted to conduct distributed data quality assessment and cleaning needs assessment through agents, and the experience return pool is used for centralized training to optimize the data cleaning process and improve data computing efficiency.
It achieves efficient processing of large-scale data, reduces cleaning steps for low-value data, improves data computing efficiency, and encourages agents to converge quickly through a weighted scoring mechanism to balance data quality and cleaning needs.
Smart Images

Figure CN117787332B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for improving data computing efficiency based on an algorithm model. Background Art
[0002] The purpose of reviewing and verifying the collected big data is to remove duplicate data and low-quality data. The existing related technologies need to perform centralized batch processing on data from different sources when cleaning the collected data, which cannot adapt to large-scale data operations, resulting in low efficiency in large-scale data operations. Summary of the invention
[0003] The purpose of the present invention is to address the deficiencies of the above-mentioned existing related technologies and to propose a method and system for improving data computing efficiency based on an algorithm model, which can improve data computing efficiency.
[0004] In a first aspect, the present invention provides a method for improving data computing efficiency based on an algorithm model, comprising:
[0005] Collect data sources on different platforms respectively, and use different data sources as the initial environment of multiple agents at this moment, conduct data quality assessment and cleaning requirement assessment, use data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action;
[0006] If the first optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned to obtain a first cleaning result, and the first cleaning result is used as the input of the corresponding agent, and a result quality score and a result requirement score of the first cleaning result are output;
[0007] Obtaining the next moment environment, storing the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in an experience revisit pool, performing centralized training based on the data in the experience revisit pool, and distributing the obtained parameters to the multiple agents at the same time for parameter updating;
[0008] If after multiple trainings, the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold, the training is stopped, and the corresponding data sources are directly evaluated and cleaned based on the obtained pre-trained multiple agents.
[0009] The present invention uses different intelligent agents to perform data quality assessment and cleaning requirement assessment on data sources of different platforms, and can screen out data that meets both data quality and cleaning requirements. After cleaning, high-value data can be obtained, and the cleaning process for low-value and non-cleaned data can be reduced, so that it can adapt to large-scale data computing scenarios and improve the efficiency of large-scale data computing. In addition, the present invention sends the first cleaning result to the corresponding intelligent agent for secondary evaluation, which can provide immediate feedback on the cleaning result and be used for centralized training. It can motivate the intelligent agent to adjust parameters towards the goal, thereby accelerating the convergence speed of the intelligent agent, and based on the trained intelligent agent, the efficiency of data computing is improved.
[0010] In combination with the first aspect, in some embodiments, storing the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in an experience revisit pool includes:
[0011] Obtain a weighted value of the result quality score and the result requirement score, use the weighted value as an immediate reward for the first optimal action, and store the immediate reward together with the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in an experience revisit pool.
[0012] The present invention adopts the weighted value of the result quality score and the result requirement score as the immediate reward for the corresponding intelligent agent, which can motivate the intelligent agent to adjust parameters towards a strategy that balances data quality and cleaning requirements, so that the trained intelligent agent can learn the optimal strategy for balancing data quality and cleaning requirements, thereby improving the efficiency of data calculations.
[0013] In combination with the first aspect, in some embodiments, obtaining the weighted value of the result quality score and the result requirement score includes:
[0014] The result quality score is used to measure the result requirement score, and the weighted value is the result quality score; or, the result quality score is used to measure the result requirement score, and the weighted value is the result requirement score.
[0015] In combination with the first aspect, in some embodiments, respectively collecting data sources on different platforms includes:
[0016] Standardize the data sources on different platforms respectively to obtain the first standardized result. If the first standardized result is not in the pre-established centralized hash table, it is added to the centralized hash table so that the first standardized result is used as the current environment and input into the initial corresponding intelligent agent; otherwise, remove the first standardized result and re-collect the next data.
[0017] In conjunction with the first aspect, in some embodiments, the respectively standardizing the data sources on different platforms to obtain the first standardization result includes:
[0018] According to the regular expression, data analysis is performed for data sources on different platforms to obtain multiple discrete attributes, and the multiple discrete attributes are mapped into multiple mapping vectors through an attribute screening network. According to the preset configuration, the multiple mapping vectors are converted into the first standardized results in the script format in turn.
[0019] In combination with the first aspect, in some embodiments, performing centralized training based on the data in the experience revisit pool includes:
[0020] Batch data are selected from the experience revisit pool to perform centralized training on the centrally controlled agent, and the loss function is calculated using the training results of the batch data to update the action network and evaluation network of the centrally controlled agent; wherein the centrally controlled agent and the multiple agents use the same neural network structure.
[0021] In combination with the first aspect, in some embodiments, updating the action network and the evaluation network of the centrally controlled agent includes:
[0022] During each training, after at least one neuron in at least one hidden layer of the action network or the evaluation network of the centrally controlled intelligent agent loses activity with random probability, the action network and the evaluation network are synchronously updated.
[0023] The present invention randomly inactivates neurons in the hidden layer each time during training, which can reduce the model of the intelligent body and reduce the parameters that need to be updated, thereby accelerating the convergence speed of the intelligent body and further improving the efficiency of data calculation.
[0024] In combination with the first aspect, in some embodiments, the centralized control agent and the multiple agents use the same neural network structure, including:
[0025] The central control agent and the multiple agents both adopt a deep reinforcement network based on an action-evaluation algorithm, and both use continuous actions as output.
[0026] In conjunction with the first aspect, in some embodiments, directly performing post-evaluation cleaning for the corresponding data sources respectively includes:
[0027] Continue to collect data sources on different platforms, and standardize the data sources to obtain a second standardized result, use the second standardized result as an input of the corresponding pre-trained intelligent agent, and output a second optimal action corresponding to the second standardized result;
[0028] If the second optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned, and calculation is performed according to the obtained second cleaning result.
[0029] In a second aspect, the present invention provides a data computing efficiency improvement system based on an algorithm model, comprising: an evaluation unit, a cleaning unit, a training unit and a testing unit; wherein:
[0030] The evaluation unit is used to collect data sources on different platforms respectively, and use different data sources as the current environment of the initial multiple intelligent agents respectively, to perform data quality evaluation and cleaning requirement evaluation, take data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action;
[0031] The cleaning unit is used to clean the data source to obtain a first cleaning result if the first optimal action is within the range of a quality threshold and a cleaning threshold, and use the first cleaning result as an input of a corresponding agent to output a result quality score and a result requirement score of the first cleaning result;
[0032] The training unit is used to obtain the next moment environment, store the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool, perform centralized training based on the data in the experience revisit pool, and distribute the obtained parameters to the multiple agents at the same time for parameter update;
[0033] The testing unit is used to stop training if the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold after multiple trainings, and directly perform post-evaluation cleaning for the corresponding data sources based on the obtained pre-trained multiple intelligent agents. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a flow chart of a method for improving data computing efficiency based on an algorithm model provided in this embodiment;
[0035] Figure 2 It is a structural diagram of a data computing efficiency improvement system based on an algorithm model provided in this embodiment. DETAILED DESCRIPTION
[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0037] It is worth noting that the existing related technologies collect data sources from different platforms, directly pre-process the data sources on each platform, adjust them to the same format and then clean them. However, the data formats on different platforms are very different. If the same processing is performed, it will lead to low efficiency in large-scale data operations.
[0038] Based on this, the present invention provides a method and system for improving data computing efficiency based on an algorithm model, which sets distributed intelligent agents for different platforms to perform data evaluation, and centrally controls the intelligent agents to perform synchronous parameter updates to obtain pre-trained intelligent agents, and then performs post-data evaluation operations based on the trained intelligent agents, so that data from different platforms can be processed in a distributed manner, thereby being able to adapt to large-scale data operations and improve data computing efficiency. In order to explain the technical solution of the present invention in detail, it will be explained from the following embodiments.
[0039] Example 1, see Figure 1 , is a flow chart of a method for improving data computing efficiency based on an algorithm model provided in this embodiment, including steps S11 to S14, specifically:
[0040] Step S11: Collect data sources on different platforms respectively, and use different data sources as the initial environment of multiple intelligent agents at this moment, conduct data quality assessment and cleaning requirement assessment, use data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action.
[0041] In some embodiments, data sources on different platforms are collected separately, including: standardizing the data sources on different platforms separately to obtain a first standardized result, and if the first standardized result is not in a pre-established centralized hash table, adding it to the centralized hash table so that the first standardized result is used as the current moment environment and input into the initial corresponding intelligent agent; otherwise, removing the first standardized result and re-collecting the next piece of data.
[0042] It is worth noting that the first standardization result is the result of standardizing the data sources on different platforms during training. Each agent processes a data source each time. It can be understood that when there are N platforms, there are N agents that process data for N platforms respectively, where N is a positive integer. In other words, the multi-agent algorithm model is used to evaluate the data quality and cleaning needs of the collected data to improve the efficiency of large-scale data operations.
[0043] In some embodiments, the platform includes at least two of: application software, application applet, portal community, or questionnaire platform.
[0044] In some embodiments, data sources on different platforms are standardized respectively to obtain a first standardized result, including: obtaining a plurality of discrete attributes, mapping the plurality of discrete attributes into a plurality of mapping vectors through an attribute screening network, and converting the plurality of mapping vectors into a first standardized result in a script format in sequence according to a preset configuration.
[0045] It is worth noting that the formats of data sources on different platforms are different, including structured data and unstructured data. The formats of structured data are different from each other. When distributed processing is performed on data sources on different platforms, different intelligent agents will parse the data sources of the corresponding platforms according to the corresponding regular expressions. Each data source corresponds to multiple discrete attributes, and multiple discrete attributes are screened to obtain mapping vectors. According to the pre-agreed configuration, the mapping vectors are converted into a unified script format to obtain the first standardized result.
[0046] In some embodiments, the multiple discrete attributes are mapped into multiple mapping vectors, including: inputting multiple discrete attributes into an attribute screening network, outputting an attribute indicator vector, and if the value in the attribute indicator vector is greater than the attribute threshold, mapping the value in the attribute indicator vector to 1, otherwise mapping it to 0, to obtain a mapping vector of the attribute indicator vector; the mapping vector is used to convert into a unified script format according to a pre-agreed configuration to obtain a first standardized result.
[0047] It is worth noting that if the value in the mapping vector is 0, it means that the corresponding discrete attribute is not added in the script format. If the value in the mapping vector is 1, it means that the corresponding discrete attribute is added in the script format, so as to screen out the combination of different discrete attributes, and then perform data quality assessment and cleaning needs assessment on the combination of discrete attributes.
[0048] In some embodiments, if the number of preset attribute indicator vectors is M, then if the value in the attribute indicator vector is greater than the attribute threshold, the value in the attribute indicator vector is mapped to 1, otherwise it is mapped to 0, and the first mapping vector of the first attribute indicator vector is obtained; according to the first mapping vector and the first attribute indicator vector, the remaining M-1 attribute indicator vectors are obtained, where M is a positive integer.
[0049] In some embodiments, based on the first mapping vector and the first attribute indicator vector, the remaining M-1 attribute indicator vectors are obtained, including: comparing the value of the first mapping vector with the value of the first attribute indicator vector in order, if the value of the first mapping vector is less than the value of the first attribute indicator vector, the value of the second mapping vector is 0, otherwise the value of the second mapping vector is 1, and the second mapping vector is obtained; and according to the same comparison rule, based on the second mapping vector and the first attribute indicator vector, the remaining M-2 attribute indicator vectors are obtained.
[0050] In some embodiments, the obtained M mapping vectors are converted into a unified script format according to pre-agreed configurations to obtain M first standardized results.
[0051] In some embodiments, the M first standardized results obtained are respectively used as inputs of corresponding intelligent agents to perform data quality assessment and cleaning needs assessment, and the action with the highest value is selected as the first optimal action to obtain M first optimal actions, and the action with the best value is selected from the M first optimal actions as the final action, and M is updated according to the position of the final action, so that the mapping vector is reselected according to the updated M next time, and it is judged whether it is within the range of the quality threshold and the cleaning threshold according to the final action.
[0052] In some embodiments, each agent maps the field name and field type of the parsed result, and maps different field names and field types to obtain a unified script format.
[0053] In some embodiments, each intelligent agent can access and update the centralized hash table. The intelligent agent performs a hash calculation on the first standardized result as a whole to obtain a unique index value, and stores the index value in the centralized hash table. Each time the centralized hash table is accessed, the index value is used to query whether a value has been stored. If there is no identical index value in the centralized hash table, the centralized hash table is updated and prepared to be evaluated for the first standardized result.
[0054] In some embodiments, each agent uses the first standardized result of the corresponding platform as the observed environment, that is, uses the first standardized result as input, performs data quality assessment and cleaning needs assessment, and each agent outputs a data quality score and a cleaning needs score, for a total of two actions.
[0055] In some embodiments, the cleaning requirement score is quantified by the data quality score, or the data quality score is quantified by the cleaning requirement score, that is, a value is output to evaluate the data quality score and the cleaning requirement score at the same time.
[0056] In some embodiments, when the cleaning needs score is quantified by the data quality score, or when the data quality score is quantified by the cleaning needs score, the data quality score is inversely proportional to the cleaning needs score.
[0057] It is worth noting that if the data quality score is higher, the data information content is higher, the data integrity is higher, and the cleaning requirement is lower; if the data quality score is lower, the data information content is lower, the data integrity is lower, and the cleaning requirement is higher, but this kind of data is low-value data and invalid data, which leads to high cleaning requirements. Therefore, it is necessary to screen out data with high cleaning requirements but low value.
[0058] It is worth noting that if two values are used to evaluate the data quality score and the cleaning requirement score respectively, the dimension of the action space of each agent is 2-dimensional; if one value is used to evaluate the data quality score or the cleaning requirement score, the dimension of the action space of each agent is 1-dimensional.
[0059] Step S12: If the first optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned to obtain a first cleaning result, and the first cleaning result is used as the input of the corresponding intelligent agent to output the result quality score and result requirement score of the first cleaning result.
[0060] It is worth noting that the first optimal action is the optimal action output by each agent according to the input environment at the current moment during training. If two values are used to evaluate the data quality score and the cleaning requirement score respectively, the dimension of the first optimal action of each agent is 2-dimensional; if one value is used to evaluate the data quality score or the cleaning requirement score, the dimension of the first optimal action of each agent is 1-dimensional.
[0061] In some embodiments, if the data quality score is within a quality threshold range and the cleaning requirement score is within a cleaning threshold range, the first normalized result of the corresponding data source is cleansed.
[0062] In some embodiments, if the data quality score is within the quality threshold range, but the cleaning requirement score is not within the cleaning threshold range, the first standardized result of the corresponding data source is not cleaned and the operation can be performed directly.
[0063] In some embodiments, if the data quality score is not within the range of the quality threshold and the cleaning requirement score is not within the range of the cleaning threshold, the first standardized result of the corresponding data source is directly removed.
[0064] In some embodiments, if the data quality score is not within the range of the quality threshold, but the cleaning requirement score is within the range of the cleaning threshold, the first standardized result of the corresponding data source is directly removed.
[0065] It is worth noting that when performing operations on large-scale data, the first standardized result of the data source must meet the quality threshold to ensure the quality of the acquired data, thereby ensuring that computing resources are allocated to the operation of high-quality data, thereby improving the utilization of computing resources and computing efficiency.
[0066] Step S13, obtaining the next moment environment, storing the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool, performing centralized training based on the data in the experience revisit pool, and distributing the obtained parameters to the multiple agents at the same time for parameter updating.
[0067] In some embodiments, centralized training is performed based on the data in the experience revisit pool, including: selecting batch data from the experience revisit pool to perform centralized training on a centrally controlled agent, and calculating a loss function through the training results of the batch data obtained, and updating an action network and an evaluation network of the centrally controlled agent; wherein the centrally controlled agent and the multiple agents use the same neural network structure.
[0068] It is worth noting that, in this embodiment, after collecting data sources from different platforms, distributed execution and centralized training are first performed to obtain a trained intelligent agent.
[0069] In some embodiments, the action network and the evaluation network of the centrally controlled intelligent agent are updated, including: after at least one neuron in at least one hidden layer of the action network or the evaluation network of the centrally controlled intelligent agent loses activity with random probability during each training, the action network and the evaluation network are synchronously updated.
[0070] In some embodiments, the dropout() function is used to randomly inactivate neurons in the hidden layer.
[0071] In some embodiments, the centrally controlled intelligent agent and the multiple intelligent agents adopt the same neural network structure, including: the centrally controlled intelligent agent and the multiple intelligent agents both adopt a deep reinforcement network based on an action-evaluation algorithm, and both use continuous actions as output.
[0072] It is worth mentioning that taking continuous-valued actions as output can accurately determine the value of the action and reduce the exploration time of the action space. Continuous actions can set a larger value range and obtain actions with different step lengths, thereby improving the accuracy of the action space exploration of the intelligent agent, thereby obtaining a more accurate intelligent agent and further improving the calculation accuracy of large-scale data.
[0073] In some embodiments, the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score are stored in an experience revisit pool, including: obtaining a weighted value of the result quality score and the result requirement score, using the weighted value as an instant reward for the first optimal action, and storing the instant reward together with the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool.
[0074] In some embodiments, obtaining the weighted values of the result quality score and the result requirement score includes: measuring the result requirement score with the result quality score, and the weighted value is the result quality score; or, measuring the result quality score with the result requirement score, and the weighted value is the result requirement score.
[0075] It is worth noting that by allocating the result quality score and the result requirement score according to preset weights, and weighing the data quality and cleaning requirements, it is possible to balance the needs between the two, so that the trained intelligent agent can learn the optimal strategy to balance the data quality and cleaning requirements, and then automatically determine whether the data should be directly calculated, calculated after cleaning, or directly discarded.
[0076] Step S14: If after multiple trainings, the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold, the training is stopped, and the corresponding data sources are directly evaluated and cleaned according to the obtained pre-trained multiple agents, and then calculations are performed.
[0077] In some embodiments, if the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold, the training is stopped, including: if the slopes of the curves of the data quality scores or the cleaning requirement scores transmitted by multiple agents simultaneously received by the centrally controlled agent are all less than the threshold, the training is stopped.
[0078] It is worth noting that training is stopped only when the slopes of the curves of data quality scores or cleaning requirement scores of multiple agents are simultaneously less than the threshold. That is, when multiple agents process data sources from different platforms, training is stopped only when they converge at the same time.
[0079] In some embodiments, the corresponding data sources are directly evaluated and cleaned before performing calculations, including: continuing to collect data sources on different platforms, and standardizing the data sources to obtain a second standardized result, using the second standardized result as the input of the corresponding pre-trained intelligent agent, and outputting a second optimal action corresponding to the second standardized result; if the second optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned, and calculations are performed based on the obtained second cleaning result.
[0080] It is worth noting that the second standardized result is the result of standardizing the collected data source after training; the second optimal action is after training, based on inputting the second standardized result into the trained intelligent agent, the output action still includes: data quality score and cleaning requirement score; the second cleaning result is the result obtained after cleaning the second standardized result after the second optimal action meets the quality threshold and cleaning threshold.
[0081] Example 2, see Figure 2 , is a structural diagram of a data computing efficiency improvement system based on an algorithm model provided in this embodiment, including: an evaluation unit 21, a cleaning unit 22, a training unit 23 and a testing unit 24.
[0082] It is worth noting that the evaluation unit 21 mainly uses different agents to perform data quality evaluation and cleaning need evaluation on data on different platforms, and transmits the obtained first optimal action to the cleaning unit 22; after receiving the first optimal action, the cleaning unit 22 cleans the data source that needs to be cleaned, and performs secondary data quality evaluation and cleaning need evaluation on the cleaning result, and transmits the obtained result quality score and result need score to the training unit 23; after receiving the data, the training unit 23 performs centralized training, and distributes the obtained parameters to the multiple agents at the same time for parameter updating; when the testing unit 24 detects that the slope of the curve of the data quality score or the cleaning need score output by the updated agent is less than a threshold, it stops training to obtain multiple trained agents, and performs tests based on the multiple trained agents.
[0083] The evaluation unit 21 is used to collect data sources on different platforms respectively, and use different data sources as the initial current environment of multiple intelligent agents, perform data quality evaluation and cleaning requirement evaluation, use data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action.
[0084] In some embodiments, data sources on different platforms are collected separately, including: standardizing the data sources on different platforms separately to obtain a first standardized result, and if the first standardized result is not in a pre-established centralized hash table, adding it to the centralized hash table so that the first standardized result is used as the current moment environment and input into the initial corresponding intelligent agent; otherwise, removing the first standardized result and re-collecting the next piece of data.
[0085] In some embodiments, data sources on different platforms are standardized respectively to obtain a first standardized result, including: according to a regular expression, data analysis is performed on the data sources on different platforms respectively to obtain a plurality of discrete attributes, the plurality of discrete attributes are mapped into a plurality of mapping vectors through an attribute screening network, and according to a preset configuration, the plurality of mapping vectors are converted into a first standardized result in a script format in sequence.
[0086] The cleaning unit 22 is used to clean the data source if the first optimal action is within the range of the quality threshold and the cleaning threshold to obtain a first cleaning result, and use the first cleaning result as the input of the corresponding intelligent agent to output the result quality score and the result requirement score of the first cleaning result.
[0087] The training unit 23 is used to obtain the environment at the next moment, store the environment at the current moment, the environment at the next moment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool, perform centralized training based on the data in the experience revisit pool, and distribute the obtained parameters to the multiple agents at the same time for parameter updating.
[0088] In some embodiments, the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score are stored in an experience revisit pool, including: obtaining a weighted value of the result quality score and the result requirement score, using the weighted value as an instant reward for the first optimal action, and storing the instant reward together with the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool.
[0089] In some embodiments, obtaining the weighted values of the result quality score and the result requirement score includes: measuring the result requirement score with the result quality score, and the weighted value is the result quality score; or, measuring the result quality score with the result requirement score, and the weighted value is the result requirement score.
[0090] In some implementations, centralized training is performed based on the data in the experience revisit pool, including: selecting batch data from the experience revisit pool to perform centralized training on a centrally controlled agent, and calculating a loss function through the training results of the batch data obtained, and updating an action network and an evaluation network of the centrally controlled agent; wherein the centrally controlled agent and the multiple agents use the same neural network structure.
[0091] In some embodiments, the action network and the evaluation network of the centrally controlled intelligent agent are updated, including: after at least one neuron in at least one hidden layer of the action network or the evaluation network of the centrally controlled intelligent agent loses activity with random probability during each training, the action network and the evaluation network are synchronously updated.
[0092] In some embodiments, the centrally controlled intelligent agent and the multiple intelligent agents adopt the same neural network structure, including: the centrally controlled intelligent agent and the multiple intelligent agents both adopt a deep reinforcement network based on an action-evaluation algorithm, and both use continuous actions as output.
[0093] The testing unit 24 is used to stop the training if the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold after multiple trainings, and to perform calculations after directly evaluating and cleaning the corresponding data sources based on the obtained pre-trained multiple intelligent agents.
[0094] In some embodiments, the corresponding data sources are directly evaluated and cleaned before performing calculations, including: continuing to collect data sources on different platforms, and standardizing the data sources to obtain a second standardized result, using the second standardized result as the input of the corresponding pre-trained intelligent agent, and outputting a second optimal action corresponding to the second standardized result; if the second optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned, and calculations are performed based on the obtained second cleaning result.
[0095] Those skilled in the art will appreciate that the embodiments of the present application may also provide computer program products. Therefore, the present application may adopt the form of complete hardware embodiments, complete software embodiments, or embodiments in combination with software and hardware. Moreover, the present application may adopt the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program codes.
[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0099] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for improving data computing efficiency based on an algorithm model, characterized in that: include: Collect data sources on different platforms respectively, and use different data sources as the initial environment of multiple agents at this moment, conduct data quality assessment and cleaning requirement assessment, use data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action; If the first optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned to obtain a first cleaning result, and the first cleaning result is used as the input of the corresponding agent, and a result quality score and a result requirement score of the first cleaning result are output; Obtaining the next moment environment, storing the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in an experience revisit pool, performing centralized training based on the data in the experience revisit pool, and distributing the obtained parameters to the multiple agents at the same time for parameter updating; If after multiple trainings, the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold, the training is stopped, and the corresponding data sources are directly evaluated and cleaned according to the obtained pre-trained multiple agents, and then the calculation is performed; The storing the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in the experience revisit pool includes: obtaining a weighted value of the result quality score and the result requirement score, using the weighted value as an instant reward for the first optimal action, and storing the instant reward together with the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in the experience revisit pool; The centralized training based on the data in the experience revisit pool includes: selecting batch data from the experience revisit pool to perform centralized training on the centrally controlled agent, and calculating the loss function through the training results of the batch data, and updating the action network and evaluation network of the centrally controlled agent; wherein the centrally controlled agent and the multiple agents adopt the same neural network structure.
2. The method for improving data computing efficiency based on an algorithm model as claimed in claim 1, characterized in that: The obtaining of the weighted values of the result quality score and the result requirement score includes: The result quality score is used to measure the result requirement score, and the weighted value is the result quality score; or, the result quality score is used to measure the result requirement score, and the weighted value is the result requirement score.
3. The method for improving data computing efficiency based on an algorithm model as claimed in claim 1, characterized in that: The data sources on different platforms are collected separately, including: Standardize the data sources on different platforms respectively to obtain the first standardized result. If the first standardized result is not in the pre-established centralized hash table, it is added to the centralized hash table so that the first standardized result is used as the current environment and input into the initial corresponding intelligent agent; otherwise, remove the first standardized result and re-collect the next data.
4. The method for improving data computing efficiency based on an algorithm model as claimed in claim 3, characterized in that: The data sources on different platforms are respectively standardized to obtain a first standardized result, including: According to the regular expression, data analysis is performed for data sources on different platforms to obtain multiple discrete attributes, and the multiple discrete attributes are mapped into multiple mapping vectors through an attribute screening network. According to the preset configuration, the multiple mapping vectors are converted into the first standardized results in the script format in turn.
5. The method for improving data computing efficiency based on an algorithm model as claimed in claim 1, characterized in that: The updating of the action network and the evaluation network of the centrally controlled intelligent agent comprises: During each training, after at least one neuron in at least one hidden layer of the action network or the evaluation network of the centrally controlled intelligent agent loses activity with random probability, the action network and the evaluation network are synchronously updated.
6. The method for improving data computing efficiency based on an algorithm model according to claim 1, characterized in that: The centralized control agent and the multiple agents use the same neural network structure, including: The central control agent and the multiple agents both adopt a deep reinforcement network based on an action-evaluation algorithm, and both use continuous actions as output.
7. The method for improving data computing efficiency based on an algorithm model according to claim 1, characterized in that: The corresponding data sources are directly evaluated and cleaned, and then the operations are performed, including: Continue to collect data sources on different platforms, and standardize the data sources to obtain a second standardized result, use the second standardized result as an input of the corresponding pre-trained intelligent agent, and output a second optimal action corresponding to the second standardized result; If the second optimal action is within the range of the quality threshold and the cleaning threshold, the data source is cleaned, and calculation is performed according to the obtained second cleaning result.
8. A data computing efficiency improvement system based on an algorithm model, characterized in that: include: evaluation unit, cleaning unit, training unit and testing unit; among them, The evaluation unit is used to collect data sources on different platforms respectively, and use different data sources as the current environment of the initial multiple intelligent agents respectively, to perform data quality evaluation and cleaning requirement evaluation, take data quality scores and cleaning requirement scores as actions, and select the action with the highest value as the first optimal action; The cleaning unit is used to clean the data source to obtain a first cleaning result if the first optimal action is within the range of a quality threshold and a cleaning threshold, and use the first cleaning result as an input of a corresponding agent to output a result quality score and a result requirement score of the first cleaning result; The training unit is used to obtain the next moment environment, store the current moment environment, the next moment environment, the first optimal action, the result quality score and the result requirement score in an experience revisit pool, perform centralized training based on the data in the experience revisit pool, and distribute the obtained parameters to the multiple agents at the same time for parameter update; The testing unit is used to stop the training if the slope of the curve of the data quality score or the cleaning requirement score is less than a threshold after multiple trainings, and directly perform post-evaluation cleaning for the corresponding data sources according to the obtained pre-trained multiple intelligent agents; The storing the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in the experience revisit pool includes: obtaining a weighted value of the result quality score and the result requirement score, using the weighted value as an instant reward for the first optimal action, and storing the instant reward together with the current moment environment, the next moment environment, the first optimal action, the result quality score, and the result requirement score in the experience revisit pool; The centralized training based on the data in the experience revisit pool includes: selecting batch data from the experience revisit pool to perform centralized training on the centrally controlled agent, and calculating the loss function through the training results of the batch data, and updating the action network and evaluation network of the centrally controlled agent; wherein the centrally controlled agent and the multiple agents adopt the same neural network structure.
