Parameter tree design method, device, electronic device and storage medium

Through the hierarchical structure and calculation method of the parameter tree, the problem of relying on expert knowledge and parameter adjustment in software development and testing is solved, efficient modular process design and coding is achieved, and the efficiency and compatibility of software development is improved.

CN119473223BActive Publication Date: 2025-04-08HUAXINCHENG (HANGZHOU) TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510053106.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-04-08
Estimated Expiration
2045-01-14

AI Technical Summary

Technical Problem

The existing technology lacks systematic organizational structure and computable characteristics in software development and testing, and relies heavily on user experience and expert knowledge, resulting in inefficient parameter adjustment, difficulty in compatibility, and slow down software development progress.

Method used

A parameter tree structure is designed. By arranging the parameters in the job process according to a hierarchical structure, defining the types and values ​​of the parent node and child nodes, forming a parameter tree, and representing and executing the job process through parameter vectors.

Benefits of technology

It realizes modular process design and coding, improves development efficiency, simplifies debugging and backtracking processes, reduces dependence on expert knowledge, and improves the efficiency and compatibility of software development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473223B_ABST
    Figure CN119473223B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, electronic device and storage medium for designing a parameter tree. The scheme can arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and a child node, and the child nodes at different levels have a parent-child relationship, initialize the hierarchical structure, and define the type and value of the parent node in the hierarchical structure, define the type and value of the child node in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree, represent the parameter tree through a parameter vector, and execute the corresponding operation process according to the parameter vector. The embodiment of the present application designs a basic tree structure of parameters, and defines the characteristics and calculation method of the parameter tree, and can perform simple modular process design and coding according to the characteristics of each node, thereby improving development efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software development and testing technology, and in particular to a parameter tree design method, device, electronic device and storage medium. Background Art

[0002] In software development and testing application scenarios, different processes and multiple models and algorithms are usually freely combined, and there are very diverse and flexible computing processes according to different needs. These are usually organized manually or by experience, and are very dependent on expert knowledge. In basic scenarios, although there are tools such as GUI to assist, it is usually easy for developers to have trouble using them due to the complexity and diversity of the scenarios. Due to efficiency and specificity, some scenarios cannot use GUI, and can only be controlled by coding scripts, which is more dependent on expert knowledge. Both software development and customer use are very challenging. Software debugging and backtracking can also be very difficult depending on the combination of different processes and parameters.

[0003] Therefore, current technologies are usually a flat process based on respective parameter designs, without a certain systematic organizational structure and computable characteristics, and are heavily dependent on user experience and expert knowledge. If there is no standardized model parameter structure, it will lead to difficulties in compatibility with old models and low parameter adjustment efficiency, thus slowing down the progress of software development. Summary of the invention

[0004] The present application provides a parameter tree design method, device, electronic device and storage medium, designs a basic tree structure of parameters, and defines the characteristics and calculation method of the parameter tree. Simple modular process design and coding can be performed according to the characteristics of each node, thereby improving development efficiency.

[0005] The present application provides a parameter tree design method, comprising:

[0006] Arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship;

[0007] Initializing the hierarchical structure and defining the type and value of the parent node in the hierarchical structure;

[0008] Defining the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree;

[0009] The parameter tree is represented by a parameter vector, and a corresponding operation process is executed according to the parameter vector.

[0010] Optionally, the types of the parent node or the child node in the hierarchical structure include an AND gate, an OR gate, a unique gate, and an exclusive gate.

[0011] Optionally, the value of the parent node or child node in the hierarchical structure includes 0, 1 or -1, wherein -1 is a default value, indicating that the door does not exist, 0 indicates that the door is closed, and 1 indicates that the door is open.

[0012] Optionally, the AND gate is calculated in such a way that its value is 1 when all child nodes are 1, otherwise it is 0;

[0013] The calculation method of the OR gate is that its value is 1 when at least one child node is 1, otherwise it is 0;

[0014] The unique gate is calculated in such a way that its value is 1 when there is only one child node among all child nodes that is 1, if all child nodes are 0, its value is 0, if more than one child node is 1, its value is -10000, indicating an error;

