Method and device for automatically configuring privacy computing modeling component

Through automated configuration methods, using schema configuration and form generator, the complexity of components added and maintained in federated modeling is solved, zero-code development and efficient and flexible component management are achieved, and the application promotion of federated learning is promoted.

CN119045803APending Publication Date: 2024-11-29LANXIANG ZHILIAN (HANGZHOU) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411133714.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

The existing technology has the problem of duplicate workload and difficulty in maintaining components in federal modeling, resulting in huge code volume and lack of flexibility, which increases the difficulty of development and maintenance.

Method used

Using an automated configuration method, by building form generators and component libraries, using schema configuration instead of code, implementing component customization and rendering, providing drag-and-drop construction modeling canvas and component management pages, reducing development thresholds, and improving component flexibility.

Benefits of technology

It has realized the addition of new modeling components from zero code, which improves development efficiency and flexibility, simplifies component development and maintenance, and promotes the application promotion of federated learning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119045803A_ABST
    Figure CN119045803A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for automatically configuring a privacy computing modeling component, and the method for automatically configuring the privacy computing modeling component comprises the steps: S1, constructing a form generator, and receiving form layout control parameters; s2, creating a component library, and customizing corresponding schema configuration information for each component in the component library; s3, creating a component management page, and storing component information and schema configuration information; s4, forming a modeling canvas for the component information in a dragging mode; and S5, judging whether the component information in the modeling canvas is focus or not, and if so, rendering the form information according to the schema configuration information.
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 in particular to a method and device for automatically configuring privacy computing modeling components. Background Art

[0002] With the rapid development of privacy computing, the demand for federated modeling products as a platform for data processing, model development and evaluation is growing. Federated modeling requires a large number of algorithm components as the basis for modeling, and hundreds of modeling components are integrated in the federated modeling canvas, including data reading and writing, data preprocessing, machine learning algorithms and other categories. As product demand and functions expand, new components need to be added continuously. Efficiently adding new components and maintaining existing components is a difficult point.

[0003] Therefore, the prior art has the following problems:

[0004] Repeated workload: Due to the complexity of modeling requirements, the component library needs to be enriched in the product iteration process to improve the modeling function. For the front end, the operation process between each component is consistent, and there are only differences in configuration parameters. Each new component will increase certain repetitive logic code. As the business functions are improved, the amount of code becomes larger and lacks flexibility.

[0005] Difficult to maintain: The huge amount of code increases the difficulty of maintenance. It is more difficult for newcomers to understand, which is not conducive to the long-term stable and sustainable development of the product.

[0006] In response to the above technical problems, the present invention proposes a method and device for automatically configuring privacy computing modeling components. Summary of the invention

[0007] The purpose of the present invention is to address the defects of the prior art and provide a method and device for automatically configuring privacy computing modeling components, using independent schema configuration instead of code to render each customized algorithm component, thereby improving the convenience of adding new federated modeling components. Developers can use this method to freely define and develop algorithm components and conduct independent testing, thereby facilitating the implementation of more flexible modeling scenarios.

[0008] In order to achieve the above purpose, the present invention adopts the following technical solutions:

[0009] A method for automatically configuring privacy computing modeling components, comprising:

[0010] S1. Build a form generator and receive form layout control parameters;

[0011] S2. Create a component library and customize the corresponding schema configuration information for each component in the component library;

[0012] S3. Create a component management page and store component information and schema configuration information;

[0013] S4. Drag and drop component information to form a modeling canvas;

[0014] S5. Determine whether the component information in the modeling canvas is focused. If so, render the form information according to the schema configuration information.

[0015] Furthermore, the form layout control parameters in step S1 include the form content configuration schema, the form layout control formProps, the objects components of all basic components and custom components, the public scope scope, the form default value initialValues, the form current value values, the form disabled state disabled, and the method onValuesChange for monitoring changes in form variables.

[0016] Furthermore, in step S2, the component library includes basic components and custom components; the basic components and custom components are registered in the components parameter of the form generator.

[0017] Furthermore, before step S3, the method further includes: declaring registration of different components in the declared public scope of the form generator.

[0018] Furthermore, before step S3, the method further includes: determining the onValuesChange method of the form generator, and determining the triggering behavior after the current value values ​​of the form is modified.

[0019] Furthermore, the component management page in step S3 also includes the functions of adding, deleting, modifying and checking components.

[0020] Accordingly, a device for automatically configuring a privacy computing modeling component is also provided, which is used to execute a method for automatically configuring a privacy computing modeling component. The device for the modeling component includes a processor, and the processor is provided with:

[0021] The first building module is used to build a form generator and receive form layout control parameters;

[0022] The first creation module is used to create a component library and customize the corresponding schema configuration information for each component in the component library;

[0023] The second creation module is used to create a component management page and store component information and schema configuration information;

[0024] The second building module is used to construct a modeling canvas for component information by dragging and dropping;

