Model building system, method, device and electronic device for creating custom components

By providing an added component interface and a construction interface in the model building system, users can create and connect customized components, solving the problem that cannot meet personalized needs in the existing technology and realizing a flexible model building process.

CN117806621BActive Publication Date: 2024-11-01ZHEJIANG UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410233718.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-01
Publication Date
2024-11-01
Estimated Expiration
2044-03-01

AI Technical Summary

Technical Problem

The existing low-code model building platform cannot meet users' personalized needs because users cannot create custom components according to their needs.

Method used

Provide a model building system, including the addition component interface and the construction interface. Users can monitor and configure option boxes in the addition component interface, create custom components, and store them in the component library, and drag components in the construction interface. Make connections and generate display information.

Benefits of technology

It enables users to create customized components according to actual needs, meet personalized needs, and improves the flexibility of model building and user satisfaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117806621B_ABST
    Figure CN117806621B_ABST
Patent Text Reader

Abstract

The present invention discloses a model building system. The system comprises: an add component interface, which is used to monitor whether an option box is selected in the add component interface, if yes, receive user input information for the selected option box, perform corresponding configuration operations according to the user input information, and continue to perform the steps of monitoring whether an option box is selected in the add component interface until the component is created; store the newly created component in a component library; and generate display information for it and display it in a toolbar of the building interface; a building interface, which is used to monitor whether a component is dragged from the toolbar to an editing area; perform parameter configuration on the component dragged to the editing area according to the parameter value input by the user; detect whether a connection instruction is received, if yes, generate a connection line to connect the components to be connected; and continue to perform the steps of monitoring whether a component is dragged from the toolbar to the editing area of ​​the building interface until the model is built.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of application model building, and in particular to a model building system, a method and device for creating a custom component, and an electronic device. Background Art

[0002] The low-code model building platform allows users to quickly build models suitable for specific scenarios by using less or no code. For example, a vehicle performance evaluation model can be quickly built using the low-code model building platform. However, the inventors found that the components in the existing low-code model building platform are all set in advance, and users can only use the existing components in the platform to build models, but cannot create custom components according to their own needs, and then build the models they need based on the custom components. Obviously, this makes the existing technology unable to meet the personalized needs of users. Summary of the invention

[0003] The embodiments of the present invention provide a model building system, a method and device for creating a custom component, and an electronic device, which are used to solve the problem in the prior art that the personalized needs of users cannot be met because the users cannot create custom components according to their needs.

[0004] The specific technical solutions are as follows:

[0005] In a first aspect, an embodiment of the present invention provides a model building system, the system comprising: an adding component interface and a building interface;

[0006] The add component interface is used to monitor whether an option box is selected in the add component interface, and when an option box is selected in the add component interface, receive user input information for the selected option box, perform corresponding configuration operations according to the user input information, and continue to perform the steps of monitoring whether an option box is selected in the add component interface until the component creation is completed; store the newly created component in a preset component library; and generate display information for the newly created component, and display the generated display information in the toolbar of the building interface;

[0007] The building interface is used to monitor whether a component is dragged from the toolbar to the editing area of ​​the building interface; configure parameters of the component dragged to the editing area according to the parameter value input by the user; detect whether a connection instruction is received, and when the connection instruction is received, generate a connection line to connect the components to be connected according to the identifier of the component to be connected contained in the connection instruction, the preset component range that each component can be connected to, and the input and output interface type of each component; continue to execute the step of monitoring whether a component is dragged from the toolbar to the editing area of ​​the building interface until the model is built; wherein the building interface includes a toolbar and an editing area, and the toolbar includes multiple packaged components; a component corresponds to a step in the calculation process corresponding to the model.

[0008] Optionally, the add component interface includes: a component name option box, a dependency image option box, an application scope option box, an algorithm engine option box, and a node type option box, wherein:

[0009] The component name option box is used to configure a component name for the component to be created according to the component name information input by the user;

[0010] The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user;

[0011] An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created;

[0012] An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user;

[0013] The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

[0014] Optionally, the system further includes: a model storage module and a model selection interface;

[0015] The model storage module is used to obtain data information corresponding to each standard model; store the data information corresponding to each standard model in a preset standard model database; generate corresponding display information for each standard model; and display the display information corresponding to each standard model in the model selection interface; wherein the data information includes model information and document information of the corresponding standard model; the model information includes component information of the components corresponding to the standard model, connection relationship information between components, configuration information of each component and running code information of each component; the document information includes model introduction information, data requirement information and model output information of the standard model;

[0016] The model selection interface is used to monitor whether a standard model is selected in the model selection interface; if so, the selected standard model is loaded in the editing area of ​​the building interface to obtain the target model; wherein, the model selection interface contains at least one standard model; the standard model is a packaged model; and one of the standard models corresponds to a preset function.

[0017] In a second aspect, an embodiment of the present invention provides a method for creating a custom component, which is applied to an add component interface in a model building system, comprising the following steps:

[0018] Monitor whether the option box is selected in the add component interface;