[0015] The calculation method of the mutual exclusion gate is to allow only two child nodes to exist. If there are more or less than two child nodes, its value is -10000. If both child nodes are 1 or 0, its value is -10000 (error). If one child node is 1 and the other is 0, its value is 1.

[0016] Optionally, the representing the parameter tree by a parameter vector includes:

[0017] Traversing the parameter tree according to the hierarchical structure to obtain the value of each node, wherein the traversal method includes depth-first traversal or breadth-first traversal;

[0018] The value of each node is formed into a one-dimensional vector and used as the parameter vector.

[0019] Optionally, before executing a corresponding operation process according to the parameter vector, the method further includes:

[0020] Obtaining an initial vector predefined for the job;

[0021] comparing the parameter vector with the initial vector for error checking;

[0022] When it is determined that an error occurs in the parameter vector, a comparison is performed in sequence from the parent node according to the hierarchical structure to complete error troubleshooting.

[0023] Optionally, executing a corresponding operation process according to the parameter vector includes:

[0024] Verifying the parameter vector, and decoding the parameter vector when the verification passes;

[0025] Generate a control flow corresponding to the parameter vector according to the decoding result;

[0026] When a job is executed, a parameter vector associated with the job is loaded, and a corresponding control flow is activated according to the value of the parameter vector.

[0027] The present application also provides a parameter tree design device, comprising:

[0028] An arrangement module is used to arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship;

[0029] A first definition module, used to initialize the hierarchical structure and define the type and value of the parent node in the hierarchical structure;

[0030] A second definition module is used to define the types and values ​​of the sub-nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree;

[0031] The processing module is used to represent the parameter tree through a parameter vector and execute a corresponding operation process according to the parameter vector.

[0032] The present application also provides an electronic device, characterized in that the electronic device includes a memory and a processor, the memory stores a computer program, and the processor executes the steps in any one of the parameter tree design methods provided in the present application by calling the computer program stored in the memory.

[0033] The present application also provides a storage medium, characterized in that the storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in any one of the parameter tree design methods provided in the present application.

[0034] The parameter tree design method provided by the present application can arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and the child nodes at different levels have a parent-child relationship, initialize the hierarchical structure, and define the type and value of the parent node in the hierarchical structure, define the type and value of the child node in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree, represent the parameter tree through a parameter vector, and execute the corresponding operation process according to the parameter vector. The embodiment of the present application designs a basic tree structure of parameters, and defines the characteristics and calculation method of the parameter tree, and can perform simple modular process design and coding according to the characteristics of each node, thereby improving development efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0036] Figure 1 It is a flow chart of a parameter tree design method provided in an embodiment of the present application;

[0037] Figure 2 It is a structural schematic diagram of a parameter tree provided in an embodiment of the present application;

[0038] Figure 3 is a calculation diagram of an AND gate provided in an embodiment of the present application;

[0039] Figure 4 is a calculation diagram of an OR gate provided in an embodiment of the present application;

[0040] Figure 5 It is a calculation diagram of only one gate provided in the embodiment of the present application;

[0041] Figure 6 It is a calculation diagram of a mutually exclusive gate provided in an embodiment of the present application;

[0042] Figure 7 is another structural schematic diagram of a parameter tree provided in an embodiment of the present application;

[0043] Figure 8 It is another flow chart of the parameter tree design method provided in the embodiment of the present application;

[0044] Fig. 9 It is a schematic diagram of the process of using a parameter tree to develop a GUI according to an embodiment of the present application;

[0045] Fig.10 It is a structural schematic diagram of a parameter tree design device provided in an embodiment of the present application;

[0046] Fig.11 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0047] 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.

[0048] It should be noted that, in this article, the terms "include", "comprises" 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0049] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0050] It should be noted that, in this article, step codes such as 101, 102, etc. are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute 102 first and then 101, etc., but these should all be within the scope of protection of this application.

[0051] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0052] An embodiment of the present application provides a parameter tree design method, and the executor of the parameter tree design method can be a parameter tree design device provided in the embodiment of the present application, or a server integrated with the parameter tree design device, wherein the parameter tree design device can be implemented in hardware or software.

