Model testing method, device and equipment and storage medium

By generating a test data set based on running log data and automating the test process, the problem of long construction time and insufficient intelligence of the model test data set in the existing technology is solved, and efficient model testing is achieved.

CN118733449APending Publication Date: 2024-10-01DOUYIN VISION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410788378.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In existing model testing methods, the test data set construction takes a long time and is not intelligent enough, resulting in low model testing efficiency.

Method used

By determining the target model and setting the prompt word strategy configuration information, a test data set is generated based on the running log data, including prompt word data and standard result data with corresponding relationships, and the test process is automated to improve efficiency.

Benefits of technology

It eliminates the need for manual preparation of test data sets, reduces construction time costs, and provides an automated model testing process, significantly improving the overall efficiency of model testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733449A_ABST
    Figure CN118733449A_ABST
Patent Text Reader

Abstract

The invention provides a model test method and device, equipment and a storage medium, and the method comprises the steps: firstly, determining a first target model which is provided with cue word strategy configuration information, and generating a test data set according to the cue word strategy configuration information and test basic data; and testing the first target model by using the test data set, obtaining processing result data corresponding to the first cue word data after processing of the first target model, and determining a test result of the first target model based on a comparison result of the processing result data corresponding to the first cue word and standard result data corresponding to the first cue word data. According to the embodiment of the invention, the test data set of the first target model is generated according to the running log data collected for the second target model, the test data set does not need to be prepared manually, the time cost for constructing the test data set of the model is reduced, in addition, an automatic model test process is provided, and the model test efficiency is improved on the whole.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a model testing method, device, equipment and storage medium. Background Art

[0002] Model testing refers to testing of algorithm models. Specifically, the algorithm model is tested using a test data set to determine the model test results through the model output results, which are used to evaluate the quality of the algorithm model.

[0003] Currently, in model testing methods, test data sets are usually prepared manually, the construction of test data sets takes a long time, and the entire model testing process is not intelligent enough, resulting in low overall efficiency of model testing. Summary of the invention

[0004] In order to solve the above technical problems, the embodiments of the present disclosure provide a model testing method, device, equipment and storage medium.

[0005] In a first aspect, the present disclosure provides a model testing method, the method comprising:

[0006] Determine a first target model; wherein the first target model is provided with prompt word strategy configuration information;

[0007] Generate a test data set according to the prompt word strategy configuration information and the test basic data; wherein the test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data is determined based on the operation log data collected from the second target model corresponding to the first target model;

[0008] Inputting the first prompt word data in the test data set into the first target model, and obtaining the processing result data corresponding to the first prompt word data after being processed by the first target model;

[0009] The test result of the first target model is determined based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

[0010] In an optional implementation manner, generating a test data set according to the prompt word strategy configuration information and the test basic data includes:

[0011] Perform data playback based on test basic data;

[0012] During the data playback process, a test data set is constructed according to the prompt word strategy configuration information.

[0013] In an optional implementation, the test basic data also includes simulated operation data, and the simulated operation data is operation data simulated based on real operation result data.

[0014] In an optional implementation manner, generating a test data set according to the prompt word strategy configuration information and the test basic data includes:

[0015] According to the prompt word strategy configuration information, construct prompt word data based on the test basic data;

[0016] The standard result data corresponding to the prompt word data is obtained from the test basic data, and a corresponding relationship between the prompt word data and the standard result data is established.

[0017] In an optional implementation, the first target model is a model obtained by optimizing the prompt word strategy for the second target model; or, the first target model is a model obtained by optimizing model parameters for the second target model.

[0018] In an optional implementation manner, determining the first target model includes:

[0019] In response to input operations for model configuration information and cue word strategy configuration information, a first target model is determined based on the model configuration information and the cue word strategy configuration information.

[0020] In an optional implementation manner, the determining the test result of the first target model based on the comparison result of the processing result data corresponding to the first prompt word data with the standard result data corresponding to the first prompt word data includes:

[0021] For the target data indicator, determining the indicator data value of the processing result data corresponding to the first prompt word data, and determining the indicator data value of the standard result data corresponding to the first prompt word data;