[0019] When an option box is selected in the adding component interface, receiving user input information for the selected option box, and performing corresponding configuration operations according to the user input information;

[0020] Continue to execute the step of monitoring whether an option box is selected in the adding component interface until the component is created;

[0021] The newly created component is stored in a preset component library, and display information is generated for the newly created component, and the generated display information is displayed in a toolbar of the building interface.

[0022] Optionally, the add component interface includes: a component name option box, a dependency image option box, an application scope option box, an algorithm engine option box, and a node type option box, wherein:

[0023] The component name option box is used to configure a component name for the component to be created according to the component name information input by the user;

[0024] The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user;

[0025] An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created;

[0026] An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user;

[0027] The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

[0028] Optionally, the preset specific component type is a model component;

[0029] When the component type of the component to be created is a preset specific component type, the step of configuring the code information corresponding to the preset specific component type for the component to be created includes:

[0030] Setting dynamic parameters for the model components;

[0031] According to the dynamic parameters of the model components, respectively configure the model components with code information corresponding to the dynamic parameters;

[0032] The corresponding code information is configured for the model file in the model component.

[0033] Optionally, the dynamic parameters set for the model component include: training status, usage status;

[0034] The step of respectively configuring code information corresponding to the dynamic parameters for the model components according to the dynamic parameters of the model components comprises:

[0035] Configure the corresponding code information for the training model file and the saved model file in the training state;

[0036] Configure the corresponding code information for loading model files and model inference prediction in the usage state.

[0037] In a third aspect, an embodiment of the present invention provides a device for creating a custom component, the device comprising:

[0038] The monitoring module is used to monitor whether an option box is selected in the add component interface;

[0039] A configuration module, for receiving user input information for a selected option box when an option box is selected in the add component interface, and performing corresponding configuration operations according to the user input information;

[0040] The storage and display module is used to store the newly created component in a preset component library when the new component is created, generate display information for the newly created component, and display the generated display information in the toolbar of the building interface.

[0041] Optionally, the add component interface includes: a component name option box, a dependency image option box, an application scope option box, an algorithm engine option box, and a node type option box, wherein:

[0042] The component name option box is used to configure a component name for the component to be created according to the component name information input by the user;

[0043] The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user;

[0044] An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created;

[0045] An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user;

[0046] The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

[0047] Optionally, the preset specific component type is a model component;

[0048] Configuration module, specifically used for:

[0049] Setting dynamic parameters for the model components;

[0050] According to the dynamic parameters of the model components, respectively configure the model components with code information corresponding to the dynamic parameters;

[0051] The corresponding code information is configured for the model file in the model component.

[0052] Optionally, the dynamic parameters set for the model component include: training status, usage status;

[0053] Configuration module, specifically used for:

[0054] Configure the corresponding code information for the training model file and the saved model file in the training state;

[0055] Configure the corresponding code information for loading model files and model inference prediction in the usage state.

[0056] In a fourth aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0057] The memory is used to store computer programs;

[0058] The processor is used to implement the method steps for creating a custom component described in the first aspect when executing the program stored in the memory.

[0059] In a fifth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps for creating a custom component described in the first aspect above are implemented.

[0060] The method for creating a custom component provided by the embodiment of the present invention can monitor whether an option box is selected in the add component interface; when an option box is selected in the add component interface, receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; continue to perform the step of monitoring whether an option box is selected in the add component interface until the component creation is completed; store the newly created component in the preset component library. It can be seen that the method provided by the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, implementing the method provided by the embodiment of the present invention can solve the problem in the prior art that the personalized needs of users cannot be met due to the inability of users to create custom components according to needs.

[0061] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

[0062] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:

[0064] Figure 1 A structural schematic diagram of an adding component interface provided by an embodiment of the present invention;

[0065] Figure 2 A schematic diagram of a structure of an application scope option box in an add component interface provided in an embodiment of the present invention;

[0066] Figure 3 A schematic diagram of the structure of the algorithm engine option box in the add component interface provided in an embodiment of the present invention;

[0067] Figure 4 A schematic diagram of a structure of a node type option box in an add component interface provided in an embodiment of the present invention;

[0068] Figure 5 A schematic flow chart of a method for creating a custom component in a model building system provided in an embodiment of the present invention;

[0069] Figure 6 A schematic flow chart of another method for creating a custom component in the model building system provided in an embodiment of the present invention;

[0070] Figure 7 A schematic diagram of a structure of an apparatus for creating a custom component provided by an embodiment of the present invention;

[0071] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0072] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0073] The embodiments of the present invention provide a model building system, a method for creating a custom component, an apparatus, and an electronic device, which can enable a user to obtain a desired model by simply selecting a standard model in a model selection interface without writing code, or to quickly build a desired model by simply dragging a component to an editing area of ​​a building interface and connecting the components in the editing area with a connecting line, and the user can also create a custom component according to actual needs to facilitate building the desired model. The model building system, the method for creating a custom component, an apparatus, and an electronic device provided by the embodiments of the present invention are described in detail below.