[0053] like Figure 1 As shown, Figure 1 : is a first flow chart of the parameter tree design method provided in an embodiment of the present application. The specific flow of the parameter tree design method can be as follows:

[0054] 101. Arrange all parameters in the operation process according to a hierarchical structure. The hierarchical structure includes a root node and child nodes, and there is a parent-child relationship between child nodes at different levels.

[0055] In one embodiment, the root node may also be called the Root node, which is the top level of the entire parameter tree and the summary point of all parameters of the Job, equivalent to the starting point and overview of the entire parameter system. It can be regarded as a summary location that contains all parameter information involved in the entire Job. For example, if a job for manufacturing chips is regarded as a whole, then the Root node covers all types of parameters that may be involved in this manufacturing process.

[0056] The child nodes are under the Root node. They represent different types of parameter categories. For example, the Root node can include three child nodes: A, B, and C. The hierarchical structure is as follows: Figure 2 As shown, taking chip manufacturing as an example, ABC can represent different model categories respectively. A can be Mask_Model, B can be Optical Model, and C can be Resist_Model. These child nodes are at the same level and are parallel to each other. It should be noted that there is no subordinate relationship between them. They just classify the parameters of the Job from different angles or aspects. Different types of parameter categories together constitute the first-level classification under the Root node, providing a basis for further refinement of the parameters. Further down, there will be child nodes at the next level belonging to ABC, forming a layer-by-layer extended structure, so that child nodes at different levels have a parent-child relationship. For example, in Figure 2 Among them, the next level classification of the Root node includes scene A, scene B and scene C, among which scene A contains child nodes of parameter A_1 and parameter A_2, scene B contains child nodes of parameter B_1, scene C contains child nodes of parameter C_1, parameter C_2 and parameter C_3, in the next level, parameter C_3 contains child nodes of parameter C_3_1, parameter C_3_2, parameter C_3_3 and parameter C_3_4, in the next level, parameter C_3_1 contains child nodes of parameter C_3_1_1 and parameter C_3_1_2, parameter C_3_4 contains child nodes of parameter C_3_4_1, parameter C_3_4_2 and parameter C_3_4_3, in the next level, parameter C_3_4_3 contains child nodes of parameter C_3_4_3_1 and parameter C_3_4_3_2.

[0057] In one embodiment, each node in the hierarchical structure can also be regarded as a logic gate. For the parent node, its result is calculated by its child nodes according to the characteristics of the parent node itself. The characteristics of the parent node determine how to calculate its result according to the child nodes. Different parent nodes may have different calculation logics. This hierarchical structure and the calculation relationship of the gate provide a way to organize and calculate parameters for the entire parameter tree, which helps to systematically manage parameters and logically process complex jobs. It can flexibly set the characteristics of different nodes according to different business needs and logical rules, thereby realizing effective parameter configuration and calculation of different aspects of the entire job, and also facilitates clear sorting and analysis of the relationship between different parameters.

[0058] 102. Initialize the hierarchical structure and define the type and value of the parent node in the hierarchical structure.

[0059] 103. Define the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain the parameter tree.

[0060] In one embodiment, in order to create the hierarchical structure of the parameter tree, a basic initialization API (Application Programming Interface) may be used. The API is a set of specifications and tools that allow different software components to communicate and interact with each other. The basic initialization API here provides a standardized way to start building the hierarchical structure of the parameter tree.

[0061] Then, this embodiment can determine the type of the parent node, where the type of the parent node can include an AND gate, an OR gate, a unique gate, an exclusive gate, etc. These types determine how the parent node calculates its own value based on the status and value of its subordinate child nodes. For example, the final value of a parent node of the AND gate type will depend on whether all its child nodes are in an activated state; while a parent node of the OR gate type will be considered activated as long as one of its subordinate child nodes is in an activated state. Specifically, the type of the parent node can be specified by calling the corresponding function or method in the initialization API.

[0062] Next, you need to assign an initial value to the parent node. In this system, the value of each node can be 0, 1 or -1, and the default value is -1, where 0 means that the door is closed (exists but is not activated), 1 means that the door is open (exists and is activated), -1 means that the door does not exist, and -10000 is an error value indicating that an error has occurred in the door. In the initialization stage, this embodiment can use the API to set an initial value for the parent node.