[0022] Based on the comparison result of the indicator data value of the processing result data and the indicator data value of the standard result data, the test result of the first target model is determined.

[0023] In an optional implementation, the first target model includes a code processing model, and the prompt word strategy configuration information includes at least one of code context information, code structure data, user operation data, and cursor movement data.

[0024] In a second aspect, the present disclosure further provides a model testing device, the device comprising:

[0025] A first determination module is used to determine a first target model; wherein the first target model is provided with prompt word strategy configuration information;

[0026] A first generating module, configured to generate a test data set according to the prompt word strategy configuration information and test basic data; wherein the test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data is determined based on the operation log data collected from the second target model corresponding to the first target model;

[0027] A first input module, used for inputting the first prompt word data in the test data set into the first target model, and obtaining the processing result data corresponding to the first prompt word data after being processed by the first target model;

[0028] The second determination module is used to determine the test result of the first target model based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

[0029] In a third aspect, the present disclosure provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the above method.

[0030] In a fourth aspect, the present disclosure provides a model testing device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the above method is implemented when the processor executes the computer program.

[0031] In a fifth aspect, the present disclosure provides a computer program product, wherein the computer program product comprises a computer program / instructions, and the computer program / instructions implement the above method when executed by a processor.

[0032] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has at least the following advantages:

[0033] The disclosed embodiment provides a model testing method. Specifically, first, a first target model is determined. The first target model is provided with prompt word strategy configuration information. Then, a test data set is generated according to the prompt word strategy configuration information and test basic data. The test data set includes prompt word data and standard result data having a corresponding relationship. The test basic data is determined based on the operation log data collected for the second target model corresponding to the first target model. Secondly, the first target model is tested using the test data set. Specifically, the first prompt word data in the test data set is input into the first target model. After being processed by the first target model, the processing result data corresponding to the first prompt word data is obtained. Then, based on the comparison result of the processing result data corresponding to the first prompt word and the standard result data corresponding to the first prompt word data, the test result of the first target model is determined.

[0034] The embodiment of the present disclosure generates a test data set for the first target model by using the operation log data collected for the second target model. This eliminates the need for manual preparation of the test data set, thereby reducing the time cost of constructing the test data set for the model. In addition, the embodiment of the present disclosure provides an automated model testing process, thereby improving the efficiency of model testing as a whole. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0036] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1 A flow chart of a model testing method provided by an embodiment of the present disclosure;

[0038] Figure 2 A schematic diagram of a model testing interface provided by an embodiment of the present disclosure;

[0039] Figure 3 A flow chart of another model testing method provided by an embodiment of the present disclosure;

[0040] Figure 4 A schematic diagram of the structure of a model testing device provided in an embodiment of the present disclosure;

[0041] Figure 5 A schematic structural diagram of a model testing device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0042] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0043] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0044] Model testing refers to testing of algorithmic models, while model optimization testing is a common type of model testing, which refers to testing of the model obtained after optimizing the original model to evaluate whether the optimized model has any advantages over the original model.

[0045] To this end, the disclosed embodiment provides a model testing method. Specifically, first, a first target model is determined, and the first target model is provided with prompt word strategy configuration information. Then, a test data set is generated according to the prompt word strategy configuration information and the test basic data. The test data set includes prompt word data and standard result data with a corresponding relationship. The test basic data is determined based on the operation log data collected for the second target model corresponding to the first target model. Secondly, the first target model is tested using the test data set. Specifically, the first prompt word data in the test data set is input into the first target model, and the processing result data corresponding to the first prompt word data is obtained after being processed by the first target model. Then, based on the comparison result of the processing result data corresponding to the first prompt word and the standard result data corresponding to the first prompt word data, the test result of the first target model is determined.

[0046] The embodiment of the present disclosure generates a test data set for the first target model by using the operation log data collected for the second target model. This eliminates the need for manual preparation of the test data set, thereby reducing the time cost of constructing the test data set for the model. In addition, the embodiment of the present disclosure provides an automated model testing process, thereby improving the efficiency of model testing as a whole.