[0074] The model building system provided by the embodiment of the present invention may include: an adding component interface and a building interface.

[0075] Add component interface, used to monitor whether there is an option box selected in the add component interface, when an option box is selected in the add component interface, receive the user's input information for the selected option box, perform corresponding configuration operations according to the user's input information, and continue to execute the steps of monitoring whether there is an option box selected in the add component interface until the component is created; store the newly created component in the preset component library; and generate display information for the newly created component, and display the generated display information in the toolbar of the building interface;

[0076] A building interface is used to monitor whether a component is dragged from a toolbar to an editing area of ​​the building interface; configure parameters of the component dragged to the editing area according to the parameter value input by the user; detect whether a connection instruction is received, and when a connection instruction is received, generate a connection to connect the components to be connected according to the identifier of the component to be connected contained in the connection instruction, the preset range of components that each component can be connected to, and the input and output interface types of each component; continue to execute the step of monitoring whether a component is dragged from the toolbar to the editing area of ​​the building interface until the model is built; wherein the building interface includes a toolbar and an editing area, and the toolbar includes multiple packaged components; a component corresponds to a step in the calculation process corresponding to the model.

[0077] See also Figure 1 In a specific embodiment, the add component interface may include: a component name option box, a dependency image option box, an application scope option box, an algorithm engine option box, and a node type option box, wherein:

[0078] The component name option box is used to configure the component name for the component to be created according to the component name information entered by the user. For example, if the component name entered by the user is "Data Filter", the component name of the component to be created is configured as "Data Filter" according to the component name entered by the user.

[0079] The Dependency Image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user. The dependency image is related to the programming language and is the operating environment of the programming language. The image can be regarded as a special file system. In addition to providing the programs, libraries, resources, configuration and other files required for the component to run, it also contains some configuration parameters prepared for the runtime (such as anonymous volumes, environment variables, users, etc.). The embodiment of the present invention provides the operating environment of basic and commonly used programming languages, which can be selected in the Dependency Image option box. In the embodiment of the present invention, the correspondence between various dependency images and the parameters in the "import" part of the code is pre-configured. See. Figure 1, when the user selects the operating environment "amancevice / pandas:1.4.1" in the dependency image option box, the code display area of ​​the add component interface automatically loads the "import" part of the code corresponding to the operating environment "amancevice / pandas:1.4.1". In an embodiment of the present invention, the code display area of ​​the add component interface is editable, that is, the user can also edit the "import" part of the code as needed. The editability of the code display area increases the flexibility of the system, can better meet the needs of users, and is beneficial to improving user satisfaction.

[0080] The Application Scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and to configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, the code information corresponding to the preset specific component type is configured for the component to be created. Figure 2 In the specific embodiment, the types of components in the application scope option box include: general components, task components and model components, wherein the model component is a preset specific component type. When the component type selected by the user is a general component, the number and type of input interfaces and output interfaces are configured for the component to be created according to the number and type of input interfaces and output interfaces corresponding to the general component. When the component type selected by the user is a task component, the number and type of input interfaces and output interfaces are configured for the component to be created according to the number and type of input interfaces and output interfaces corresponding to the task component. When the component type selected by the user is a model component, the number and type of input interfaces and output interfaces are configured for the component to be created according to the number and type of input interfaces and output interfaces corresponding to the model component, and dynamic parameters are set for the model component: training state, use state; configure corresponding code information for the training model file and the saved model file in the training state; configure corresponding code information for the loading model file and the inference prediction of the model in the use state. For example, the saved model file in the training state is used to store the labels and features of the model. Therefore, the model file address must be dynamically allocated for the model file. Therefore, the code for generating the file address for the saved model file must be configured for the saved model file.

[0081] The Algorithm Engine option box is used to configure the corresponding programming language for the component to be created based on the programming language information entered by the user. Some programming languages ​​are specifically suitable for certain algorithms because these programming languages ​​encapsulate algorithm packages. For example, the R language encapsulates machine learning algorithms. The Spark language encapsulates distributed processing algorithms and is suitable for massive data processing. See Figure 3In a specific embodiment, the user can select Python, R, or Spark according to actual needs.

[0082] The node type option box is used to configure the target runtime resource for the code of the component to be created according to the runtime resource information of the code entered by the user, and configure the parameters in the target runtime resource. Specifically, the user can select the runtime resource of the code corresponding to the component according to actual needs, that is, select whether the code corresponding to the component runs on the CPU or the GPU, and generate the configuration file required for the code corresponding to the component to run and modify the parameters in the configuration file. Figure 4 If the user selects the cpu node in the node type option box, it means that the code corresponding to the component to be created runs on the CPU.

[0083] In another specific embodiment, the model building system may include: a model storage module and a model selection interface.

[0084] A model storage module is used to obtain data information corresponding to each standard model; store the data information corresponding to each standard model in a preset standard model database; generate corresponding display information for each standard model; and display the display information corresponding to each standard model in the model selection interface; wherein the data information includes model information and document information of the corresponding standard model; the model information includes component information of the components corresponding to the standard model, connection relationship information between components, configuration information of each component, and running code information of each component; and the document information includes model introduction information, data requirement information, and model output information of the standard model;