[0063] After completing the type and value definition of the parent node, you can define the type of each child node layer by layer according to the hierarchical structure. Child nodes can also be different types such as AND gates, OR gates, unique gates, and exclusive gates. In response, the value of the child node can also include 0, 1, or -1, etc. These initial values ​​will be determined according to the node type and business requirements, and will be updated or recalculated according to the type and rules of its parent node in subsequent calculations and operations.

[0064] In one embodiment, the AND gate is calculated in such a way that its value is 1 when all child nodes are 1, and 0 otherwise. Figure 3 As shown in the figure, the parent node Root = 1 only when A = 0, B = 0, and C = 0. The calculation method of the OR gate is that its value is 1 when at least one child node is 1, otherwise it is 0, such as Figure 4 As shown in the figure, only when A=0, B=0 and C=0, the value of the parent node Root=0. The unique gate is calculated as follows: when there is only one child node among all child nodes that is 1, its value is 1; if all child nodes are 0, its value is 0; if more than one child node is 1, its value is -10000, indicating an error. Figure 5 The calculation method of the mutual exclusion gate is to allow only two child nodes to exist. If there are more or less than two child nodes, its value is -10000. If both child nodes are 1 or 0, its value is -10000 (error). If one child node is 1 and the other is 0, its value is 1. Figure 6 It should be noted that in the operations of the above-mentioned various logic gates, the right side of the logic gate is the input and the left side is the output. During the operation, the operation is performed from the bottom child node all the way up to the root node.

[0065] For example, if Figure 7 As shown in the figure, assuming that the parent node is an AND gate type node, then its output result (i.e., the value of the parent node) depends on the state of its child nodes. Only when all its child nodes meet certain conditions (such as all are 1), the value of the parent node will be 1; if the child node does not meet the condition, the value of the parent node will be calculated and changed accordingly according to the characteristics of the parent node's gate. If the parent node is an exclusive gate type node, then the value of the parent node is 1 only when one child node is 1 and the other is 0.

[0066] 104. The parameter tree is represented by a parameter vector, and a corresponding operation process is executed according to the parameter vector.

[0067] Once a parameter tree is defined, it can be represented by a set of parameter vectors, so that subsequent work processes can be executed according to the parameter tree. The above work processes can include GUI design, parameter adjustment experiments, debugging, machine learning, encryption, and automation processes, etc. For example, in the GUI design process, the entire set of GUI parameters is complete, but the parameter combinations used for each different job are different. Using different parameter combinations will make the process extremely complicated and difficult to control and troubleshoot. The design of the parameter tree can simplify this process.

[0068] In one embodiment, before executing the corresponding job process according to the parameter vector, an initial vector pre-defined for the job can also be obtained, and the parameter vector is compared with the initial vector to perform an error check. When it is determined that an error occurs in the parameter vector, the comparison is performed in sequence from the parent node according to the hierarchical structure to complete the error troubleshooting.

[0069] The present invention first designs the basic tree structure of the parameters and defines the characteristics and calculation methods. According to the characteristics of each node, a simple modular process design and coding can be performed, which also significantly simplifies development and debugging. It has a very strong support role for certain scenarios that require encryption and flexible parameter combinations, and can be modularly processed during the processing process, significantly reducing the difficulty of users manually writing processes. At the same time, the efficiency of software development and testing is improved.

[0070] This solution can organize and arrange all possible scenarios, parameters and data sets in the operation process according to the hierarchical structure and logical relationships, so that a series of complex multi-path operation processes can coexist as a whole using a set of hierarchical structures with logical relationships. The hierarchical structure includes parent nodes and child nodes, where the parent node is the output and its child nodes are the input. The hierarchical structure needs to be initialized with their respective types and values ​​to obtain the final definition and expression of the parameter tree. It should be noted that the parameter tree is a logical expression of the operation process and can execute the corresponding operation process according to the parameter vector. Its application scenarios may include fault-tolerant judgment, problem backtracking, encrypted storage, data transfer, etc.