[0025] The judgment module is used to determine whether the component information in the modeling canvas is focused. If so, the form information is rendered according to the schema configuration information.

[0026] Furthermore, the processor is connected to a memory for storing data or instructions.

[0027] Furthermore, the processor is connected to a transmission device for transmitting data with an external device.

[0028] Furthermore, the processor is connected to an input / output device for inputting or outputting information.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] 1. Introducing low-code technology into federated learning modeling scenarios, achieving zero-code new modeling components. Compared with the usual development process, developers can more easily try more customized ideas, making modeling more convenient and flexible, and adapting to more experimental scenarios. Greatly improve development efficiency;

[0031] 2. Improved component flexibility. The form generator can dynamically render different component parameter configuration interfaces based on the schema. Developers can freely define components based on their needs without being restricted by fixed component modes, adapting to more modeling scenarios.

[0032] 3. Lower the development threshold. The form generator shields the complex development details. Developers can easily add and debug components without having to master the knowledge of form development, which can shorten the development cycle and improve work efficiency.

[0033] 4. Convenient algorithm experimentation. Researchers can independently define algorithm components and quickly build experimental processes, which is conducive to algorithm innovation and effect verification, and provides convenience for algorithm implementation.

[0034] 5. Promoted the application and promotion of federated learning. Simplified component development provides technical support for the application of federated learning, helps accelerate the implementation process, and promotes the application of federated learning scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of a method for automatically configuring privacy computing modeling components provided in Example 1. DETAILED DESCRIPTION

[0036] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0037] The purpose of the present invention is to address the defects of the prior art and provide a method and device for automatically configuring privacy computing modeling components.

[0038] Embodiment 1

[0039] This embodiment provides a method for automatically configuring privacy computing modeling components, such as Figure 1 As shown, including:

[0040] S1. Build a form generator and receive form layout control parameters;

[0041] S2. Create a component library and customize the corresponding schema configuration information for each component in the component library;

[0042] S3. Create a component management page and store component information and schema configuration information;

[0043] S4. Drag and drop component information to form a modeling canvas;

[0044] S5. Determine whether the component information in the modeling canvas is focused. If so, render the form information according to the schema configuration information.

[0045] In step S1, a form generator is constructed and form layout control parameters are received.

[0046] The form generator is built in the code based on the open source low-code tool Formily. The form generator is actually a form rendering component. The form rendering component receives 8 parameters, where schema is the specific content configuration of the form, formProps is the layout control of the form, components is an object containing all basic components and custom components, scope is the public scope, initialValues ​​is the default value of the form, the value object is the current value of the form, disabled is the disabled state of the form, and the onValuesChange method monitors changes in form variables.

[0047] In step S2, a component library is created, and corresponding schema configuration information is customized for each component in the component library.

[0048] Register the basic component library, such as selection boxes, input boxes, etc.; for special interaction scenarios, manually create custom components, and register the basic component library and custom components in the components parameter of the form generator. The component has a unique name identifier, which is used in the schema configuration to identify the corresponding rendered component.

[0049] This embodiment also includes declaring a public scope. Since different modeling components often have some special logic, such as sending different network requests, methods and variables used in schema configuration, etc., all need to be declared and registered in the scope parameter of the form generator in advance.

[0050] Determine the onValuesChange method of the form generator, that is, monitor the network requests that need to be triggered after the form value is modified.

[0051] This implementation customizes the corresponding schema configuration information for each component.

[0052] The schema configuration of a component is actually a large JSON object, which contains a series of keys and their corresponding values. All keys will be processed by the form generator into keys of the values ​​object. The value part specifies the corresponding atomic component rendering rules.

[0053] In the configuration of the value part, type identifies the type of parameter, such as string, boolean, etc., title identifies the Chinese meaning of the parameter, x-decorator identifies the parent component of the atomic component, x-decorator-props identifies the parameter passed to the parent component, x-component identifies the unique identifier of the rendered atomic component, x-component-props identifies the parameter object passed to the atomic component, x-validator identifies the validation rule of the parameter, x-reactions identifies the network request, linkage logic, etc., default identifies the default value of the parameter, and x-visible identifies the visibility of the atomic component;

[0054] The parameters required by the component constitute a complete schema configuration; the order of the keys in the object is the order in which the parameters are rendered.

[0055] In step S3, a component management page is created and component information and schema configuration information are stored.

[0056] Create a component management page in the product. The component management page provides the functions of adding, deleting, modifying and querying. Use this component management page to store basic component information in a table for persistent storage. The basic component information includes name, type, anchor configuration, schema configuration, etc. All information of modeling components can be managed quickly and conveniently on the page.

[0057] According to the method of building component schema information above, configure the unique schema configuration corresponding to each component and store it in the database along with the basic information of the component.

[0058] In step S4, the component information is constructed into a modeling canvas by dragging and dropping.