[0085] The model selection interface is used to monitor whether a standard model is selected in the model selection interface; if so, the selected standard model is loaded in the editing area of ​​the building interface to obtain the target model; wherein, the model selection interface contains at least one standard model; the standard model is a packaged model; a standard model corresponds to a preset function.

[0086] See also Figure 1 In other embodiments, the component adding interface may further include a component classification option box. The component classification option box is used to configure classification information for the component to be created according to the component classification information input by the user. For example, if the component classification input by the user is "preprocessing", the classification information of the component to be created is configured as "preprocessing" according to the component classification information input by the user, which indicates that the component belongs to a preprocessing component.

[0087] It can be seen that the model building system provided by the embodiment of the present invention can enable the user to obtain the required model by simply selecting a standard model in the model selection interface without writing code, or to quickly build the required model by simply dragging the component to the editing area of ​​the building interface and connecting the components in the editing area with connecting lines. In addition, the user can also create custom components according to actual needs to facilitate building the required model.

[0088] Users can use the system provided by the embodiment of the present invention to create the components they need in the system's component addition interface; further, they can drag the components they created to the editing area of ​​the building interface, and then use connecting lines to connect the components to build the model they need; further, they can save the built model as a standard model and display it in the model selection interface of the system provided by the embodiment of the present invention for later selection and use.

[0089] See also Figure 5 The process of a method for creating a custom component in the component adding interface in the model building system provided in the embodiment of the present invention may be:

[0090] S501: monitoring whether an option box is selected in the add component interface;

[0091] S502: When an option box is selected in the add component interface, receiving user input information for the selected option box, and performing corresponding configuration operations according to the user input information;

[0092] When no option box is selected in the add component interface, step S501 is continued.

[0093] S503: Continue to execute the step of monitoring whether an option box is selected in the component adding interface until the component is created;

[0094] In a specific embodiment, a creation completion button may also be set in the component adding interface. When it is detected that the user triggers the button, it indicates that the component creation is completed.

[0095] S504: storing the newly created component in a preset component library, generating display information for the newly created component, and displaying the generated display information in a toolbar of the building interface.

[0096] Specifically, the code configured for the newly created component may be packaged into a string, and basic information of the component such as the name of the component is added to the string, and then the string is stored in a preset component library. In the embodiment of the present invention, the graphic style of the component is universal.

[0097] The method for creating a custom component provided by the embodiment of the present invention can monitor whether an option box is selected in the add component interface; when an option box is selected in the add component interface, receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; continue to perform the step of monitoring whether an option box is selected in the add component interface until the component creation is completed; store the newly created component in the preset component library. It can be seen that the method provided by the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, implementing the method provided by the embodiment of the present invention can solve the problem in the prior art that the personalized needs of users cannot be met due to the inability of users to create custom components according to needs.

[0098] The following is a practical example to further illustrate the method provided by the embodiment of the present invention in more detail.

[0099] The purpose of this example is to create a model component.

[0100] S601: When it is detected that the component name option box is selected, the component name information “model component” input by the user is received;

[0101] S602: According to the component name information input by the user, the component name of the component to be created is configured as “model component”;

[0102] S603: When it is detected that the dependent image option box is selected, the operating environment selected by the user is received as "amancevice / pandas:1.4.1";

[0103] S604: According to the operating environment selected by the user, the operating environment of the component to be created is configured as "amancevice / pandas:1.4.1";

[0104] S605: When it is detected that the application scope option box is selected, the component type selected by the user is received as a model component;

[0105] S606: According to the number and type of input interfaces and output interfaces corresponding to the model component, configure the number and type of input interfaces and output interfaces for the component to be created, and set dynamic parameters for the model component: training state, use state; respectively configure corresponding code information for the training model file and the saved model file in the training state, and configure corresponding code information for the loading model file and the inference prediction of the model in the use state;

[0106] S607: When it is detected that the application scope option box is selected, it is received that the programming language selected by the user is Python;

[0107] S608: According to the programming language selected by the user, the programming language of the component to be created is configured as Python language;

[0108] S609: When it is detected that the node type option box is selected, the node type selected by the user is received as a cpu node;

[0109] S610: According to the running resource information of the code selected by the user, the target running resource of the code of the component to be created is configured as a CPU, and parameters in the CPU are configured;

[0110] S611: When it is detected that the model file exportable option box is selected, the user selects the “Yes” option;

[0111] S612: According to the option selected by the user, configure the code corresponding to the output model file for the component to be created;

[0112] S613: When it is detected that the user triggers the creation completion button in the add component interface, the newly created model component is stored in the preset component library, and display information is generated for the newly created component, and the generated display information is displayed in the toolbar of the building interface.

[0113] The user can use the method for creating custom components provided by the embodiment of the present invention to create the components he needs in the add component interface; further, he can drag the components he created to the editing area of ​​the building interface, and then use connecting lines to connect the components to build the model he needs, and further, he can save the built model as a standard model and display it in the model selection interface of the system provided by the embodiment of the present invention for later selection and use. For example:

[0114] The user needs to build a vehicle performance evaluation model. The components required by the user are: input source component, label data construction component, data splitting component, feature extraction component, standardized data component, model component, scoring component, feature generation component and model evaluation component. If the user finds that the required components are not available in the toolbar of the building interface in the model building system, or some required components are missing in the toolbar, the user can use the method for creating custom components provided in the embodiment of the present invention to create the required components in the component adding interface according to the requirements, generate display information for the newly created components, and display the generated display information in the toolbar of the building interface. Of course, in a specific embodiment, the user can also divide the calculation process corresponding to the model to be built into corresponding multiple steps according to the requirements, and then encapsulate the created multiple components into one component according to the divided steps, and then display the encapsulated generated components in the toolbar of the building interface. When the toolbar of the building interface contains all the required components, the user can drag the components in the toolbar to the editing area of ​​the building interface to build the vehicle performance evaluation model required by him. The specific process can be as follows:

[0115] Open the building interface, drag the input source component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the input source component. In this embodiment, the data received by the data source is the driving data of the vehicle. For the oil vehicle, the driving data includes the fields of vehicle speed, time, fuel consumption, etc.; for the electric vehicle, the driving data includes the fields of vehicle speed, time, power consumption, etc.

[0116] Drag the label data construction component in the toolbar of the construction interface to the editing area of ​​the construction interface, and configure parameters for the label data construction component. In this embodiment, the label data construction component is used to receive the driving data of the vehicle output by the input source component. In the parameters of the label data construction component, the user can choose to evaluate the performance of the oil vehicle. At this time, the label data construction component will receive the driving data of the oil vehicle output by the input source component, and mark the target field, that is, the fuel consumption field, from the received driving data of the oil vehicle, and confirm the fuel consumption data corresponding to the fuel consumption field as the data to be evaluated. If the user chooses to evaluate the performance of the electric vehicle in the parameters of the label data construction component, at this time, the label data construction component will receive the driving data of the electric vehicle output by the input source component, and mark the target field, that is, the power consumption field, from the received driving data of the electric vehicle, and confirm the power consumption data corresponding to the power consumption field as the data to be evaluated.

[0117] Use a connecting line to connect the output interface of the input source component to the input interface of the label data construction component.

[0118] Drag the data splitting component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the data splitting component. The data splitting component can be used to receive the data to be evaluated output by the label data building component, split the data to be evaluated into training data and test data according to the preset splitting rules, and output the training data to the feature extraction component through different output interfaces, and output the test data to the feature generation component and the scoring component respectively. Specifically, the training data can be output to the feature extraction component through the output interface corresponding to the training data, and the test data can be output to the feature generation component and the scoring component respectively through the output interface corresponding to the test data. The preset splitting rule can be a specified ratio strategy or a specified data quantity strategy. Among them, the specified ratio strategy is to divide according to the data ratio. For example: 80% of the data to be evaluated is defined as training data, and the remaining 20% ​​of the data is defined as test data. The specified data quantity strategy is to divide according to the amount of data. For example: a data set with 10,000 data to be evaluated, 7,000 of which are training data, and the remaining 3,000 data to be evaluated are defined as test data.

[0119] Use a connecting line to connect the output interface of the label data construction component to the input interface of the data splitting component.

[0120] Drag the feature extraction component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the feature extraction component. The feature extraction component is composed of a group of feature extraction components. According to different types of training data, that is, different evaluation objects, different feature extraction methods are selected to extract features from the training data. For example, in this embodiment, the evaluation object is the energy consumption evaluation of the vehicle, so the decision tree method is used to extract features from the electricity consumption / fuel consumption data per 100 kilometers. The energy consumption feature construction component is used to receive the training data output by the data splitting component, select the corresponding feature extraction method to extract features from the training data according to the type of training data, and output the extracted feature data to the standardized data component through different interfaces, and output the feature parameters generated during the feature extraction process to the scoring component and the feature generation component respectively.

[0121] Use a connecting line to connect the output interface of the data splitting component to the input interface of the energy consumption characteristic building component.

[0122] Drag the standardized data component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the standardized data component. The standardized data component is used to receive the feature data output by the feature extraction component, and normalize the received feature data to obtain standardized feature data and standardized feature parameters, and output the standardized feature data to the model component through different interfaces, and output the standardized feature parameters to the scoring component and the model evaluation component respectively; wherein, the standardized feature parameters are generated by the standardized data component in the process of normalizing the received feature data. The purpose of normalizing the feature data is to summarize and unify the statistical distribution of the sample data, improve the performance of the model algorithm, and accelerate the convergence speed of the model training.

[0123] Use a connecting line to connect the output interface of the energy consumption feature construction component with the input interface of the standardized data component.