[0071] As described above, the parameter tree design method proposed in the embodiment of the present application can arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and the child nodes at different levels have a parent-child relationship, initialize the hierarchical structure, and define the type and value of the parent node in the hierarchical structure, define the type and value of the child node in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree, represent the parameter tree through a parameter vector, and execute the corresponding operation process according to the parameter vector. The embodiment of the present application designs a basic tree structure of parameters, and defines the characteristics and calculation method of the parameter tree, and can perform simple modular process design and coding according to the characteristics of each node, thereby improving development efficiency.

[0072] The method described in the above embodiment will be further described below.

[0073] See also Figure 8 , Figure 8 This is a second flow chart of the parameter tree design method provided in the embodiment of the present application. The method comprises:

[0074] 201. Arrange all parameters in the operation process according to a hierarchical structure. The hierarchical structure includes a root node and child nodes, and there is a parent-child relationship between child nodes at different levels.

[0075] 202. Initialize the hierarchical structure and define the type and value of the parent node in the hierarchical structure.

[0076] 203. Define the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain the parameter tree.

[0077] The content of establishing the parameter tree can refer to the related description in the foregoing text, and this embodiment does not make any further limitation on this.

[0078] 204. Traverse the parameter tree according to the hierarchical structure to obtain the value of each node, and the traversal method includes depth-first traversal or breadth-first traversal.

[0079] 205. The value of each node is formed into a one-dimensional vector and used as a parameter vector.

[0080] Specifically, a parameter vector (Tree_vector) is a way to represent the final value of a parameter tree. When a parameter tree (Parameter Tree) is defined, assuming that the tree has N nodes (including all parent nodes and child nodes), extracting the values ​​of these nodes in a certain order will form a one-dimensional vector, which is Tree_vector. There are two ways to extract values: depth-first and breadth-first:

[0081] Depth-first: First traverse the level depth in order, then traverse the nodes at the same level, and extract the node values ​​in this order to form a Tree_vector.

[0082] Breadth-first: First traverse the nodes of each level in order, and then extract the node values ​​to form a Tree_vector.

[0083] For example, Figure 7 Taking the parameter tree as an example, the hierarchical structure of this parameter tree is actually 1[1{1,1},1{1},1{1,1,1{1{10},0,1,1{0,1,0{0,0}}}}]. If it is flattened into a vector, the value can be extracted by depth-first method, and 11111111111001101000 can be obtained, while the value can be extracted by breadth-first method, and 1111111111110111001000 can be obtained.

[0084] 206. Verify the parameter vector, and decode the parameter vector when the verification passes.

[0085] 207. Generate a control flow corresponding to the parameter vector according to the decoding result.

[0086] 208. When executing the Job, the parameter vector associated with the Job is loaded, and the corresponding control flow is activated according to the value of the parameter vector.

[0087] In one embodiment, a parameter tree structure can be defined according to business requirements and the logic of control flow. This parameter tree can cover all possible process branches and functional module combinations. Each node of the parameter tree represents a parameter or configuration item, which will determine the direction of the process and the activation / deactivation of the functional module. According to the defined parameter tree, a parameter vector is initialized and the parameter vector is verified to ensure that all necessary parameters are correctly set. After verification, it can be used to generate the corresponding control flow. The decoding process can determine which functional modules are activated and which are closed according to the values ​​in the parameter vector, as well as how to select the branch points of the process. After decoding and generating the control flow, the parameter vector can be checked again. Finally, the parameter vector is saved together with the job structure (such as XML, JSON, etc.). In this way, even if the job structure has redundancy or incorrect settings, as long as the parameter vector is correct, the smooth execution of the process can be guaranteed. When a job needs to be executed, the parameter vector associated with it is first loaded, and the corresponding control flow is dynamically constructed and activated according to the value of the parameter vector. During the execution process, the value of the parameter vector can be dynamically adjusted as needed to achieve flexible control of the process.