[0047] To this end, the present disclosure provides a model testing method, referring to Figure 1 , is a flow chart of a model testing method provided by an embodiment of the present disclosure, specifically comprising:

[0048] S101: Determine a first target model.

[0049] The first target model is provided with prompt word strategy configuration information.

[0050] In this public embodiment, the first target model can be any type of algorithm model. Specifically, the first target model can be an algorithm model obtained by optimizing any model (hereinafter referred to as the second target model). Specifically, the first target model can be a model obtained by optimizing the prompt word strategy for the second target model; the first target model can also be a model obtained by optimizing the model parameters for the second target model. The first target model can be an optimization of any dimension of the second target model, and this is not limited in the disclosed embodiment.

[0051] In practical applications, the version number is usually used to characterize the degree of optimization of the model. The 1.0 version of the model may refer to the model before optimization, and the 2.0 version of the model may refer to the model obtained after optimizing the 1.0 version of the model. The second target model in the embodiment of the present disclosure may be the 1.0 version of the model, and the first target model may be the 2.0 version of the model obtained by optimizing the second target model.

[0052] In an optional implementation, the first target model is a model obtained by optimizing the prompt word strategy for the second target model. The prompt word strategy is a rule for determining prompt words. Specifically, the prompt word strategy may include combining multiple prompt word information. Specifically, the prompt word strategy may adjust the combination order of the prompt word information of the second target model, or re-combine based on re-input prompt word information, etc.

[0053] In another optional implementation, the first target model is a model obtained by optimizing model parameters for the second target model. Model parameters refer to configuration parameters of the model, and may specifically include parameters configured for constructing the model. Specifically, the model is optimized by adjusting the model parameters of the second target model.

[0054] In another optional implementation, the first target model can be obtained by optimizing the prompt word strategy and model parameters for the second target model at the same time, and the specific optimization method is not limited in the embodiment of the present disclosure. In addition, the first target model can also be obtained by optimizing the post-processing process of the second target model.

[0055] In the disclosed embodiment, the prompt word strategy configuration information is used to indicate the generation of the prompt word strategy, and the prompt word strategy configuration information includes information required for configuring the prompt word strategy, for example, composition information that can characterize the prompt word strategy, etc. Taking the first target model as a code processing model as an example, the prompt word strategy configuration information of the first target model may include a combination of one or more information in code context information, code structure data, user operation data, and cursor movement data. Among them, the code context information includes the corresponding environment information, state information, pending code, etc. when the first target model is triggered to run. Specifically, the code context information may include the environment information, state information, etc. of the first target model when the test is running, and the code structure data may be used to characterize the code logical structure, and the structural relationship between the codes may be effectively organized through the code structure data. The user operation data may include data related to user behavior, and may specifically include interactive behavior data generated during the user triggering the first target model to run, such as the user clicking a certain control, the user sliding behavior, etc. The cursor movement data may include the cursor movement information of the first target model when the test is running, and specifically, the cursor movement data may include the cursor display position, movement trajectory data, etc.

[0056] In practical applications, in order to facilitate the tester to test the first target model, the embodiment of the present disclosure can also display the interactive information in the model testing process in the form of a visual interface.

[0057] In an optional implementation, the model configuration information and prompt word strategy configuration information input by the user for the first target model are received through a visual interface, and then the first target model is determined. The model configuration information is used to configure the information required for the model, and specifically, the model configuration information may include model parameter configuration information, etc. The first target model can be constructed through the model configuration information, and the input method of the model configuration information may include receiving the model selected by the user through the visual interface, and determining the model as the first target model, thereby completing the input of the model configuration information.

[0058] The prompt word strategy configuration information includes information for configuring the prompt word strategy. The prompt word strategy can be generated through the prompt word strategy configuration information. The input method of the prompt word strategy configuration information can include inputting the prompt word strategy configuration information through a visual interface.

[0059] like Figure 2 , which is a schematic diagram of a model test interface provided by an embodiment of the present disclosure. The model test interface displays a model configuration information area 201, which includes a model selection area 202 and a model parameter configuration model area 203. The model test interface also displays a prompt word strategy configuration information area 204.

