A visual drag-and-drop composite operator implementation method

By designing visual drag-and-drop composite operators in the data science workbench, the problem of process display complexity and logical requirements is solved, the modularization of the process and the customization of logical functions are realized, and the user experience and system functions are improved.

CN112000327BActive Publication Date: 2024-09-03SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010854471.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-24
Publication Date
2024-09-03
Estimated Expiration
2040-08-24

AI Technical Summary

Technical Problem

The existing data science workbench has complex operators when displaying large processes, making it difficult to find the backbone of the process, and cannot meet the loop and judgment logic needs in complex processes.

Method used

By designing the data structure and interface interaction of the composite operator, a visual drag-and-drop composite operator is implemented, allowing users to modify parameters through simple operations and drag in the composite operator to complete customized complex processes, including loops and conditional judgment logic.

Benefits of technology

It realizes the modular splitting and splicing of complex processes, highlights the front-end backbone, supports loops and judgment logic that cannot be achieved with the original technology, and improves user experience and system functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112000327B
    Figure CN112000327B
Patent Text Reader

Abstract

The present invention relates to the field of computer technology, and specifically provides a visual drag-and-drop composite operator implementation method, in which the set execution logic is used to modify parameters according to user needs through simple front-end operations, and the process block of the composite operator can be dragged into the composite operator again to complete a customized complex process. Compared with the prior art, the visual drag-and-drop composite operator implementation method of the present invention can realize customized splitting and splicing of the original complex process through the composite operator, thereby modularizing the original process and highlighting the main trunk when the front-end is displayed. In addition, through the composite operator, loop, judgment and other logic that cannot be completed by non-composite operator processes can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and specifically provides a visual drag-and-drop composite operator implementation method. Background Art

[0002] The Data Science Workbench aims to lower the threshold for using machine learning, provide a visual operation interface, and implement the model training, evaluation, and prediction processes by dragging and dropping operators and building processes, effectively reducing the difficulty of life cycle management of machine learning models, and providing users with easy-to-use, efficient, and high-performance platform services for data mining and analysis businesses.

[0003] In the existing workbench, all operators of the same process are displayed on the same panel, which easily causes the following two problems:

[0004] 1. For large processes, the operators displayed on the front end are complex and it is difficult to find the main process, which seriously affects the user experience;

[0005] 2. Some processes may contain loops, judgments, and other logic, and the original drag-and-drop method of non-composite operators cannot meet the needs. Summary of the invention

[0006] The present invention aims at solving the above-mentioned deficiencies of the prior art and provides a highly practical visual drag-and-drop composite operator implementation method.

[0007] The technical solution adopted by the present invention to solve its technical problem is:

[0008] A visual drag-and-drop composite operator implementation method. The set execution logic is used to modify parameters through simple front-end operations according to user needs. The process block of the composite operator can be dragged into the composite operator again to complete a customized complex process.

[0009] Further, it is divided into the following four steps:

[0010] S01. Data structure design of composite operators;

[0011] S02, interface interaction design;

[0012] S03, composite operator operation logic design;

[0013] S04. Construction of composite operator process.

[0014] Further, in step S01, COMPONENT_ID, PIPELINE_ID, IS_COMPOUND, REF_PIPELINE_ID, PARAM, INPUT_PARAM, OUTPUT_PARAM, INNER_INPUT_PARAM and INNER_OUTPUT_PARAM are included;

[0015] Among them, IS_COMPOUND calibrates whether the operator is a composite operator. If it is a composite operator, then the affiliated process ID can be queried according to its corresponding REF_PIPELINE_ID, and all operator IDs contained in the process can be queried through the process ID. Through recursive query, all information of the entire process can be traversed.

[0016] Furthermore, PARAM stores some variable parameters in the operator execution logic, and INPUT_PARAM and OUTPUT_PARAM store the operator input and output port information, including the corresponding file locations;

[0017] For the composite operator, there is also input and output port information of the internal process, which is stored in INNER_INPUT_PARAM and INNER_OUTPUT_PARAM.

[0018] Furthermore, in step S02, it includes:

[0019] S021, enter and exit composite operators, and show the corresponding process;

[0020] S022, design of process blocks within composite operators;

[0021] S023. Logical parameter panel of the composite operator.