[0088] In addition, the above parameter vector can also be used for a variety of operations. For example, when all nodes have a logical relationship, it will be easier to locate bugs. According to the custom bug rules and location logic, testing and bug location can be easily achieved. Taking the location logic as an example, you can search from the parent node to the child node. If the parent node is wrong, you can report an error directly without searching downward. If the parent node is not wrong and the child node is wrong, the child node will be located and reported, and the parent node will report an error at the same time.

[0089] In the process of GUI (Graphical User Interface) development, the GUI in the prior art is customized to develop different interfaces according to different parameters of different processes, while the embodiment of the present application can develop a mechanism for dynamically generating interfaces based on the parameter tree, so that different processes can automatically generate interfaces after the parameter tree is organized. Fig. 9 As shown, the parameter tree can be regarded as a structure for storing and organizing parameters, which contains parameter information required by various business processes. As long as different business processes organize their required parameters into the form of parameter trees according to certain rules, the corresponding interface can be automatically generated through the developed dynamic interface generation mechanism. It is often difficult to locate situations where the GUI interface program has unexpected flow (for example, the behavior of the program does not conform to the designed process) or crashes (for example, the program crashes). It is necessary to review the status of each parameter in the interface before the bug occurs. It is difficult to do this based on manual testing. However, based on the parameter tree in this embodiment, the previous status can be quickly reviewed to facilitate problem location. It can record the status of each parameter on the interface, and when a problem occurs, the previous status can be quickly viewed. This is because the parameter tree itself is a structured storage of parameters, just like a log file, which can easily trace the historical status of the parameters, thereby helping developers to locate problems more easily.

[0090] In the encryption and automation process, due to information control, recipe information cannot be transmitted to each other in many scenarios. If the schema of the parameter tree is defined, the schema can be omitted and only the parameter vector can be transmitted to achieve the encryption purpose. For some product modules, the encrypted parameter vector can even be used to minimize development costs and quickly conduct trial and error. The automation process implemented using the parameter vector only requires the definition and manipulation of certain nodes, without the need to write complex scripts. The automated parameter vector can also achieve various inspection and bug location functions.

[0091] For artificial intelligence scenarios, it is not only modular, but also a scenario with massive parameters. The complexity of parameter adjustment often determines the quality of the model. Automatic parameter adjustment is also a relatively important function, such as automatic pruning. Using the parameter tree, you can simply design a schema for parameter adjustment, and customize some features for all nodes at the same time, such as the physical meaning and relationship of the nodes, which can make parameter adjustment more efficient. Parameter combinations can also be stored in the form of parameter trees. Due to the huge number of parameters, the parameter tree can also become a tool for dimensionality reduction storage. In addition, other structures similar to parameter trees can be defined, such as training and validation specific parameter trees, so as to achieve more powerful functions. For transfer learning, it also has a relatively good effect, and the model can be modularized and flexibly combined.

[0092] As described above, the parameter tree design method proposed in the embodiment of the present application can arrange all the parameters in the operation process according to the hierarchical structure, the hierarchical structure includes a root node and a child node, and the child nodes of different levels have a parent-child relationship, initialize the hierarchical structure, and define the type and value of the parent node in the hierarchical structure, define the type and value of the child node in the parameter tree layer by layer according to the hierarchical structure to obtain the parameter tree, traverse the parameter tree according to the hierarchical structure, and obtain the value of each node. The traversal method includes depth-first traversal or breadth-first traversal, and the value of each node is composed of a one-dimensional vector, and used as a parameter vector, and the parameter vector is verified, and the parameter vector is decoded when the verification passes, and a control flow corresponding to the parameter vector is generated according to the decoding result. When executing the Job, the parameter vector associated with the Job is loaded, and the corresponding control flow is activated according to the value of the parameter vector. The embodiment of the present application designs the basic tree structure of the parameters, and defines the characteristics and calculation method of the parameter tree. According to the characteristics of each node, a simple modular process design and coding can be performed, thereby improving development efficiency.

[0093] In order to implement the above method, an embodiment of the present application further provides a parameter tree design device, which can be integrated into a terminal device such as a mobile phone, a tablet computer, and the like.

[0094] For example, Fig.10 FIG. 1 is a schematic diagram of a structure of a parameter tree design device provided in an embodiment of the present application. The parameter tree design device may include:

[0095] Arrangement module 301, used to arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship;

[0096] A first definition module 302, used to initialize the hierarchical structure and define the type and value of the parent node in the hierarchical structure;

[0097] A second definition module 303, used to define the types and values ​​of the sub-nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree;

[0098] The processing module 304 is used to represent the parameter tree through a parameter vector and execute a corresponding operation process according to the parameter vector.

[0099] As can be seen from the above, the parameter tree design device proposed in the embodiment of the present application can arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and the child nodes at different levels have a parent-child relationship, initialize the hierarchical structure, and define the type and value of the parent node in the hierarchical structure, define the type and value of the child node in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree, represent the parameter tree through a parameter vector, and execute the corresponding operation process according to the parameter vector. The embodiment of the present application designs a basic tree structure of parameters, and defines the characteristics and calculation method of the parameter tree, and can perform simple modular process design and coding according to the characteristics of each node, thereby improving development efficiency.

[0100] All of the above technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described in detail here.

[0101] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0102] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any parameter tree design method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0103] Arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship;

[0104] Initializing the hierarchical structure and defining the type and value of the parent node in the hierarchical structure;

[0105] Defining the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree;

[0106] The parameter tree is represented by a parameter vector, and a corresponding operation process is executed according to the parameter vector.

[0107] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0108] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0109] Since the computer program stored in the storage medium can execute the steps in any parameter tree design method provided in the embodiments of the present application, the beneficial effects that can be achieved by any parameter tree design method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0110] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the device equipped with the chip executes the methods in various possible implementation modes as described above.

[0111] For example, the computer device mentioned above may be a terminal device with corresponding functions such as a mobile phone, a tablet computer, a personal computer, a cloud computer, etc. Fig.11 , Fig.11 A schematic diagram of the structure of a computer provided in an embodiment of the present application.

[0112] The computer device 400 may include components such as a memory 401 and a processor 402. Those skilled in the art will appreciate that Fig.11 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0113] The memory 401 may be used to store applications and data. The applications stored in the memory 401 include executable codes. The applications may be composed of various functional modules. The processor 402 executes various functional applications and data processing by running the applications stored in the memory 401.

[0114] Processor 402 is the control center of the computer device. It uses various interfaces and lines to connect the various parts of the entire computer device. By running or executing applications stored in memory 401 and calling data stored in memory 401, it executes various functions of the computer device and processes data, thereby monitoring the computer device as a whole.

[0115] In this embodiment, the processor 402 in the computer device will load the executable code corresponding to the process of one or more application programs into the memory 401 according to the following instructions, and the processor 402 will run the application program stored in the memory 401 to execute:

[0116] Arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship;

[0117] Initializing the hierarchical structure and defining the type and value of the parent node in the hierarchical structure;

[0118] Defining the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree;

[0119] The parameter tree is represented by a parameter vector, and a corresponding operation process is executed according to the parameter vector.

[0120] It is understood that the above scenarios are only examples and do not constitute a limitation on the application scenarios of the technical solutions provided in the embodiments of the present application. The technical solutions of the present application can also be applied to other scenarios. For example, it is known to those skilled in the art that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0121] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The modules in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs.

[0122] In the present application, the same or similar terminology concepts, technical solutions and / or application scenario descriptions are generally described in detail only the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of the present application, for the same or similar terminology concepts, technical solutions and / or application scenario descriptions that are not described in detail later, reference can be made to the previous related detailed descriptions.

[0123] In the present application, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0124] The various technical features of the technical solution of the present application can be arbitrarily combined. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of the present application.

[0125] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a storage disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state storage disk Solid State Disk), etc.