[0124] Drag the model component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the model component. The model component is used to receive the standardized feature data output by the standardized data component, and build an initial evaluation model based on the standardized feature data. According to the evaluation object of the initial evaluation model, the corresponding model training algorithm is selected to train the initial evaluation model, and the evaluation model is output to the scoring component and the model evaluation component respectively. The model component can be composed of a group of components, and different model training algorithms have their own components. For different performance evaluation indicators such as energy consumption and performance evaluation objects such as electricity consumption / fuel consumption per 100 kilometers, you can select the corresponding model training algorithm, such as logistic regression or deep learning model training algorithms.

[0125] Use a connecting line to connect the output interface of the standardized data component to the input interface of the energy consumption model component.

[0126] Drag the scoring component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the scoring component. The scoring component is used to receive the evaluation model output by the model component, the test data output by the data splitting component, the feature parameters output by the feature extraction component, and the standardized feature parameters output by the standardized data component, and score the evaluation model according to the test data, feature parameters, and standardized feature parameters.

[0127] The output interfaces of the data splitting component, the energy consumption feature building component, the standardized data component and the model component are connected to the input interface of the energy consumption score generating component by connecting lines respectively.

[0128] Drag the feature generation component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the feature generation component. The feature generation component is used to receive the test data output by the data splitting component and the feature parameters output by the feature extraction component, and generate the feature data to be tested according to the test data and feature parameters, and output the feature data to be tested to the model evaluation component.

[0129] The output interfaces of the data splitting component and the energy consumption characteristic building component are respectively connected to the input interface of the energy consumption characteristic generating component by connecting lines.

[0130] Drag the model evaluation component in the toolbar of the building interface to the editing area of ​​the building interface, and configure parameters for the model evaluation component. The model evaluation component is used to receive the standardized feature parameters output by the standardized data component, the evaluation model output by the model component, and the feature data to be tested output by the feature generation component, and evaluate the evaluation model according to the standardized feature parameters and the feature data to be tested.

[0131] Use connecting lines to connect the output interfaces of the standardized data component, model component and energy consumption characteristic generation component to the input interface of the model evaluation component to complete the construction of the evaluation model.

[0132] Furthermore, the user can also save the constructed vehicle performance evaluation model as a standard model and display it in the model selection interface of the system provided by the embodiment of the present invention for later selection and use. For example:

[0133] Acquire data information corresponding to the vehicle performance evaluation model; wherein the data information includes model information and document information of the vehicle performance evaluation model; the model information includes component information of components corresponding to the vehicle performance evaluation model, connection relationship information between components, configuration information of each component and running code information of each component; the document information includes model introduction information, data requirement information and model output information of the vehicle performance evaluation model;

[0134] The data information corresponding to the vehicle performance evaluation model is stored in a preset standard model database;

[0135] Generate corresponding display information for the vehicle performance evaluation model; display information corresponding to the vehicle performance evaluation model is displayed in the model selection interface.

[0136] In this way, after the vehicle performance evaluation model is saved as a standard model and displayed in the model selection interface, when the user needs a vehicle performance evaluation model, he only needs to select the vehicle performance evaluation model in the model selection interface. At this time, the model building system provided by the embodiment of the present invention will obtain the data information corresponding to the selected standard model from the preset standard model database according to the identification information of the selected standard model; determine the data information corresponding to the selected standard model as the target data information; draw the selected standard model in the editing area of ​​the building interface according to the target data information; receive the configuration information input by the user through the configurable items in the toolbar; configure the parameters in the selected standard model according to the configuration information, and obtain the target model.

[0137] The method provided in the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, implementing the method provided in the embodiment of the present invention can solve the problem in the prior art that the personalized needs of users cannot be met because the users cannot create custom components according to their needs.

[0138] and Figure 5 Corresponding to the embodiment shown in FIG. 1 , the embodiment of the present invention further provides a device for creating a custom component. Figure 7 As shown, the device includes: a monitoring module 701, a configuration module 702, and a storage module 703, wherein:

[0139] Monitoring module 701, used to monitor whether an option box is selected in the add component interface;

[0140] Configuration module 702, for receiving user input information for the selected option box when an option box is selected in the add component interface, and performing corresponding configuration operations according to the user input information;

[0141] The storage and display module 703 is used to store the newly created component in a preset component library when the new component is created, generate display information for the newly created component, and display the generated display information in the toolbar of the building interface.

[0142] Optionally, the Add Component interface includes: Component Name Option Box, Dependency Image Option Box, Application Scope Option Box, Algorithm Engine Option Box, and Node Type Option Box, among which:

[0143] The component name option box is used to configure the component name for the component to be created according to the component name information input by the user;

[0144] The Dependency Image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user;

[0145] The application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created;

[0146] The algorithm engine option box is used to configure the corresponding programming language for the component to be created according to the programming language information input by the user;

[0147] The node type option box is used to configure the target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure the parameters in the target running resources.

[0148] Optionally, the preset specific component type is a model component;

[0149] Configuration module 702 is specifically used for:

[0150] Set dynamic parameters for model components;

[0151] According to the dynamic parameters of the model components, code information corresponding to the dynamic parameters is configured for the model components respectively;

