Model parameter configuration method and device, equipment and storage medium
By generating a visual editing interface and combining it with document editing, the problem of poor standardization in model parameter configuration is solved, and the standardization and flexibility of parameter fields are improved.
Patent Information
- Application Number
- CN202410771377.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
AI Technical Summary
During the model parameter configuration process, the parameter fields added or deleted by the user may not comply with the regulations, or the edited parameter values may not meet the format requirements, resulting in poor standardization of the configuration.
By determining the initial parameter file of the target model, a visual editing interface is generated, the parameter file is updated according to the parameter values entered by the user, and personalized editing is performed through document editing to ensure the standardization and flexibility of the parameter fields.
It improves the standardization and flexibility of model parameter configuration, ensures that parameter fields comply with standard conditions, and meets the needs for flexible configuration of model parameters.
Smart Images

Figure CN118656116A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for configuring model parameters. Background Art
[0002] During the model deployment phase, users can configure model parameters by editing model parameters.
[0003] In the related art, when a user needs to configure the model parameters of a model, the user can first obtain the parameter document of the model and edit the model parameters in the parameter document. When editing the parameter document, the user can add new parameter fields or delete existing parameter fields in the parameter document according to actual needs, and assign parameter values to the parameter fields according to actual conditions.
[0004] However, in the above process, the parameter fields newly added or deleted by the user may not be compliant, or the parameter values edited by the user may not meet the format requirements, thereby resulting in poor standardization of the configuration of the model parameters. Summary of the invention
[0005] The present application provides a model parameter configuration method, device, equipment and storage medium to solve the problem of standardized configuration of model parameters.
[0006] In a first aspect, the present application provides a method for configuring model parameters, comprising:
[0007] Determine an initial parameter file of the target model, the initial parameter file including multiple parameter fields;
[0008] determining a plurality of first parameter fields and a plurality of second parameter fields among the plurality of parameter fields;
[0009] Generate and display a visual editing interface according to the multiple first parameter fields, and determine the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface;
[0010] Update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file, wherein the first parameter file includes multiple parameter fields and the parameter value corresponding to each first parameter field;
[0011] The first parameter file is displayed, multiple update operations of the user on the first parameter file are obtained, and the first parameter file is updated according to the multiple update operations to obtain a target parameter file corresponding to the target model, wherein the update operation is used to modify the parameter value in the first parameter file.
[0012] In a possible design, the initial parameter file also includes remark information corresponding to each parameter field; and determining multiple first parameter fields and multiple second parameter fields in the multiple parameter fields includes:
[0013] For any parameter field, determine the parameter type corresponding to the parameter field according to the remark information corresponding to the parameter field. The parameter types include system parameter type, user parameter type and user-defined type.
[0014] Determine the parameter fields corresponding to the user parameter type among the multiple parameter fields as multiple first parameter fields;
[0015] The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields are determined as multiple second parameter fields.
[0016] In a possible design, the parameter type corresponding to the parameter field is determined according to the remark information corresponding to the parameter field, including:
[0017] Perform keyword extraction processing on the remark information to obtain at least one keyword corresponding to the remark information;
[0018] Performing semantic recognition processing on at least one keyword to determine a type keyword in the at least one keyword;
[0019] Determine the parameter type of the parameter field based on the type keyword.
[0020] In a possible design, a visual editing interface is generated and displayed according to a plurality of first parameter fields, including:
[0021] Determine an unmodifiable field and a modifiable field among the plurality of first parameter fields;
[0022] Determine the parameter value corresponding to the unmodifiable field;
[0023] A visual editing interface is generated based on the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields.
[0024] In a possible design, a visual editing interface is generated according to the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields, including:
[0025] Generate a first edit box corresponding to the unmodifiable field, fill the parameter value corresponding to the unmodifiable field into the first edit box, and set the first edit box to an unmodifiable state;
[0026] Generate a second edit box corresponding to the editable field, and the second edit box is in an editable state;
[0027] A visual editing interface is generated according to the unmodifiable field, the first edit box, the modifiable field and the second edit box. The visual editing interface includes the unmodifiable field, the first edit box, the modifiable field and the second edit box. The first edit box is filled with parameter values.
[0028] In a possible design, determining the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface includes:
[0029] For any first parameter field, obtaining an initial parameter value corresponding to the first parameter field input by the user in the visual editing interface;
[0030] Determine a parameter value specification condition corresponding to the first parameter field;
[0031] If the initial parameter value satisfies the parameter value specification condition, the initial parameter value is determined as the parameter value corresponding to the first parameter field;
[0032] If the initial parameter value does not meet the parameter value specification conditions, the initial parameter value is cleared in the edit box corresponding to the first parameter field until the parameter value input by the user meets the parameter value specification conditions, and the parameter value input by the user is determined as the parameter value corresponding to the first parameter field.
[0033] In a possible design, the first parameter file is updated according to multiple update operations to obtain a target parameter file corresponding to the target model, including:
[0034] Determine the parameter field corresponding to each update operation, where the update operation is used to modify the parameter value of the corresponding parameter field;
[0035] According to the parameter field corresponding to each update operation, multiple valid update operations are determined from the multiple update operations, and the parameter field corresponding to the valid update operation is a custom parameter field;
[0036] The first parameter file is updated according to a plurality of valid update operations to obtain a target parameter file.
[0037] In a possible design, the first parameter file is updated according to multiple valid update operations to obtain a target parameter file, including:
[0038] Determine the update parameter value corresponding to each valid update operation;
[0039] In the first parameter file, the parameter value of the parameter field corresponding to each valid update operation is updated to the corresponding update parameter value to obtain a target parameter file.
[0040] In a second aspect, the present application provides a device for configuring model parameters, including a first determination module, a second determination module, a third determination module, a first updating module, and a second updating module, wherein:
[0041] The first determination module is used to determine an initial parameter file of the target model, wherein the initial parameter file includes a plurality of parameter fields;
[0042] The second determining module is used to determine a plurality of first parameter fields and a plurality of second parameter fields from the plurality of parameter fields;
[0043] The third determination module is used to generate and display a visual editing interface according to the multiple first parameter fields, and determine the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface;
[0044] The first updating module is used to update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file, wherein the first parameter file includes the multiple parameter fields and the parameter value corresponding to each first parameter field;
[0045] The second update module is used to display the first parameter file, obtain multiple update operations of the user on the first parameter file, and update the first parameter file according to the multiple update operations to obtain the target parameter file corresponding to the target model. The update operation is used to modify the parameter value in the first parameter file.
[0046] In a possible design, the second determining module is specifically used to:
[0047] For any parameter field, determine the parameter type corresponding to the parameter field according to the remark information corresponding to the parameter field, and the parameter type includes system parameter type, user parameter type and user-defined type;
[0048] Determine, among the multiple parameter fields, a parameter field corresponding to the user parameter type as the multiple first parameter fields;
[0049] The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields are determined as the multiple second parameter fields.
[0050] In a possible design, the second determining module is specifically used to:
[0051] Performing keyword extraction processing on the remark information to obtain at least one keyword corresponding to the remark information;
[0052] Performing semantic recognition processing on the at least one keyword to determine a type keyword in the at least one keyword;
[0053] The parameter type of the parameter field is determined according to the type keyword.
[0054] In a possible design, the third determination module is specifically used to:
[0055] Determining an unmodifiable field and a modifiable field among the plurality of first parameter fields;
[0056] Determine the parameter value corresponding to the unmodifiable field;
[0057] The visual editing interface is generated according to the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields.
[0058] In a possible design, the third determination module is specifically used to:
[0059] Generate a first edit box corresponding to the unmodifiable field, fill the parameter value corresponding to the unmodifiable field into the first edit box, and set the first edit box to an unmodifiable state;
[0060] Generate a second edit box corresponding to the modifiable field, where the second edit box is in a modifiable state;
[0061] The visual editing interface is generated according to the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the visual editing interface includes the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the parameter value is filled in the first edit box.
[0062] In a possible design, the third determination module is specifically used to:
[0063] For any first parameter field, obtaining an initial parameter value corresponding to the first parameter field input by the user in the visual editing interface;
[0064] Determine a parameter value specification condition corresponding to the first parameter field;
[0065] If the initial parameter value satisfies the parameter value specification condition, determining the initial parameter value as the parameter value corresponding to the first parameter field;
[0066] If the initial parameter value does not meet the parameter value specification condition, the initial parameter value is cleared in the edit box corresponding to the first parameter field until the parameter value input by the user meets the parameter value specification condition, and the parameter value input by the user is determined as the parameter value corresponding to the first parameter field.
[0067] In a possible design, the second update module is specifically used for:
[0068] Determine a parameter field corresponding to each update operation, wherein the update operation is used to modify a parameter value of the corresponding parameter field;
[0069] According to the parameter field corresponding to each update operation, a plurality of valid update operations are determined from the plurality of update operations, wherein the parameter field corresponding to the valid update operations is a custom parameter field;
[0070] The first parameter file is updated according to the multiple valid update operations to obtain the target parameter file.
[0071] In a possible design, the second update module is specifically used for:
[0072] Determine the update parameter value corresponding to each valid update operation;
[0073] In the first parameter file, the parameter value of the parameter field corresponding to each valid update operation is updated to the corresponding update parameter value to obtain the target parameter file.
[0074] In a third aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor and a memory; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the method for starting an application as described in the first aspect above and various possible designs of the first aspect.
[0075] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, a method for starting an application as described in the first aspect and various possible designs of the first aspect is implemented.
[0076] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the method for starting an application program as described in the first aspect and various possible designs of the first aspect.
[0077] The model parameter configuration method, device, equipment and storage medium provided in the present application can classify the model parameters according to the initial parameter file of the target model when the model parameters need to be configured, edit the parameters that need to be standardized through a visual editing interface, and then personalize the remaining parameters through document editing. Under the premise of satisfying the flexible configuration of the model parameters, the problem of standardization of the configuration of the model parameters is solved. BRIEF DESCRIPTION OF THE DRAWINGS
[0078] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0079] Figure 1 A schematic diagram of the system architecture provided for an embodiment of the present application;
[0080] Figure 2 It is a flow chart of a method for configuring model parameters provided in an embodiment of the present application;
[0081] Figure 3 It is a flowchart of another method for configuring model parameters provided in an embodiment of the present application;
[0082] Figure 4 A schematic diagram of a visual editing interface provided in an embodiment of the present application;
[0083] Figure 5 A schematic diagram of the structure of a device for configuring model parameters provided in an embodiment of the present application;
[0084] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0085] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0086] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0087] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0088] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0089] For ease of understanding, the following Figure 1 , the system architecture applicable to the embodiments of the present application is described.
[0090] Figure 1 This is a schematic diagram of the system architecture provided by the embodiment of this application. Figure 1 , including a terminal device 101 and a device cluster 102. The terminal device 101 can be a local device of a user, and the device cluster 102 can be a K8S cluster.
[0091] The user can deploy the model in the device cluster 102 through the terminal device 101. For example, the model file of the model can be installed in the device cluster 102. The user can configure the target parameter file of the model in the terminal device 101 and send the target parameter file to the device cluster 102 through the terminal device 101. The device cluster 102 configures the parameters of the model according to the target parameter file to complete the deployment of the model in the device cluster 102.
[0092] In the related art, when a user needs to configure the model parameters of a model, the user can first obtain the parameter document of the model and edit the model parameters in the parameter document. When editing the parameter document, the user can add new parameter fields or delete existing parameter fields in the parameter document according to actual needs, and assign parameter values to the parameter fields according to actual conditions. However, the parameter fields added or deleted by the user may not be compliant, or the parameter values edited by the user may not meet the format requirements, resulting in poor standardization of the configuration of the model parameters.
[0093] In response to the above technical problems, in an embodiment of the present application, when it is necessary to configure the model parameters, the model parameters can be classified according to the initial parameter file of the target model, the parameters that need to be standardized can be edited through a visual editing interface, and the remaining parameters can be personalized through document editing. Under the premise of satisfying the flexible configuration of the model parameters, the standardization of the configuration of the model parameters is improved.
[0094] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0095] Figure 2 This is a flow chart of a method for configuring model parameters provided in an embodiment of the present application. Figure 2 As shown, the method may include the following steps:
[0096] S201, determine the initial parameter file of the target model.
[0097] The execution subject of the embodiment of the present application may be a terminal device, and the terminal device may be a local device of the user.
[0098] The terminal device can determine the initial parameter file according to the target model.
[0099] The initial parameter file may include multiple parameter fields, such as a model path field, a name field, a port field, or an execution period field.
[0100] The initial parameter file may also include remark information corresponding to each parameter field, and the remark information is used to explain the meaning of the parameter field, specification conditions, whether it can be modified, parameter type and other information.
[0101] For example, assuming that the parameter field is a port field, the remark information corresponding to the parameter field may be: the parameter field indicates the port number of the model, the parameter value corresponding to the parameter field is a number, the parameter value corresponding to the parameter field can be modified, and the parameter type of the parameter field is a user parameter type.
[0102] S202: Determine a plurality of first parameter fields and a plurality of second parameter fields from a plurality of parameter fields.
[0103] The terminal device may determine a parameter type of each parameter field, and determine a plurality of first parameter fields and a plurality of second parameter fields in the plurality of parameter fields according to the parameter type.
[0104] The parameter types of the parameter field may include system parameter types, user parameter types, and user-defined types.
[0105] The parameter field corresponding to the system parameter type is the system parameter field. The system parameter field is a parameter field determined by the terminal device, and the parameter value corresponding to the system parameter field cannot be modified by the user.
[0106] The parameter field corresponding to the user parameter type is the user parameter field, which includes unmodifiable fields and modifiable fields.
[0107] The parameter field corresponding to the custom type is the custom parameter field. The parameter value corresponding to the custom parameter field can be modified by the user, and the parameter value can be empty.
[0108] The parameter fields corresponding to the user parameter type among the multiple parameter fields may be determined as the multiple first parameter fields. The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields may be determined as the multiple second parameter fields.
[0109] S203: Generate and display a visual editing interface according to the multiple first parameter fields.
[0110] The plurality of first parameter fields include unmodifiable fields and modifiable fields.
[0111] The parameter value corresponding to the unmodifiable field has been determined and cannot be modified. For example, the unmodifiable field may be a model version number, and the parameter value corresponding to the unmodifiable field may be V3.0.
[0112] The parameter value corresponding to the modifiable field can be edited by the user, and the corresponding parameter value can be empty or any original parameter value that meets the parameter value specification conditions. For example, the modifiable field can be a port number, and the parameter value corresponding to the modifiable field can be empty or 8000.
[0113] A visual editing interface may be generated in the following manner: determining unmodifiable fields and modifiable fields among multiple first parameter fields; determining parameter values corresponding to the unmodifiable fields; and generating a visual editing interface based on the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields.
[0114] The initial parameter file includes parameter values corresponding to the unmodifiable fields. Accordingly, the parameter values corresponding to the unmodifiable fields can be obtained in the initial file.
[0115] The visual editing interface may be displayed in the form of a form, which may include unmodifiable fields, parameter values corresponding to the unmodifiable fields, and modifiable fields.
[0116] S204: Determine the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface.
[0117] The visual editing interface includes unmodifiable fields, parameter values corresponding to the unmodifiable fields, modifiable fields, and edit boxes corresponding to the modifiable fields. For any first parameter field, if the first parameter field is an unmodifiable field, the corresponding parameter value in the visual editing interface can be determined as the parameter value corresponding to the first parameter field; if the first parameter field is a modifiable field, the parameter value entered by the user in the corresponding edit box can be determined as the parameter value corresponding to the first parameter field.
[0118] S205. Update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file.
[0119] For any first parameter field, an original parameter value corresponding to the first parameter field may be determined in the initial parameter file, and the original parameter value corresponding to the first parameter field in the initial parameter file may be updated to the parameter value corresponding to the first parameter field.
[0120] For example, assuming that the initial parameter file includes an execution cycle field, the original parameter value corresponding to the execution cycle field in the initial parameter file is 5, and the parameter value corresponding to the execution cycle field determined in S204 is 3, then in the initial parameter file, the parameter value corresponding to the execution cycle field is modified to 3.
[0121] S206: Display the first parameter file, and obtain multiple update operations of the user on the first parameter file.
[0122] The update operation is used to modify the parameter value in the first parameter file.
[0123] For example, if the parameter field is the update delay time, and the parameter value corresponding to the parameter field is 20, the update operation may be to change the parameter value corresponding to the parameter field from 20 to 10.
[0124] S207: Update the first parameter file according to multiple update operations to obtain a target parameter file corresponding to the target model.
[0125] The first parameter file may be updated in the following manner: determining a parameter field corresponding to each update operation; determining multiple valid update operations from multiple update operations based on the parameter field corresponding to each update operation, and updating the first parameter file based on the multiple valid update operations to obtain a target parameter file.
[0126] The parameter field corresponding to the valid update operation is a custom parameter field. That is, if the user enters an update operation for the parameter value of the custom parameter field, the update operation is a valid update operation. If the user enters an update operation for the parameter value of the system parameter field, the update operation is an invalid update operation. In this way, the user can be prevented from modifying the parameter value of the system parameter field.
[0127] For example, a target parameter file could look like this:
[0128] Model name: Visualization model#System parameter type, must be an example value
[0129] The configuration list of the container:
[0130] Port: 8000#User parameter type
[0131] Probe request interval: 5#User parameter type
[0132] Storage location: Disk D#System parameter type, automatically generate parameters
[0133] Number of copies of the service running: 1#Custom parameter type
[0134] In an embodiment of the present application, when it is necessary to configure the model parameters, the terminal device can classify the parameter fields according to the initial parameter file of the target model, edit the first parameter field through a visual editing interface, determine the parameter value corresponding to each first parameter field, and update it to the initial parameter file to obtain the first parameter file; the user can update the first parameter file and update the first parameter file according to the update operation to obtain the target parameter file corresponding to the target model, which not only meets the standardization of the model parameter configuration, but also improves the flexibility of the model parameter configuration.
[0135] Based on any of the above embodiments, Figure 3 , the configuration process of the model parameters is further explained in detail.
[0136] Figure 3 A flowchart of another method for configuring model parameters provided in an embodiment of the present application.
[0137] See also Figure 3 , the method may include the following steps:
[0138] S301, determine the initial parameter file of the target model.
[0139] The initial parameter file includes the remark information corresponding to each parameter field.
[0140] It should be noted that the execution process of S301 can refer to S201 and will not be described in detail here.
[0141] S302: Determine the parameter type of the parameter field according to the remark information.
[0142] The comment information can be used to explain the parameter type of the parameter field.
[0143] The parameter types of the parameter field may include system parameter types, user parameter types, and user-defined types.
[0144] The parameter type of the parameter field can be determined in the following manner: the terminal device can perform keyword extraction processing on the remark information corresponding to each parameter field to obtain at least one keyword corresponding to the remark information; perform semantic recognition processing on at least one keyword to determine a type keyword in at least one keyword; and determine the parameter type of the parameter field based on the type keyword.
[0145] For example, assuming that the parameter field is an execution cycle, the remark information corresponding to the parameter field is "This parameter field indicates the model execution cycle, the parameter value corresponding to the parameter field is a number, the parameter value corresponding to the parameter field can be modified, and the parameter type of the parameter field is a custom type". The terminal device can perform keyword extraction processing on the remark information, and obtain keywords corresponding to the remark information including: "execution cycle", "value is a number", "can be modified", and "custom type"; then perform semantic recognition on the keywords to determine that the type keyword is "custom type"; based on the type keyword, it can be determined that the parameter type of the parameter field is a custom type.
[0146] S303: Determine a plurality of first parameter fields and a plurality of second parameter fields in the initial parameter file according to the parameter type of the parameter field.
[0147] The parameter fields corresponding to the user parameter type among the multiple parameter fields may be determined as multiple first parameter fields.
[0148] The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields are determined as multiple second parameter fields.
[0149] S304. Determine, among the multiple first parameter fields, unmodifiable fields and modifiable fields.
[0150] Whether a parameter field is a non-modifiable field or a modifiable field can be determined in the following manner: the terminal device can perform keyword extraction processing on the remark information corresponding to each parameter field to obtain at least one keyword corresponding to the remark information; perform semantic recognition processing on at least one keyword to determine a keyword indicating whether it is modifiable in at least one keyword; and determine whether the parameter field is a non-modifiable field or a modifiable field based on the determined keyword.
[0151] For example, assuming that the parameter field is an execution cycle, the remark information corresponding to the parameter field is "This parameter field indicates the model execution cycle, the parameter value corresponding to the parameter field is a number, the parameter value corresponding to the parameter field can be modified, and the parameter type of the parameter field is a custom type". The terminal device can perform keyword extraction processing on the remark information, and obtain keywords corresponding to the remark information including: "execution cycle", "value is a number", "can be modified", and "custom type"; then perform semantic recognition on the keywords to determine whether the keyword indicating whether it can be modified is "can be modified"; based on the keyword whether it can be modified, it can be determined that the parameter field is a modifiable field.
[0152] S305. Generate a first edit box corresponding to the unmodifiable field according to the unmodifiable field and the parameter value corresponding to the unmodifiable field.
[0153] For any unmodifiable field, the terminal device can generate a first edit box corresponding to the unmodifiable field, fill the parameter value corresponding to the unmodifiable field into the corresponding first edit box, and set the first edit box to an unmodifiable state.
[0154] S306: Generate a second edit box corresponding to the modifiable field according to the modifiable field.
[0155] For any modifiable field, the terminal device may generate a second edit box corresponding to the modifiable field, and set the second edit box to a modifiable state.
[0156] S307: Generate a visual editing interface according to the unmodifiable field, the first edit box, the modifiable field, and the second edit box.
[0157] The visual editing interface may be displayed in the form of a form, which may include an unmodifiable field, a first edit box, a modifiable field, and a second edit box.
[0158] In the visual editing interface, the unmodifiable field is adjacent to the corresponding first edit box, and the unmodifiable field is located in front of the corresponding first edit box. The modifiable field is adjacent to the corresponding second edit box, and the modifiable field is located in front of the corresponding second edit box.
[0159] Next, combine Figure 4 , describes the visual editing interface.
[0160] Figure 4 For a schematic diagram of the visual editing interface provided in the embodiment of this application, please see Figure 4 , including a visual editing interface of a terminal device. The visual editing interface includes a first parameter field and an edit box corresponding to the first parameter field. In the visual editing interface, the first edit box corresponding to the non-modifiable field "name" is filled with the corresponding parameter value "voice model", and the parameter value cannot be modified; the second edit box corresponding to the modifiable field "port number" and the second edit box corresponding to the modifiable field "execution cycle" can be modified.
[0161] After the visual editing interface is generated, the user can edit the parameter value corresponding to each first parameter field in the visual editing interface. For any first parameter field, execute S308-S312.
[0162] S308: Obtain an initial parameter value corresponding to the first parameter field input by the user in the visual editing interface.
[0163] For any first parameter field, if the first parameter field is a modifiable field, the parameter value entered by the user in the corresponding edit box can be determined as the initial parameter value corresponding to the first parameter field. S309: Determine the parameter value specification condition corresponding to the first parameter field.
[0164] The parameter value specification condition corresponding to the first parameter field can be determined in the following manner: the terminal device can perform keyword extraction processing on the remark information corresponding to each parameter field to obtain at least one keyword corresponding to the remark information; perform semantic recognition processing on at least one keyword to determine a keyword indicating the parameter value specification condition in at least one keyword; based on the determined keyword, the parameter value specification condition corresponding to the first parameter field can be determined.
[0165] For example, assuming that the parameter field is the time interval of the execution cycle, the remark information corresponding to the parameter field is "This parameter field indicates the time interval of the model execution cycle, the parameter value corresponding to the parameter field is a number, the parameter value corresponding to the parameter field can be modified, and the parameter type of the parameter field is a custom type". The terminal device can perform keyword extraction processing on the remark information, and obtain keywords corresponding to the remark information including: "time interval of the execution cycle", "value is a number", "can be modified", "custom type"; then perform semantic recognition on the keywords, and determine that the keyword indicating the parameter value specification condition is "value is a number"; based on the keyword indicating the parameter value specification condition, it can be determined that the parameter value specification condition of the parameter field is "value is a number".
[0166] S310: Determine whether the initial parameter value corresponding to the first parameter field meets the parameter value specification condition.
[0167] If yes, execute S311.
[0168] If not, execute S312.
[0169] S311. Determine the initial parameter value as the parameter value corresponding to the first parameter field.
[0170] S312: Clear the initial parameter value in the edit box corresponding to the first parameter field until the parameter value input by the user meets the parameter value specification condition, and then determine the parameter value input by the user as the parameter value corresponding to the first parameter field.
[0171] After clearing the initial parameter field in the edit box corresponding to the first parameter field, the user can enter the parameter value again in the edit box. Each time the user enters a parameter value in the edit box, it is determined whether the input parameter value meets the parameter value specification condition, and the process is repeated until the parameter value entered by the user meets the parameter value specification condition.
[0172] S313: Update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file.
[0173] S314: Display the first parameter file, and obtain multiple update operations of the user on the first parameter file.
[0174] It should be noted that the execution process of the above S313-S314 can be referred to S205-S206, and will not be repeated here.
[0175] S315. Determine multiple valid update operations according to the multiple update operations.
[0176] The terminal device can determine multiple valid update operations according to the parameter field corresponding to each update operation, wherein the parameter field corresponding to the valid update operation is a custom parameter field.
[0177] S316: Determine update parameter values corresponding to multiple valid update operations.
[0178] S317. In the first parameter file, update the parameter value of the parameter field corresponding to each valid update operation to the corresponding update parameter value to obtain a target parameter file.
[0179] It should be noted that the execution process of the above S316-S317 can be referred to S207 and will not be repeated here.
[0180] In an embodiment of the present application, when it is necessary to configure the model parameters, the terminal device can classify the parameter fields according to the initial parameter file of the target model, edit the first parameter field through a visual editing interface, determine the parameter value corresponding to each first parameter field, and update it to the initial parameter file to obtain the first parameter file; the user can update the first parameter file, the terminal device determines the valid update operations in the update operation, and updates the first parameter file according to each valid update operation to obtain the target parameter file corresponding to the target model, which not only meets the standardization of the model parameter configuration, but also improves the flexibility of the model parameter configuration.
[0181] Figure 5 This is a schematic diagram of a configuration device for model parameters provided in an embodiment of the present application. Figure 5 The model parameter configuration device 10 includes: a first determination module 11, a second determination module 12, a third determination module 13, a first update module 14 and a second update module 15, wherein:
[0182] The first determination module 11 is used to determine an initial parameter file of the target model, wherein the initial parameter file includes a plurality of parameter fields;
[0183] The second determining module 12 is used to determine a plurality of first parameter fields and a plurality of second parameter fields from the plurality of parameter fields;
[0184] The third determination module 13 is used to generate and display a visual editing interface according to the multiple first parameter fields, and determine the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface;
[0185] The first updating module 14 is used to update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file, wherein the first parameter file includes the multiple parameter fields and the parameter value corresponding to each first parameter field;
[0186] The second update module 15 is used to display the first parameter file, obtain multiple update operations of the user on the first parameter file, and update the first parameter file according to the multiple update operations to obtain the target parameter file corresponding to the target model. The update operation is used to modify the parameter value in the first parameter file.
[0187] A model parameter configuration device provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0188] In a possible design, the second determining module 12 is specifically configured to:
[0189] For any parameter field, determine the parameter type corresponding to the parameter field according to the remark information corresponding to the parameter field, and the parameter type includes system parameter type, user parameter type and user-defined type;
[0190] Determine, among the multiple parameter fields, a parameter field corresponding to the user parameter type as the multiple first parameter fields;
[0191] The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields are determined as the multiple second parameter fields.
[0192] In a possible design, the second determining module 12 is specifically configured to:
[0193] Performing keyword extraction processing on the remark information to obtain at least one keyword corresponding to the remark information;
[0194] Performing semantic recognition processing on the at least one keyword to determine a type keyword in the at least one keyword;
[0195] The parameter type of the parameter field is determined according to the type keyword.
[0196] In a possible design, the third determining module 13 is specifically configured to:
[0197] Determining an unmodifiable field and a modifiable field among the plurality of first parameter fields;
[0198] Determine the parameter value corresponding to the unmodifiable field;
[0199] The visual editing interface is generated according to the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields.
[0200] In a possible design, the third determining module 13 is specifically configured to:
[0201] Generate a first edit box corresponding to the unmodifiable field, fill the parameter value corresponding to the unmodifiable field into the first edit box, and set the first edit box to an unmodifiable state;
[0202] Generate a second edit box corresponding to the modifiable field, where the second edit box is in a modifiable state;
[0203] The visual editing interface is generated according to the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the visual editing interface includes the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the parameter value is filled in the first edit box.
[0204] In a possible design, the third determining module 13 is specifically configured to:
[0205] For any first parameter field, obtaining an initial parameter value corresponding to the first parameter field input by the user in the visual editing interface;
[0206] Determine a parameter value specification condition corresponding to the first parameter field;
[0207] If the initial parameter value satisfies the parameter value specification condition, determining the initial parameter value as the parameter value corresponding to the first parameter field;
[0208] If the initial parameter value does not meet the parameter value specification condition, the initial parameter value is cleared in the edit box corresponding to the first parameter field until the parameter value input by the user meets the parameter value specification condition, and the parameter value input by the user is determined as the parameter value corresponding to the first parameter field.
[0209] In a possible design, the second updating module 15 is specifically used for:
[0210] Determine a parameter field corresponding to each update operation, wherein the update operation is used to modify a parameter value of the corresponding parameter field;
[0211] According to the parameter field corresponding to each update operation, a plurality of valid update operations are determined from the plurality of update operations, wherein the parameter field corresponding to the valid update operations is a custom parameter field;
[0212] The first parameter file is updated according to the multiple valid update operations to obtain the target parameter file.
[0213] In a possible design, the second updating module 15 is specifically used for:
[0214] Determine the update parameter value corresponding to each valid update operation;
[0215] In the first parameter file, the parameter value of the parameter field corresponding to each valid update operation is updated to the corresponding update parameter value to obtain the target parameter file.
[0216] A model parameter configuration device provided in an embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.
[0217] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device may include: a transceiver 111 , a processor 112 , and a memory 113 .
[0218] The processor 112 executes the computer execution instructions stored in the memory, so that the processor 112 executes the scheme in the above embodiment. The processor 112 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0219] The memory 113 is connected to the processor 112 via a system bus and completes communication between them. The memory 113 is used to store computer program instructions.
[0220] The transceiver 111 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.
[0221] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0222] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.
[0223] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the method for configuring model parameters in the above embodiment.
[0224] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the method for configuring the model parameters of the above embodiment.
[0225] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the method for configuring the model parameters in the above embodiment can be implemented.
[0226] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0227] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.
[0228] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0229] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.
[0230] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0231] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0232] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0233] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.
[0234] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.
[0235] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0236] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for configuring model parameters, It is characterized in that include: Determine an initial parameter file of the target model, wherein the initial parameter file includes a plurality of parameter fields; determining a plurality of first parameter fields and a plurality of second parameter fields among the plurality of parameter fields; Generate and display a visual editing interface according to the multiple first parameter fields, and determine a parameter value corresponding to each first parameter field according to a parameter value input by a user in the visual editing interface; Update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file, wherein the first parameter file includes the multiple parameter fields and the parameter value corresponding to each first parameter field; The first parameter file is displayed, multiple update operations of the user on the first parameter file are obtained, and the first parameter file is updated according to the multiple update operations to obtain a target parameter file corresponding to the target model, wherein the update operations are used to modify parameter values in the first parameter file.
2. The method according to claim 1, It is characterized in that The initial parameter file also includes remark information corresponding to each parameter field; determining multiple first parameter fields and multiple second parameter fields in the multiple parameter fields includes: For any parameter field, determine the parameter type corresponding to the parameter field according to the remark information corresponding to the parameter field, and the parameter type includes system parameter type, user parameter type and user-defined type; Determine, among the multiple parameter fields, a parameter field corresponding to the user parameter type as the multiple first parameter fields; The parameter fields corresponding to the system parameter type and the custom parameter type among the multiple parameter fields are determined as the multiple second parameter fields.
3. The method according to claim 2, It is characterized in that Determining the parameter type corresponding to the parameter field according to the remark information corresponding to the parameter field includes: Performing keyword extraction processing on the remark information to obtain at least one keyword corresponding to the remark information; Performing semantic recognition processing on the at least one keyword to determine a type keyword in the at least one keyword; The parameter type of the parameter field is determined according to the type keyword.
4. The method according to any one of claims 1 to 3, It is characterized in that Generating and displaying a visual editing interface according to the plurality of first parameter fields includes: Determining an unmodifiable field and a modifiable field among the plurality of first parameter fields; Determine the parameter value corresponding to the unmodifiable field; The visual editing interface is generated according to the unmodifiable fields, the parameter values corresponding to the unmodifiable fields, and the modifiable fields.
5. The method according to claim 4, It is characterized in that Generating the visual editing interface according to the unmodifiable field, the parameter value corresponding to the unmodifiable field, and the modifiable field includes: Generate a first edit box corresponding to the unmodifiable field, fill the parameter value corresponding to the unmodifiable field into the first edit box, and set the first edit box to an unmodifiable state; Generate a second edit box corresponding to the modifiable field, where the second edit box is in a modifiable state; The visual editing interface is generated according to the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the visual editing interface includes the unmodifiable field, the first edit box, the modifiable field and the second edit box, and the parameter value is filled in the first edit box.
6. The method according to any one of claims 1 to 5, It is characterized in that Determining the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface includes: For any first parameter field, obtaining an initial parameter value corresponding to the first parameter field input by the user in the visual editing interface; Determine a parameter value specification condition corresponding to the first parameter field; If the initial parameter value satisfies the parameter value specification condition, determining the initial parameter value as the parameter value corresponding to the first parameter field; If the initial parameter value does not meet the parameter value specification condition, the initial parameter value is cleared in the edit box corresponding to the first parameter field until the parameter value input by the user meets the parameter value specification condition, and the parameter value input by the user is determined as the parameter value corresponding to the first parameter field.
7. The method according to any one of claims 1 to 6, It is characterized in that The first parameter file is updated according to the multiple update operations to obtain a target parameter file corresponding to the target model, including: Determine a parameter field corresponding to each update operation, wherein the update operation is used to modify a parameter value of the corresponding parameter field; According to the parameter field corresponding to each update operation, a plurality of valid update operations are determined from the plurality of update operations, wherein the parameter field corresponding to the valid update operations is a custom parameter field; The first parameter file is updated according to the multiple valid update operations to obtain the target parameter file.
8. The method according to claim 7, It is characterized in that The first parameter file is updated according to the multiple valid update operations to obtain the target parameter file, including: Determine the update parameter value corresponding to each valid update operation; In the first parameter file, the parameter value of the parameter field corresponding to each valid update operation is updated to the corresponding update parameter value to obtain the target parameter file.
9. A device for configuring model parameters, It is characterized in that It includes a first determining module, a second determining module, a third determining module, a first updating module and a second updating module, wherein: The first determination module is used to determine an initial parameter file of the target model, wherein the initial parameter file includes a plurality of parameter fields; The second determining module is used to determine a plurality of first parameter fields and a plurality of second parameter fields from the plurality of parameter fields; The third determination module is used to generate and display a visual editing interface according to the multiple first parameter fields, and determine the parameter value corresponding to each first parameter field according to the parameter value input by the user in the visual editing interface; The first updating module is used to update the initial parameter file according to the parameter value corresponding to each first parameter field to obtain a first parameter file, wherein the first parameter file includes the multiple parameter fields and the parameter value corresponding to each first parameter field; The second update module is used to display the first parameter file, obtain multiple update operations of the user on the first parameter file, and update the first parameter file according to the multiple update operations to obtain the target parameter file corresponding to the target model. The update operation is used to modify the parameter value in the first parameter file.
10. An electronic device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 8 when being executed by a processor.
Citation Information
Cited By
Model parameter adjusting method and device and electronic equipment
CN121166222A