[0126] The above is a detailed introduction to a parameter tree design method, device, electronic device and storage medium provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A parameter tree design method, characterized in that: include: Arrange all parameters in the operation process according to a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship. The types of parent nodes or child nodes in the hierarchical structure include an AND gate, an OR gate, a unique gate, and a mutually exclusive gate. The AND gate is calculated in such a way that its value is 1 when all child nodes are 1, otherwise it is 0. The OR gate is calculated in such a way that its value is 1 when at least one child node is 1, otherwise it is 0. The unique gate is calculated in such a way that its value is 1 when there is only one child node in all child nodes that is 1. If all child nodes are 0, its value is 0. If more than one child node is 1, its value is -10000, indicating an error. The mutually exclusive gate is calculated in such a way that only two child nodes are allowed to exist. If there are more or less than two child nodes, its value is -10000. If both child nodes are 1 or 0, its value is -10000. If one child node is 1 and the other is 0, its value is 1. Initializing the hierarchical structure and defining the type and value of the parent node in the hierarchical structure; Defining the types and values ​​of the child nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree; The parameter tree is represented by a parameter vector, and a corresponding operation process is executed according to the parameter vector; The representing the parameter tree by the parameter vector includes traversing the parameter tree according to the hierarchical structure to obtain the value of each node, wherein the traversal method includes depth-first traversal or breadth-first traversal, and the value of each node is formed into a one-dimensional vector as the parameter vector; the executing the corresponding job process according to the parameter vector includes verifying the parameter vector, decoding the parameter vector when the verification passes, generating a control flow corresponding to the parameter vector according to the decoding result, and when executing the Job, loading the parameter vector associated with the Job, and activating the corresponding control flow according to the value of the parameter vector.

2. The parameter tree design method according to claim 1, characterized in that: The value of the parent node or child node in the hierarchical structure includes 0, 1 or -1, wherein -1 is the default value, indicating that the door does not exist, 0 indicates that the door is closed, and 1 indicates that the door is open.

3. The parameter tree design method according to claim 1, characterized in that: Before executing the corresponding operation process according to the parameter vector, the method further includes: Obtaining an initial vector predefined for the job; comparing the parameter vector with the initial vector for error checking; When it is determined that an error occurs in the parameter vector, a comparison is performed in sequence from the parent node according to the hierarchical structure to complete error troubleshooting.

4. A parameter tree design device, characterized in that: include: an arrangement module, for arranging all parameters in the operation flow in a hierarchical structure, wherein the hierarchical structure includes a root node and child nodes, and child nodes at different levels have a parent-child relationship. The types of parent nodes or child nodes in the hierarchical structure include an AND gate, an OR gate, a unique gate, and an exclusive gate. The AND gate is calculated in such a way that its value is 1 when all child nodes are 1, otherwise it is 0. The OR gate is calculated in such a way that its value is 1 when at least one child node is 1, otherwise it is 0. The unique gate is calculated in such a way that its value is 1 when there is only one child node in all child nodes that is 1. If all child nodes are 0, its value is 0. If more than one child node is 1, its value is -10000, indicating an error. The exclusive gate is calculated in such a way that only two child nodes are allowed to exist. If there are more or less than two child nodes, its value is -10000. If both child nodes are 1 or 0, its value is -10000. If one child node is 1 and the other is 0, its value is 1. A first definition module, used to initialize the hierarchical structure and define the type and value of the parent node in the hierarchical structure; A second definition module is used to define the types and values ​​of the sub-nodes in the parameter tree layer by layer according to the hierarchical structure to obtain a parameter tree; A processing module, used for representing the parameter tree through a parameter vector and executing a corresponding operation process according to the parameter vector; The representing the parameter tree by the parameter vector includes traversing the parameter tree according to the hierarchical structure to obtain the value of each node, wherein the traversal method includes depth-first traversal or breadth-first traversal, and the value of each node is formed into a one-dimensional vector as the parameter vector; the executing the corresponding job process according to the parameter vector includes verifying the parameter vector, decoding the parameter vector when the verification passes, generating a control flow corresponding to the parameter vector according to the decoding result, and when executing the Job, loading the parameter vector associated with the Job, and activating the corresponding control flow according to the value of the parameter vector.

5. An electronic device, characterized in that: The electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the steps in the parameter tree design method according to any one of claims 1 to 3 by calling the computer program stored in the memory.

6. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the parameter tree design method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Fault detection method applied to nuclear power plant system

    CN101894595A

  • Information processing method and device, equipment and storage medium

    CN115729529A

  • Ultrasonic parameter monitoring method and device, computer equipment and storage medium

    CN119170178A