[0152] Configure the corresponding code information for the model file in the model component.

[0153] Optionally, the dynamic parameters set for the model component include: training status, usage status;

[0154] Configuration module 702 is specifically used for:

[0155] Configure the corresponding code information for the training model file and the saved model file in the training state;

[0156] Configure the corresponding code information for loading model files and model inference prediction in the usage state.

[0157] The detection module, configuration module and storage module in the device provided in the embodiment of the present invention are respectively used to implement the monitoring function, configuration function and storage function in the component adding interface of the system provided in the embodiment of the present invention.

[0158] The device for creating a custom component provided by the embodiment of the present invention can monitor whether an option box is selected in the add component interface; when an option box is selected in the add component interface, receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; continue to perform the steps of monitoring whether an option box is selected in the add component interface until the component creation is completed; and store the newly created component in the preset component library. It can be seen that the device provided by the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, the application of the device provided by the embodiment of the present invention can solve the problem of the inability to meet the personalized needs of users in the prior art due to the inability of users to create custom components according to needs.

[0159] and Figure 5 Corresponding to the embodiment shown, the embodiment of the present invention further provides an electronic device, see Figure 8 , including a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804;

[0160] Memory 803, used for storing computer programs;

[0161] The processor 801 is used to implement any method step of creating a custom component in the above embodiments when executing the program stored in the memory.

[0162] The electronic device provided by the embodiment of the present invention can monitor whether an option box is selected in the add component interface; when an option box is selected in the add component interface, receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; continue to perform the steps of monitoring whether an option box is selected in the add component interface until the component creation is completed; store the newly created component in the preset component library. It can be seen that the electronic device provided by the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, the electronic device provided by the embodiment of the present invention can solve the problem of the inability to meet the personalized needs of users in the prior art due to the inability of users to create custom components according to needs.

[0163] and Figure 5 Corresponding to the embodiment shown, an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, any method step of creating a custom component in the above embodiments is implemented.

[0164] The storage medium provided by the embodiment of the present invention can monitor whether an option box is selected in the add component interface; when an option box is selected in the add component interface, receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; continue to execute the steps of monitoring whether an option box is selected in the add component interface until the component is created; and store the newly created component in the preset component library. It can be seen that the storage medium provided by the embodiment of the present invention can enable users to create custom components according to actual needs. Therefore, the application of the storage medium provided by the embodiment of the present invention can solve the problem in the prior art that the personalized needs of users cannot be met due to the inability of users to create custom components according to needs.

[0165] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program codes.

[0166] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0169] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A model building system, characterized in that: The system includes: an adding component interface and a building interface; The add component interface is used to monitor whether an option box is selected in the add component interface, and when an option box is selected in the add component interface, display the code information of the selected option box in the code display area of ​​the add component interface; receive user input information for the selected option box, perform corresponding configuration operations according to the user's input information, and continue to perform the step of monitoring whether an option box is selected in the add component interface until the component is created; store the newly created component in a preset component library; and generate display information for the newly created component, and display the generated display information in the toolbar of the building interface; wherein the input information includes the code information input by the user through the code display area; The building interface is used to monitor whether a component is dragged from the toolbar to the editing area of ​​the building interface; configure the parameters of the component dragged to the editing area according to the parameter value input by the user; detect whether a connection instruction is received, and when the connection instruction is received, generate a connection line to connect the components to be connected according to the identifier of the component to be connected contained in the connection instruction, the preset component range that each component can connect to, and the input and output interface type of each component; continue to perform the step of monitoring whether a component is dragged from the toolbar to the editing area of ​​the building interface until the model is built; wherein the building interface includes a toolbar and an editing area, and the toolbar includes a plurality of packaged components; a component corresponds to a step in the calculation process corresponding to the model; the model is a vehicle performance evaluation model; The toolbar of the construction interface includes: input source component, label data construction component, data splitting component, feature extraction component, standardized data component, model component, scoring component, feature generation component and model evaluation component; wherein, The input source component is used to receive driving data; The label data construction component is used to receive the driving data of the vehicle output by the input source component, mark the target field from the received driving data of the vehicle output by the input source component, and confirm the data corresponding to the target field as evaluation data; The data splitting component is used to receive the data to be evaluated output by the label data building component, split the data to be evaluated into training data and test data according to a preset splitting rule, and output the training data to the feature extraction component through different output interfaces, and output the test data to the feature generation component and the scoring component respectively; The feature extraction component is composed of a group of feature extraction components, which are used to select different feature extraction methods to extract features from training data according to different types of training data; The standardized data component is used to receive the feature data output by the feature extraction component, and perform normalization processing on the received feature data to obtain standardized feature data and standardized feature parameters, and output the standardized feature data to the model component through different interfaces, and output the standardized feature parameters to the scoring component and the model evaluation component respectively; The model component is used to receive the standardized feature data output by the standardized data component, and to construct an initial evaluation model according to the standardized feature data, to select a corresponding model training algorithm according to the evaluation object of the initial evaluation model, to train the initial evaluation model, and to output the evaluation model to the scoring component and the model evaluation component respectively; The scoring component is used to respectively receive the evaluation model output by the model component, the test data output by the data splitting component, the feature parameters output by the feature extraction component, and the standardized feature parameters output by the standardized data component, and score the evaluation model according to the test data, the feature parameters, and the standardized feature parameters; The feature generation component is used to receive the test data output by the data splitting component and the feature parameters output by the feature extraction component respectively, and generate feature data to be tested according to the test data and the feature parameters, and output the feature data to be tested to the model evaluation component; The model evaluation component is used to respectively receive the standardized feature parameters output by the standardized data component, the evaluation model output by the model component, and the feature data to be tested output by the feature generation component, and evaluate the evaluation model according to the standardized feature parameters and the feature data to be tested; The Add Component interface includes: Component Name Option Box, Dependency Image Option Box, Application Scope Option Box, Algorithm Engine Option Box, and Node Type Option Box, among which, The component name option box is used to configure a component name for the component to be created according to the component name information input by the user; The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user; An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created; An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user; The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