[0022] Furthermore, in step S021, the composite operator consists of two parts, one part is the logic of the operator itself, and when the composite operator is clicked, the right panel will display the adjustable parameters of the execution logic of the operator itself;

[0023] The other part is the process block contained in the composite operator. By double-clicking the composite operator, you can enter the interface behind the composite operator. By clicking the button at the top of the interface, you can exit the current process block.

[0024] In step S022, before the user operates, double-click to open the composite operator, and the two operators of the input node and the output node will be initialized on the panel. The port number of the operator is obtained from the two fields INNER_INPUT_PARAM and INNER_OUTPUT_PARAM in the database. The process is connected between these two operators to form the internal code block of the composite operator;

[0025] In step S023, it is divided into a main page and a sub-page. Clicking a composite operator on the main page will display the execution logic of the operator. Clicking a blank area on the panel will display the current process information. Clicking a process block operator on the sub-page will display the execution logic parameter panel of the clicked operator. Clicking a blank area on the panel will display the parameters of the composite operator attached to this process block.

[0026] Further, in step S03, the composite operator includes four groups of port information, namely, input port, output port and internal input port, output port, among which the output port and internal input port are determined according to the operator instance ID, port type and port order immediately after the operator is dragged into the panel;

[0027] When the process block is connected, the input port and internal output port are assigned by the port connected upstream. The assigned port information is the same as the upstream port information. At this point, the port information of the entire process block can be determined when the process is built;

[0028] First, read the input port information, and process the data into the format required by the internal input port through its own logic and pass it into the internal input port. The internal process block reads the internal input port data, and after execution, writes the output to the internal output port of the composite operator. Then, the composite operator's own logic integrates the data of the internal output port into the format required by the output port and writes it into the storage location corresponding to the output port. The operating logic of each operator in the internal process block is the same as the operating logic of each operator on the main page.

[0029] Furthermore, in step S04, it includes:

[0030] S041, circulation;

[0031] S042. Conditional judgment.

[0032] Furthermore, in step S041, the composite operator parameter panel can independently edit the logical parameters during operation, and can also edit the number of loops of the loop operator. The process blocks inside the composite operator will execute the loop according to the set parameters.

[0033] Furthermore, in step S042, the sub-process page of the conditional judgment composite operator is divided into two parts, one of which can be selected according to the logic of the composite operator. When the values ​​of all fields are greater than a threshold, the left process is executed, otherwise the right process is executed.

[0034] Compared with the prior art, the visual drag-and-drop composite operator implementation method of the present invention has the following outstanding beneficial effects:

[0035] The present invention provides a composite operator implementation method based on visual drag-and-drop, which can realize custom splitting and splicing of the original complex process through the composite operator, thereby modularizing the original process and highlighting the main trunk when the front-end is displayed. In addition, through the composite operator, loop, judgment and other logic that cannot be completed by the non-composite operator process can be realized. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0037] Attached Figure 1 It is a composite operator operation logic flow chart in a visual drag-and-drop composite operator implementation method;

[0038] Attached Figure 2 It is a diagram of the adjustable parameter interface of the composite operator logic in the visual drag-and-drop composite operator implementation method;

[0039] Attached Figure 3 It is a schematic diagram of the interface initialization of the internal process block of the composite operator in the visual drag-and-drop composite operator implementation method;

[0040] Attached Figure 4 It is a schematic diagram of the interface in which the internal process blocks of a composite operator have been dragged in a visual drag-and-drop composite operator implementation method;

[0041] Attached Figure 5 It is a sub-process block diagram of conditional judgment composite operators in a visual drag-and-drop composite operator implementation method. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0043] A best embodiment is given below:

[0044] like Figure 1-5As shown, a visual drag-and-drop composite operator implementation method is provided in this embodiment. The composite operator is a process block with sub-process characteristics. In the process block, users can arrange their own processes through existing operators. The arranged processes can execute the process block according to the logic set by the composite operator. The composite operator proposed in the present invention has a set execution logic that can modify parameters according to user needs through simple front-end operations. In addition, the composite operator can be dragged into the process block of the composite operator again to complete a customized complex process.

[0045] It is divided into the following four steps:

[0046] S01. Data structure design of composite operators:

[0047]

[0048] The data structure design of the composite operator is shown in the table above, where the "IS_COMPOUND" field identifies whether the operator is a composite operator. If it is a composite operator, then the corresponding "REF_PIPELINE_ID" can be used to query the ID of its affiliated process (block). Through the process ID, all operator IDs contained in the process (block) can be queried, thereby traversing all information of the entire process through recursive query.