[0060] S102: Generate a test data set according to the prompt word strategy configuration information and test basic data.

[0061] The test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data is determined based on the operation log data collected from the second target model corresponding to the first target model.

[0062] In an embodiment of the present disclosure, the test basic data includes operation log data collected through online collection tools, etc. during the application process of the second target model, wherein the operation log data includes user operation data in the process of applying the second target model, model output data of the second target model, environmental data, etc.

[0063] In practical applications, in order to ensure that the operation log data collected for the second target model is more timely and to improve the accuracy of model testing, the embodiment of the present disclosure may also collect operation log data within a specified time period.

[0064] In practical applications, in order to ensure comprehensive coverage of test scenarios and improve the accuracy of test results, the test basic data in the embodiments of the present disclosure may also include simulated operation data, and the simulated operation data includes operation data obtained by simulation based on real behavioral operations, that is, through simulation, the result data of real operations are used to simulate a series of user behavior processes that produce this result data. In practical applications, in the application process of the second target model, when certain behavioral process data is missing in the operation log data, the embodiments of the present disclosure can be based on the result data recorded in the operation log, by simulating the execution of certain behavioral operations, to complete the series of behavioral operation data that produces the above result data in the operation log data. For example, based on the order submission result data, the behavior process of the user submitting the order is simulated to generate the behavioral operation data in the order submission process.

[0065] In the disclosed embodiment, the test data set is a collection of test data, which is used to test the first target model. The test data set includes prompt word data and standard result data having a corresponding relationship. The prompt word data can be generated based on the prompt word strategy, and the prompt word strategy is reflected by the prompt word strategy configuration information. The required data is extracted from the test basic data according to the prompt word strategy configuration information, and the prompt word data is combined into prompt word data based on the prompt word strategy as the test data of the first target model. The standard result data is used to reflect the model output result that better meets the user's needs when the corresponding prompt word data is used as the model input.

[0066] In the process of model testing, the prompt word data is used as the input data of the first target model, and the standard result data is used to measure whether the output result data of the first target model meets expectations. Specifically, by comparing the standard result data with the output result data of the first target model, it is reflected whether there is a difference between the output result data of the first target model and the model output result required by the user.

[0067] In an optional implementation, a test data set can be constructed based on the test basic data and the prompt word strategy configuration information. Specifically, the acquired test basic data is first stored in a database, and a request is initiated to the database through a data playback tool. Based on the operation log data or simulated operation data included in the test basic data, the data is executed in chronological order to reproduce the historical operation behavior. During the data playback process, the prompt word strategy is determined according to the prompt word strategy configuration information, and then, the relevant information used to constitute the prompt word data in the playback data is extracted according to the prompt word strategy to construct the prompt word data in the test data set.

[0068] The test basic data is replayed, and the embodiment of the present disclosure can specify the replay of the test basic data within a certain period of time, for example, specifying the replay of the test basic data within the last 7 days.

[0069] In actual applications, in order to obtain standard result data corresponding to the prompt word data and establish a corresponding relationship between the prompt word data and the standard result data, the embodiment of the present disclosure can also, in the process of constructing a test data set, obtain the standard result data corresponding to the prompt word data from the test basic data based on the acquired prompt word data, and establish a corresponding relationship between the prompt word data and the standard result data.

[0070] In an optional implementation, the prompt word strategy is configured according to the prompt word strategy configuration information, and then the prompt word data is constructed from the test basic data according to the prompt word strategy. Then, according to the prompt word data, the model output result with the prompt word data as the input parameter is searched from the test basic data as the standard result data, and the standard result data can reflect the model output result that better meets the user's needs when the prompt word data is used as the input. Then, a corresponding relationship between the acquired prompt word data and the above standard result data is established.

[0071] S103: inputting the first prompt word data in the test data set into the first target model, and obtaining processing result data corresponding to the first prompt word data after being processed by the first target model.

[0072] In the disclosed embodiment, the first prompt word data may be any prompt word data in the constructed test data set, and the first prompt word data may be used as input data of the first target model.