2. The system according to claim 1, characterized in that The system further includes: a model storage module and a model selection interface; The model storage module is used to obtain data information corresponding to each standard model; store the data information corresponding to each standard model in a preset standard model database; generate corresponding display information for each standard model; and display the display information corresponding to each standard model in the model selection interface; wherein the data information includes model information and document information of the corresponding standard model; the model information includes component information of the components corresponding to the standard model, connection relationship information between components, configuration information of each component and running code information of each component; the document information includes model introduction information, data requirement information and model output information of the standard model; The model selection interface is used to monitor whether a standard model is selected in the model selection interface; if so, the selected standard model is loaded in the editing area of ​​the building interface to obtain the target model; wherein, the model selection interface contains at least one standard model; the standard model is a packaged model; and one of the standard models corresponds to a preset function.

3. A method for creating a custom component, characterized in that: The method for adding a component interface in the model building system of claim 1 comprises the following steps: Monitor whether the option box is selected in the add component interface; When an option box is selected in the add component interface, code information of the selected option box is displayed in the code display area of ​​the add component interface; and user input information for the selected option box is received, and corresponding configuration operations are performed according to the user input information; wherein the input information includes code information input by the user through the code display area; Continue to execute the step of monitoring whether an option box is selected in the adding component interface until the component is created; The newly created component is stored in a preset component library, and display information is generated for the newly created component, and the generated display information is displayed in a toolbar of the building interface; The Add Component interface includes: Component Name Option Box, Dependency Image Option Box, Application Scope Option Box, Algorithm Engine Option Box, and Node Type Option Box, among which, The component name option box is used to configure a component name for the component to be created according to the component name information input by the user; The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user; An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created; An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user; The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

4. The method according to claim 3, characterized in that The preset specific component type is a model component; When the component type of the component to be created is a preset specific component type, the step of configuring the code information corresponding to the preset specific component type for the component to be created includes: Setting dynamic parameters for the model components; According to the dynamic parameters of the model components, respectively configure the model components with code information corresponding to the dynamic parameters; The corresponding code information is configured for the model file in the model component.

5. The method according to claim 4, characterized in that The dynamic parameters set for the model component include: training status, usage status; The step of respectively configuring code information corresponding to the dynamic parameters for the model components according to the dynamic parameters of the model components comprises: Configure the corresponding code information for the training model file and the saved model file in the training state; Configure the corresponding code information for loading model files and model inference prediction in the usage state.

6. A device for creating a custom component, characterized in that: The device for adding a component interface in the model building system of claim 1 comprises: The monitoring module is used to monitor whether an option box is selected in the add component interface; The configuration module is used to display the code information of the selected option box in the code display area of ​​the add component interface when an option box is selected; and receive the user's input information for the selected option box, and perform corresponding configuration operations according to the user's input information; wherein the input information includes the code information input by the user through the code display area; A storage and display module is used to store the newly created component in a preset component library when the new component is created, generate display information for the newly created component, and display the generated display information in the toolbar of the building interface; The Add Component interface includes: Component Name Option Box, Dependency Image Option Box, Application Scope Option Box, Algorithm Engine Option Box, and Node Type Option Box, among which, The component name option box is used to configure a component name for the component to be created according to the component name information input by the user; The dependent image option box is used to configure the operating environment for the component to be created according to the target operating environment input by the user; An application scope option box is used to configure the component type for the component to be created according to the component type information input by the user, and configure the number and type of input interfaces and output interfaces for the component to be created according to the component type of the component to be created; when the component type of the component to be created is a preset specific component type, configure the code information corresponding to the preset specific component type for the component to be created; An algorithm engine option box is used to configure a corresponding programming language for the component to be created according to the programming language information input by the user; The node type option box is used to configure target running resources for the code of the component to be created according to the running resource information of the code input by the user, and configure parameters in the target running resources.

7. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 3-5 when executing the program stored in the memory.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 3 to 5 are implemented.