[0049] The "PARAM" in the table stores some variable parameters in the operator execution logic, and the "INPUT_PARAM" and "OUTPUT_PARAM" store the operator input and output port information, including the corresponding file location. For the composite operator, in addition to the external input and output ports, there is also the input and output port information of the internal process block, which is stored in the "INNER_INPUT_PARAM" and "INNER_OUTPUT_PARAM" of the present invention.

[0050] S02. Interface interaction design:

[0051] include:

[0052] S021, enter and exit the composite operator, and show the corresponding process:

[0053] The composite operator of the present invention consists of two parts. One part is the logic of the operator itself. We can click the composite operator (see the attached Figure 2 The "loop" operator in the front end is displayed as a double-line frame), and the right panel will display the adjustable parameters of the operator's own execution logic; the other part is the process block contained in the composite operator. We can enter the composite operator by double-clicking the composite operator. The interface after entering the composite operator is as shown in the attached figure. Figure 3 As shown, we can exit the current process block by clicking the "breadcrumbs" at the top of the interface.

[0054] In addition, if the process block of the composite operator still contains composite operators, it constitutes multi-layer nesting. We can use the above "breadcrumbs" to switch the interface of any process block.

[0055] S022. Design of process blocks within composite operators:

[0056] The design of the process block in the composite operator is shown in the attached Figure 3 As shown in the figure, before the user operates, double-click to open the composite operator, we will initialize the "input node" and "output node" operators on the panel, and the port number of the operator is obtained from the "INNER_INPUT_PARAM" and "INNER_OUTPUT_PARAM" fields in the database. The user connects the required process between the two operators to form the internal code block of the composite operator.

[0057] S023. Logical parameter panel of compound operator:

[0058] Here are two explanations: Main page: that is, Figure 2 The corresponding page is also attached Figure 3 The page referred to by "Root" in the "Breadcrumbs"; subpages: Figure 3 The corresponding page.

[0059] The composite operator designed by the present invention, when clicking the composite operator on the main page, will display the execution logic of the operator, and when clicking the blank area of ​​the panel, will display the information of the current process. When clicking the process block operator on the subpage, will display the execution logic parameter panel of the clicked operator, and when clicking the blank area of ​​the panel, will display the parameters of the composite operator attached to the process block.

[0060] S03. Composite operator operation logic design:

[0061] The composite operator of the present invention includes four groups of port information, namely input port, output port and internal input port, among which the output port and internal input port are determined according to the operator instance ID, port type and port order after the operator is dragged into the panel. The other two groups of port information, namely the input port and the internal output port, are assigned by the upstream port when the process block is connected, and the assigned port information is the same as the upstream port information. At this point, the port information of the entire process block can be completely determined when the process is built.

[0062] Here, it should be noted that Figure 3 It can be seen that the internal input port of the composite operator is actually an output port from the inside.

[0063] When the input and output port information of the operator is known, the non-composite operator (only its own logic, not including the sub-process block) can complete its own logic by reading the input port information, and then write the result in the storage location corresponding to the output port. For the composite operator mentioned in the present invention, first read the input port information, process the data into the format required by the internal input port through its own logic and pass it into the internal input port, the internal process block reads the internal input port data, and writes the output to the internal output port of the composite operator after execution, and then the composite operator's own logic integrates the data of the internal output port into the format required by the output port and writes it into the storage location corresponding to the output port. The operation logic of each operator in the internal process block is the same as the operation logic of each operator on the main page.

[0064] S04. Construction of composite operator process:

[0065] include:

[0066] S041, Cycle:

[0067] As attached Figure 2 As shown, the composite operator can edit the logical parameters of the runtime through the parameter panel on the right. For example, the number of loops of the "loop operator" can be edited, so that the process blocks inside the composite operator will be executed cyclically according to the set parameters.

[0068] S042, Conditional judgment:

[0069] As attached Figure 5 As shown, the sub-process page of the "Conditional Judgment" composite operator is divided into two parts, and one of them can be selected according to the logic of the composite operator. Taking the figure as an example, when the value of all fields (condition type = all) is greater than 50, the left process is executed, otherwise the right process is executed (this is just an example, and the specific logic rules can be defined according to the internal logic of the operator).