[0073] For each pair of test data samples in the test data set, that is, prompt word data and standard result data with a corresponding relationship, the embodiment of the present disclosure inputs the prompt word data into the first target model, and after processing by the first target model, obtains the processing result data of the first target model for the prompt word data.

[0074] S104: Determine a test result of the first target model based on a comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

[0075] In the disclosed embodiment, the processing result data corresponding to the first prompt word data refers to the model output result obtained by processing the first target model when the first prompt word data is used as an input parameter of the first target model.

[0076] The standard result data corresponding to the first prompt word data refers to the model output result that better meets the user's needs when the first prompt word data is used as the model input.

[0077] The comparison result between the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data in the embodiment of the present disclosure can reflect the difference between the processing result data and the standard result data of the first target model when the first prompt word data is used as an input parameter, that is, it can characterize whether the first target model achieves the expected result. Therefore, the test result of the first target model can be determined by the comparison result.

[0078] In an optional implementation, the test result of the first target model can be determined based on the target data indicator. Specifically, with respect to the target data indicator, the indicator data value of the processed result data corresponding to the first prompt word data is calculated, and the indicator data value of the standard result data corresponding to the first prompt word is obtained from the test basic data. The indicator data value of the processed result data is compared with the indicator data value of the standard result data to obtain a comparison result between the two, and the test result of the first target model is determined based on the comparison result.

[0079] The target data indicator may be one or more, and the indicator data value is the data value for the target data indicator. The target data indicator may include accuracy, sensitivity, recall rate, error rate, etc. The target data indicator may be used to measure the performance of the model. In addition, an evaluation report may be output for the target data indicator to view the test results for the first target model, so as to optimize the first target model as soon as possible and launch the first target model in time.

[0080] In addition, after determining the test results of the first target model, the embodiment of the present disclosure may also provide a visualization interface to support viewing of the test results. Specifically, the processing result data and the comparison result are displayed on the visualization interface, and the comparison result may display the index data values ​​of the first target model for multiple target data indicators, which can facilitate tuning the first target model based on the index data values ​​of multiple data indicators, so as to launch the first target model in a timely manner.

[0081] As mentioned above Figure 2 The model test interface shown has processing result data and test result viewing area 205 displayed. By processing result data and test results on the model test interface, the tester can understand whether the first target model meets expectations, so as to tune the first target model more quickly.

[0082] In the model testing method provided by the embodiment of the present disclosure, first, a first target model is determined, and the first target model is provided with prompt word strategy configuration information. Then, a test data set is generated according to the prompt word strategy configuration information and the test basic data. The test data set includes prompt word data and standard result data having a corresponding relationship. The test basic data is determined based on the operation log data collected for the second target model corresponding to the first target model. Secondly, the first target model is tested using the test data set. Specifically, the first prompt word data in the test data set is input into the first target model, and the processing result data corresponding to the first prompt word data is obtained after being processed by the first target model. Then, based on the comparison result of the processing result data corresponding to the first prompt word and the standard result data corresponding to the first prompt word data, the test result of the first target model is determined.

[0083] The embodiment of the present disclosure generates a test data set for the first target model by using the operation log data collected for the second target model. This eliminates the need for manual preparation of the test data set, thereby reducing the time cost of constructing the test data set for the model. In addition, the embodiment of the present disclosure provides an automated model testing process, thereby improving the efficiency of model testing as a whole.

[0084] In order to facilitate understanding of the above embodiments, the embodiments of the present disclosure will be introduced by taking a specific application scenario as an example, where the first target model is the 2.0 version of the code completion model, and the second target model is the 1.0 version of the code completion model. Figure 3 , which is a flow chart of a model testing method provided in an embodiment of the present disclosure.

[0085] In an optional implementation, the 2.0 version of the code completion model is configured with prompt word strategy configuration information. First, the test basic data of the 1.0 version of the code completion model is obtained, and a test data set is constructed according to the prompt word strategy configuration information and the test basic data.

[0086] Then, the first prompt word data in the test data set is input into the 2.0 version of the code completion model, and after code completion processing by the 2.0 version of the code completion model, the processing result data corresponding to the first prompt word data is obtained.

