CN-122019007-A - Method and device for determining target template, storage medium and computer program product
Abstract
The application discloses a method and a device for determining a target template, a storage medium and a computer program product, and relates to the field of finance, wherein the method for determining the target template comprises the steps of acquiring performance indexes of M first parameters and first scores of M performance indexes in a first template under the condition that a first task sent by a target object is received for any first template in N task templates, wherein N, M is a positive integer; the method comprises the steps of determining a comprehensive score of a first template according to M first scores, determining task categories of the first tasks, determining a plurality of second templates which are the same as the task categories from N task templates, and determining a third template with the highest score in the plurality of second templates as a target template according to the comprehensive score, wherein the target template is used for executing the first tasks.
Inventors
- WANG SHOUREN
- XUE QIAN
- LV QI
- YE JIARUI
Assignees
- 中债金融估值中心有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251216
Claims (10)
- 1. A method of determining a target template, comprising: For any first template in N task templates, under the condition that a first task sent by a target object is received, acquiring performance indexes of M first parameters in the first template and first scores of M performance indexes, wherein N, M are positive integers; Determining the comprehensive score of the first template according to the M first scores, and determining the task category of the first task; determining a plurality of second templates which are the same as the task categories from the N task templates; And determining a third template with the highest score in the plurality of second templates as a target template according to the comprehensive score, wherein the target template is used for executing the first task.
- 2. The method of determining a target template according to claim 1, wherein before determining the composite score of the first template from the M first scores, the method further comprises: determining first weights corresponding to the M performance indexes; And carrying out weighted summation on the M first scores according to the M first weights to obtain a second score.
- 3. The method of determining a target template according to claim 2, wherein before determining the composite score of the first template from the M first scores, the method further comprises: Performing fuzzy grade judgment on the M performance indexes according to the M first scores to obtain fuzzy grades corresponding to the M performance indexes; determining a third score and a second weight corresponding to the M fuzzy grades according to a preset fuzzy logic rule; And carrying out weighted summation on the M third scores according to the M second weights to obtain a fourth score.
- 4. A method of determining a target template according to claim 3, wherein determining a composite score of the first template from M first scores comprises: Determining an objective fusion function according to the first template; and determining the comprehensive score according to the target fusion function, the second score and the fourth score.
- 5. The method of determining a target template according to claim 1, wherein before determining the composite score of the first template from the M first scores, the method further comprises: Determining whether a fifth score lower than a first preset value exists in the M first scores; and under the condition that the fifth score lower than the first preset value exists in the M first scores, adjusting a second parameter corresponding to the fifth score through an iterative optimization algorithm, wherein the M first parameters comprise the second parameter.
- 6. The method of claim 5, wherein after adjusting the second parameter corresponding to the fifth score by an iterative optimization algorithm, the method further comprises: determining whether the sixth score of the adjusted second parameter is higher than or equal to the first preset value; Determining that the second parameter optimization is successful under the condition that the sixth score is higher than or equal to the first preset value; And sending an early warning signal under the condition that the sixth score is lower than the first preset value, wherein the early warning signal is used for indicating the target object to analyze the abnormal reason of the second parameter.
- 7. A target template determining apparatus, comprising: the acquisition module is used for acquiring performance indexes of M first parameters and first scores of M performance indexes in the first templates under the condition that the first task sent by the target object is received for any first template in the N task templates, wherein N, M are positive integers; The first determining module is used for determining the comprehensive score of the first template according to M first scores and determining the task category of the first task; A second determining module, configured to determine a plurality of second templates that are the same as the task category from the N task templates; and the third determining module is used for determining a third template with the highest score in the plurality of second templates as a target template according to the comprehensive score, wherein the target template is used for executing the first task.
- 8. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 6.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 6 when the computer program is executed.
- 10. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
Description
Method and device for determining target template, storage medium and computer program product Technical Field The present application relates to the field of finance, and in particular, to a method and apparatus for determining a target template, a storage medium, and a computer program product. Background In the context of real-time data processing and streaming batch integrated processing, large data processing frameworks such as Flink are favored for their powerful real-time data analysis capabilities. However, as the popularity and complexity of flank applications increases, the construction, configuration, and optimization of flank tasks face a number of challenges, particularly in the selection of parameter configurations. The parameter template manager is used as a core component for automatically generating and managing the Flink tasks, and has the function of rapidly configuring and starting the Flink tasks through the predefined parameter templates so as to adapt to the requirements of different business scenes. However, the existing parameter template manager lacks a self-evaluation mechanism for template performance, and cannot adjust template selection according to the real-time state of task operation and performance indexes, so that the template selection depends more on preset rules or manual experience, and intelligentization and dynamics are difficult to realize. Aiming at the problem that in the related art, when a parameter template manager receives a task, the accuracy of template selection is not high, no effective solution is proposed at present. Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art. Disclosure of Invention The embodiment of the application provides a method and a device for determining a target template, a storage medium and a computer program product, which at least solve the problem of low efficiency in the related art due to the disorder and the isomerism of version files in a data scheduling task by using a traditional version file difference identification method. According to one aspect of the embodiment of the application, a method for determining a target template is provided, wherein the method comprises the steps of obtaining performance indexes of M first parameters and first scores of M performance indexes in a first template under the condition that a first task sent by a target object is received for any first template in N task templates, determining the comprehensive score of the first template according to the M first scores, determining a plurality of second templates which are the same as the task category from the N task templates, and determining a third template with the highest score in the plurality of second templates as the target template according to the comprehensive score, wherein the target template is used for executing the first task. In an exemplary embodiment, before determining the comprehensive score of the first template according to the M first scores, the method further includes determining first weights corresponding to the M performance indexes, and weighting and summing the M first scores according to the M first weights to obtain a second score. In an exemplary embodiment, before determining the comprehensive score of the first template according to the M first scores, the method further includes performing fuzzy grade determination on the M performance indexes according to the M first scores to obtain fuzzy grades corresponding to the M performance indexes, determining third scores and second weights corresponding to the M fuzzy grades according to a preset fuzzy logic rule, and performing weighted summation on the M third scores according to the M second weights to obtain a fourth score. In one exemplary embodiment, determining the composite score of the first template from the M first scores includes determining an objective fusion function from the first template, and determining the composite score from the objective fusion function, the second score, and the fourth score. In an exemplary embodiment, before determining the composite score of the first template according to the M first scores, the method further includes determining whether a fifth score lower than a first preset value exists in the M first scores, and adjusting a second parameter corresponding to the fifth score through an iterative optimization algorithm if it is determined that the fifth score lower than the first preset value exists in the M first scores, wherein the M first parameters include the second parameter. In an exemplary embodiment, after the second parameter corresponding to the fifth score is adjusted by an iterative optimization algorithm, the method further includes determining whether a sixth score of the adjusted second parameter is higher than or equal to the first preset value, determining that the second parameter is successfully optimized if the sixth score is higher than o