[0070] The above-mentioned specific implementations are only specific cases of the present invention. The patent protection scope of the present invention includes but is not limited to the above-mentioned specific implementations. Any appropriate changes or substitutions made by any ordinary technician in the technical field that conform to the claims of the present invention and the visual drag-type composite operator implementation method shall fall within the patent protection scope of the present invention.

[0071] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A visual drag-and-drop composite operator implementation method, characterized in that: The set execution logic is used to modify parameters through simple front-end operations according to user needs. The process block of the composite operator is dragged into the composite operator again to complete the customized complex process. It is divided into the following four steps: S01. Data structure design of composite operators; Including COMPONENT_ID, PIPELINE_ID, IS_COMPOUND, REF_PIPELINE_ID, PARAM, INPUT_PARAM, OUTPUT_ PARAM, INNER_INPUT_ PARAM and INNER_OUTPUT_ PARAM; Among them, IS_COMPOUND calibrates whether the operator is a composite operator. If it is a composite operator, then the affiliated process ID can be queried according to its corresponding REF_PIPELINE_ID, and all operator IDs contained in the process can be queried through the process ID. Through recursive query, all information of the entire process can be traversed; PARAM stores some variable parameters in the operator execution logic. INPUT_PARAM and OUTPUT_ PARAM store the operator input and output port information, including the corresponding file location. For the composite operator, there is also the input and output port information of the internal process, which is stored in INNER_INPUT_ PARAM and INNER_OUTPUT_ PARAM; S02, interface interaction design; include: S021, enter and exit composite operators, and show the corresponding process; The composite operator consists of two parts. One part is the logic of the operator itself. Click the composite operator, and the right panel will display the adjustable parameters of the execution logic of the operator itself. The other part is the process block contained in the composite operator. By double-clicking the composite operator, you can enter the interface behind the composite operator. By clicking the button at the top of the interface, you can exit the current process block. S022, design of process blocks within composite operators; S023, logical parameter panel of composite operator; S03, composite operator operation logic design; The composite operator contains four groups of port information, namely input port, output port and internal input port. The output port and internal input port are determined according to the operator instance ID, port type and port order after the operator is dragged into the panel. When the process block is connected, the input port and internal output port are assigned by the port connected upstream. The assigned port information is the same as the upstream port information. So far, the port information of the entire process block is determined when the process is built. First, read the input port information, process the data into the format required by the internal input port through its own logic, and pass it into the internal input port. The internal process block reads the internal input port data, and after execution, writes the output to the internal output port of the composite operator. Then, the composite operator's own logic integrates the data of the internal output port into the format required by the output port and writes it into the storage location corresponding to the output port. The operation logic of each operator in the internal process block is the same as that of each operator on the main page. S04, construction of composite operator process; include: S041, circulation; The composite operator parameter panel can edit the logical parameters at runtime and the number of loops of the loop operator. The process blocks inside the composite operator will execute the loop according to the set parameters. S042. Conditional judgment.

2. A visual drag-and-drop composite operator implementation method according to claim 1, characterized in that: In step S022, before the user operates, double-click to open the composite operator, and the two operators of the input node and the output node will be initialized on the panel. The port number of the operator is obtained from the two fields INNER_INPUT_ PARAM and INNER_OUTPUT_ PARAM in the database. The process is connected between these two operators to form the internal code block of the composite operator; In step S023, it is divided into a main page and a sub-page. Clicking a composite operator on the main page will display the execution logic of the operator. Clicking a blank area on the panel will display the current process information. Clicking a process block operator on the sub-page will display the execution logic parameter panel of the clicked operator. Clicking a blank area on the panel will display the parameters of the composite operator attached to this process block.

3. A visual drag-and-drop composite operator implementation method according to claim 2, characterized in that: In step S042, the sub-process page of the conditional judgment composite operator is divided into two parts, one of which can be selected according to the logic of the composite operator. When the values ​​of all fields are greater than a threshold, the left process is executed, otherwise the right process is executed.

Citation Information

Patent Citations

  • Big data mining tool and method based on dragging process

    CN110909039A

  • Method for improving high concurrency capability of Internet of Things platform rule engine

    CN111124392A

  • Spark machine learning system and method based on task visual dragging

    CN111240662A

  • Method and apparatus for optimizing stream application

    WO2017045400A1