[0087] The processing result data is compared with the standard result data corresponding to the first prompt word data, and based on the comparison result, the code completion result of the 2.0 version of the code completion model is determined.

[0088] The model testing method provided by the embodiment of the present disclosure generates a test data set for the first target model by using the operation log data collected for the second target model. This eliminates the need for manual preparation of the test data set, thereby reducing the time cost of constructing the test data set for the model. In addition, the embodiment of the present disclosure provides an automated model testing process, thereby improving the efficiency of model testing as a whole.

[0089] Based on the above method embodiment, the present disclosure also provides a model testing device, referring to Figure 4 , is a schematic diagram of the structure of a model testing device provided by an embodiment of the present disclosure, the device comprising:

[0090] A first determination module 401 is used to determine a first target model; wherein the first target model is provided with prompt word strategy configuration information;

[0091] A first generating module 402 is used to generate a test data set according to the prompt word strategy configuration information and the test basic data; wherein the test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data is determined based on the operation log data collected for the second target model corresponding to the first target model;

[0092] A model processing module 403 is used to input the first prompt word data in the test data set into the first target model, and obtain the processing result data corresponding to the first prompt word data after being processed by the first target model;

[0093] The second determination module 404 is used to determine the test result of the first target model based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

[0094] In an optional implementation manner, the first generating module includes:

[0095] The data playback submodule is used to perform data playback processing based on the test basic data;

[0096] The data construction submodule is used to construct a test data set according to the prompt word strategy configuration information during the data playback process.

[0097] In an optional implementation, the test basic data also includes simulated operation data, and the simulated operation data is operation data simulated based on real operation result data.

[0098] In an optional implementation manner, the first generating module includes:

[0099] A data extraction submodule, configured to construct prompt word data based on the test basic data according to the prompt word strategy configuration information;

[0100] The relationship establishing submodule is used to obtain the standard result data corresponding to the prompt word data from the test basic data, and establish the corresponding relationship between the prompt word data and the standard result data.

[0101] In an optional implementation, the first target model is a model obtained by optimizing the prompt word strategy for the second target model; or, the first target model is a model obtained by optimizing model parameters for the second target model.

[0102] In an optional implementation manner, the first determining module is specifically configured to:

[0103] In response to input operations for model configuration information and cue word strategy configuration information, a first target model is determined based on the model configuration information and the cue word strategy configuration information.

[0104] In an optional implementation manner, the second determining module includes:

[0105] A first determination submodule, for determining, with respect to a target data indicator, an indicator data value of the processing result data corresponding to the first prompt word data, and determining an indicator data value of the standard result data corresponding to the first prompt word data;

[0106] The second determination submodule is used to determine the test result of the first target model based on the comparison result of the indicator data value of the processing result data and the indicator data value of the standard result data.

[0107] In an optional implementation, the first target model includes a code processing model, and the prompt word strategy configuration information includes at least one of code context information, code structure data, user operation data, and cursor movement data.

[0108] In the model testing device provided by the embodiment of the present disclosure, first, the first target model is determined, and the first target model is provided with prompt word strategy configuration information. Then, according to the prompt word strategy configuration information and the test basic data, a test data set is generated, and the test data set includes prompt word data and standard result data with a corresponding relationship. The test basic data is determined based on the operation log data collected for the second target model corresponding to the first target model. Secondly, the first target model is tested using the test data set. Specifically, the first prompt word data in the test data set is input into the first target model, and the processing result data corresponding to the first prompt word data is obtained after being processed by the first target model. Then, based on the comparison result of the processing result data corresponding to the first prompt word and the standard result data corresponding to the first prompt word data, the test result of the first target model is determined.

[0109] The embodiment of the present disclosure generates a test data set for the first target model by using the operation log data collected for the second target model. This eliminates the need for manual preparation of the test data set, thereby reducing the time cost of constructing the test data set for the model. In addition, the embodiment of the present disclosure provides an automated model testing process, thereby improving the efficiency of model testing as a whole.

[0110] In addition to the above-mentioned method and apparatus, the embodiments of the present disclosure further provide a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device implements the model testing method described in the embodiments of the present disclosure.