[0059] Get the component list in the modeling canvas, and store the schema configuration information of each component in the cache. The modeling canvas is constructed by dragging and dropping components. The connections between components can be controlled according to the anchor type, and the components transfer data according to the upstream and downstream relationships.

[0060] In step S5, it is determined whether the component information in the modeling canvas is focused, and if so, the form information is rendered according to the schema configuration information.

[0061] When a component is focused, the parameter panel of the component is rendered. The form generator obtains the corresponding schema configuration in the cache based on the unique identifier of the component and renders the form information based on the configuration.

[0062] This embodiment provides a set of form generators that adapt to all components. The addition, deletion, modification and query of components are performed on the management page. When adding components subsequently, you only need to configure the basic information, unique identifier and unique schema configuration of the component on the component addition page, thereby realizing zero-code addition and maintenance of components. The demand side can directly operate and debug, which is convenient and fast, and simplifies the development process.

[0063] Embodiment 2

[0064] This embodiment provides an apparatus for automatically configuring a privacy computing modeling component, which is used to execute a method for automatically configuring a privacy computing modeling component in Embodiment 1. The apparatus for the modeling component includes a processor, wherein the processor is provided with:

[0065] The first building module is used to build a form generator and receive form layout control parameters;

[0066] The first creation module is used to create a component library and customize the corresponding schema configuration information for each component in the component library;

[0067] The second creation module is used to create a component management page and store component information and schema configuration information;

[0068] The second building module is used to construct a modeling canvas for component information by dragging and dropping;

[0069] The judgment module is used to determine whether the component information in the modeling canvas is focused. If so, the form information is rendered according to the schema configuration information.

[0070] The processor described in this embodiment may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0071] The processor described in the present embodiment is connected with a memory for storing data or instructions. The memory may include a large capacity memory for data or instructions. For example, but not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory may be inside or outside the data processing device. In a specific embodiment, the memory is a non-volatile memory. In a specific embodiment, the memory includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0072] The memory can be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor. The processor reads and executes the computer program instructions stored in the memory.

[0073] The processor described in this embodiment is connected to a transmission device for transmitting data with an external device. The transmission device can be used to receive or send data via a network. The above-mentioned specific examples of the network may include a wired or wireless network provided by a communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0074] The processor in this embodiment is connected with an input / output device for inputting or outputting information. The input / output device is used for inputting or outputting information. In this embodiment, the input information is component information, and the output information is rendered form information.

[0075] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for automatically configuring privacy computing modeling components, characterized in that: include: S1. Build a form generator and receive form layout control parameters; S2. Create a component library and customize the corresponding schema configuration information for each component in the component library; S3. Create a component management page and store component information and schema configuration information; S4. Drag and drop component information to form a modeling canvas; S5. Determine whether the component information in the modeling canvas is focused. If so, render the form information according to the schema configuration information.

2. A method for automatically configuring privacy computing modeling components according to claim 1, characterized in that: The form layout control parameters in step S1 include the form content configuration schema, the form layout control formProps, the objects components of all basic components and custom components, the public scope scope, the form default value initialValues, the form current value values, the form disabled state disabled, and the method onValuesChange for monitoring changes in form variables.

3. A method for automatically configuring a privacy computing modeling component according to claim 2, characterized in that: In step S2, the component library includes basic components and custom components; the basic components and custom components are registered in the components parameter of the form generator.

4. A method for automatically configuring a privacy computing modeling component according to claim 3, characterized in that: Before step S3, the method further includes: declaring registration for different components in the declared public scope of the form generator.

5. A method for automatically configuring a privacy computing modeling component according to claim 4, characterized in that: Before step S3, the method further includes: determining the onValuesChange method of the form generator, and determining the triggering behavior after the current value values ​​of the form is modified.

6. A method for automatically configuring a privacy computing modeling component according to claim 5, characterized in that: The component management page in step S3 also includes the functions of adding, deleting, modifying and checking components.

7. A device for automatically configuring a privacy computing modeling component, used to execute a method for automatically configuring a privacy computing modeling component according to any one of claims 1 to 6, wherein the device for the modeling component comprises a processor, characterized in that: The processor is provided with: The first building module is used to build a form generator and receive form layout control parameters; The first creation module is used to create a component library and customize the corresponding schema configuration information for each component in the component library; The second creation module is used to create a component management page and store component information and schema configuration information; The second building module is used to construct a modeling canvas for component information by dragging and dropping; The judgment module is used to determine whether the component information in the modeling canvas is focused. If so, the form information is rendered according to the schema configuration information.

8. The device for automatically configuring a privacy computing modeling component according to claim 7, characterized in that: The processor is connected to a memory for storing data or instructions.

9. The device for automatically configuring a privacy computing modeling component according to claim 7, characterized in that: The processor is connected with a transmission device for transmitting data with an external device.

10. The device for automatically configuring a privacy computing modeling component according to claim 7, characterized in that: The processor is connected to an input / output device for inputting or outputting information.