[0111] The embodiment of the present disclosure further provides a computer program product, which includes a computer program / instructions. When the computer program / instructions are executed by a processor, the model testing method described in the embodiment of the present disclosure is implemented.

[0112] In addition, the present disclosure also provides a model testing device, see Figure 5 As shown, it may include:

[0113] Processor 501, memory 502, input device 503 and output device 504. The number of processors 501 in the model testing device can be one or more. Figure 5 In some embodiments of the present disclosure, the processor 501, the memory 502, the input device 503 and the output device 504 may be connected via a bus or other means, wherein: Figure 5 The example of connecting through bus is taken in the following.

[0114] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing of the model test equipment by running the software programs and modules stored in the memory 502. The memory 502 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory 502 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 503 can be used to receive input digital or character information, and generate signal input related to user settings and function control of the model test equipment.

[0115] Specifically in this embodiment, the processor 501 will load the executable files corresponding to the processes of one or more applications into the memory 502 according to the following instructions, and the processor 501 will run the applications stored in the memory 502, thereby realizing the various functions of the above-mentioned model testing device.

[0116] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0117] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A model testing method, characterized in that: The method comprises: Determine a first target model; wherein the first target model is provided with prompt word strategy configuration information; Generate a test data set according to the prompt word strategy configuration information and the test basic data; wherein the test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data is determined based on the operation log data collected from the second target model corresponding to the first target model; Inputting the first prompt word data in the test data set into the first target model, and obtaining the processing result data corresponding to the first prompt word data after being processed by the first target model; The test result of the first target model is determined based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

2. The method according to claim 1, characterized in that The step of generating a test data set according to the prompt word strategy configuration information and the test basic data includes: Perform data playback based on test basic data; During the data playback process, a test data set is constructed according to the prompt word strategy configuration information.

3. The method according to claim 1, characterized in that: The test basic data also includes simulated operation data, which is operation data simulated based on real operation result data.

4. The method according to claim 1, characterized in that: The step of generating a test data set according to the prompt word strategy configuration information and the test basic data includes: According to the prompt word strategy configuration information, construct prompt word data based on the test basic data; The standard result data corresponding to the prompt word data is obtained from the test basic data, and a corresponding relationship between the prompt word data and the standard result data is established.

5. The method according to claim 1, characterized in that The first target model is a model obtained by optimizing the prompt word strategy for the second target model; or, the first target model is a model obtained by optimizing model parameters for the second target model.

6. The method according to claim 1, characterized in that The determining of the first target model comprises: In response to input operations for model configuration information and cue word strategy configuration information, a first target model is determined based on the model configuration information and the cue word strategy configuration information.

7. The method according to claim 1, characterized in that The determining the test result of the first target model based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data includes: For the target data indicator, determining the indicator data value of the processing result data corresponding to the first prompt word data, and determining the indicator data value of the standard result data corresponding to the first prompt word data; Based on the comparison result of the indicator data value of the processing result data and the indicator data value of the standard result data, the test result of the first target model is determined.

8. The method according to claim 1, characterized in that The first target model includes a code processing model, and the prompt word strategy configuration information includes at least one of code context information, code structure data, user operation data and cursor movement data.

9. A model testing device, characterized in that: The device comprises: A first determination module is used to determine a first target model; wherein the first target model is provided with prompt word strategy configuration information; A first generating module, configured to generate a test data set according to the prompt word strategy configuration information and the test basic data; wherein the test data set includes prompt word data and standard result data having a corresponding relationship, and the test basic data includes operation log data collected based on a second target model corresponding to the first target model; A model processing module, used for inputting the first prompt word data in the test data set into the first target model, and obtaining processing result data corresponding to the first prompt word data after being processed by the first target model; The second determination module is used to determine the test result of the first target model based on the comparison result of the processing result data corresponding to the first prompt word data and the standard result data corresponding to the first prompt word data.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device implements the method according to any one of claims 1 to 8.

11. A model testing device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product, characterized in that The computer program product comprises a computer program / instruction, and when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 8 is implemented.