Modeling methods and systems

Through automated modeling methods and systems, the model method in the modeling file is used to obtain component information and data processing method parameters, which solves the problem of business personnel understanding the code and improves the efficiency of business implementation and the speed of model construction.

CN111461349BActive Publication Date: 2024-09-27CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010265511.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-07
Publication Date
2024-09-27
Estimated Expiration
2040-04-07

AI Technical Summary

Technical Problem

The existing technology implements the modeling process by writing code, which results in business personnel without development foundation being unable to quickly understand the code and reducing business implementation efficiency.

Method used

Provide a modeling method and system that obtains the model method in the modeling file, obtains the encapsulated component information according to the pre-obtained process ID, analyzes the component information to obtain the data processing method parameters, and calls the data processing in the modeling file method to automatically build the model.

Benefits of technology

It improves the efficiency of business implementation, allowing users to quickly build models without paying attention to the principles and codes behind the system, and facilitates extended modeling and model tuning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111461349B
    Figure CN111461349B
Patent Text Reader

Abstract

The present invention provides a modeling method and system. The modeling method includes: obtaining a modeling file and calling a model method in the modeling file; obtaining packaged component information according to a pre-acquired process ID through the model method; analyzing the component information through the model method to obtain a data processing method parameter; calling a data processing method in the modeling file according to the data processing method parameter to perform modeling. The present invention can automatically establish a model and improve the efficiency of business implementation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of model creation, and in particular to a modeling method and system. Background Art

[0002] At present, the existing technology implements the modeling process by writing code, which makes it impossible for business personnel without development foundation to quickly understand the code, thereby reducing the efficiency of business implementation. Summary of the invention

[0003] The main purpose of the embodiments of the present invention is to provide a modeling method and system to automatically establish a model and improve the efficiency of business implementation.

[0004] In order to achieve the above object, an embodiment of the present invention provides a modeling method, including:

[0005] Get the modeling file and call the model method in the modeling file;

[0006] Obtain the encapsulated component information based on the pre-obtained process ID through the model method;

[0007] Analyze component information through model methods to obtain data processing method parameters;

[0008] The data processing method in the modeling file is called according to the data processing method parameters to perform modeling.

[0009] The embodiment of the present invention further provides a modeling system, including:

[0010] A calling unit, used for obtaining a modeling file and calling a model method in the modeling file;

[0011] A component information acquisition unit, used for acquiring packaged component information according to a pre-acquired process ID through a model method;

[0012] An analysis unit, used for analyzing component information through a model method to obtain data processing method parameters;

[0013] The modeling unit is used to call the data processing method in the modeling file according to the data processing method parameters to perform modeling.

[0014] An embodiment of the present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the steps of the modeling method when executing the computer program.

[0015] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the modeling method are implemented.

[0016] The modeling method and system of the embodiment of the present invention first call the model method in the modeling file, then obtain the encapsulated component information according to the process ID through the model method, and then analyze the component information through the model method to obtain the data processing method parameters, and finally call the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish the model and improve the efficiency of business implementation. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0018] Figure 1 is a flow chart of a modeling method in one embodiment of the present invention;

[0019] Figure 2 is a structural block diagram of a modeling system in an embodiment of the present invention;

[0020] Figure 3 It is a structural block diagram of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0022] Those skilled in the art will appreciate that the embodiments of the present invention may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0023] In view of the fact that the prior art implements the modeling process by writing codes, which makes it impossible for business personnel without development foundation to quickly understand the codes, thus reducing the efficiency of business implementation, an embodiment of the present invention provides a modeling method to automatically establish a model and improve the efficiency of business implementation. The present invention is described in detail below with reference to the accompanying drawings.

[0024] Figure 1 FIG. 1 is a flow chart of a modeling method in one embodiment of the present invention. Figure 1 As shown, the modeling methods include:

[0025] S101: Obtain a modeling file and call a model method in the modeling file.

[0026] When the operating environment is spark, the modeling file is a jar file and the model method is the main method. When the operating environment is tensorflow, the modeling file is a python file and the model method is the entry method.

[0027] S102: Obtain packaged component information according to the pre-acquired process ID through a model method.

[0028] In specific implementation, S102 includes: the model method first obtains the component json string according to the process ID, then converts the component json string into a single component information, and puts the above component information into a collection.

[0029] S103: Analyze component information through a model method to obtain data processing method parameters.

[0030] In specific implementation, S103 includes: calling the model method to analyze the component information in the collection in the order corresponding to the process ID, sequentially obtaining the attribute information corresponding to the model method in the component information, and using the attribute information as a data processing method parameter.

[0031] When the operating environment is spark, for component information with a front-end relationship, spark will use the generation result of the previous component information as a parameter and return it to the subsequent component information.

[0032] When the running environment is tensorflow, the advanced attributes in the component information depend on the generation result of the previous component information of the component information.

[0033] S104: Calling the data processing method in the modeling file according to the data processing method parameters to perform modeling.

[0034] When the operating environment is spark, the model established is a machine learning model. When the operating environment is tensorflow, the model established is a deep learning model.

[0035] In specific implementation, the data processing method in the modeling file can be called according to the reflection principle. When the component information includes a model saving component, the model method can also be called to save the model file generated after modeling in HDFS (Hadoop Distributed File System).

[0036] Figure 1The execution subject of the modeling method shown can be a computer. The present invention is a drag-and-drop visual modeling method. The process in the modeling method will be saved and recorded in a log. Users can view the log records or historical records in real time, which is convenient for users to communicate with project-related personnel and improve communication efficiency. Figure 1 As can be seen from the process shown, the modeling method of the embodiment of the present invention first calls the model method in the modeling file, then obtains the encapsulated component information according to the process ID through the model method, and then analyzes the component information through the model method to obtain the data processing method parameters, and finally calls the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish a model and improve the efficiency of business implementation.

[0037] In one embodiment, when the operating environment is spark, before executing S101, it also includes: when a machine learning instruction sent by a user is received, obtaining a modeling file through the spark computing engine according to a pre-acquired modeling file storage path.

[0038] When the operating environment is tensorflow, before executing S101, the method further includes: obtaining a modeling file according to a pre-acquired server IP address. In specific implementation, the deep learning instruction is first sent to the corresponding GPU server according to the server IP address, and then the GPU server calls the entry method in the python file according to the deep learning instruction.

[0039] In addition, the user can obtain all component information in the component table of the front-end page of the present invention, drag or click on the component information, set the data processing method parameters in the component information, send machine learning instructions or deep learning instructions, save the component json string to the component table, etc.

[0040] The specific process of the embodiment of the present invention is as follows:

[0041] 1. When the operating environment is spark, receive the machine learning instructions sent by the user, and obtain the modeling file through the spark computing engine according to the pre-acquired modeling file storage path. When the operating environment is tensorflow, send the deep learning instructions to the corresponding GPU server according to the server IP address, and let the GPU server call the modeling file according to the deep learning instructions.

[0042] 2. Call the model method in the modeling file, and obtain the encapsulated component information according to the pre-acquired process ID through the model method.

[0043] 3. Call the model method to analyze the component information in the collection in the order corresponding to the process ID, obtain the attribute information corresponding to the model method in the component information in turn, and use the above attribute information as the data processing method parameter.

[0044] 4. According to the reflection principle, call the data processing method in the modeling file to perform modeling.

[0045] In summary, the modeling method of the embodiment of the present invention first calls the model method in the modeling file, then obtains the encapsulated component information according to the process ID through the model method, and then analyzes the component information through the model method to obtain the data processing method parameters, and finally calls the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish a model and improve the efficiency of business implementation. Compared with the prior art, the present invention can encapsulate the various module codes of the modeling process, and the user only needs to use the drag-and-drop method to quickly build the model without paying attention to the principles and codes behind the system, which is also convenient for extended modeling and model tuning.

[0046] Based on the same inventive concept, an embodiment of the present invention further provides a modeling system. Since the principle of solving the problem by the system is similar to that of the modeling method, the implementation of the system can refer to the implementation of the method, and the repeated parts will not be repeated.

[0047] Figure 2 is a structural block diagram of the modeling system in an embodiment of the present invention. Figure 2 As shown, the modeling system includes:

[0048] A calling unit, used for obtaining a modeling file and calling a model method in the modeling file;

[0049] A component information acquisition unit, used for acquiring packaged component information according to a pre-acquired process ID through a model method;

[0050] An analysis unit, used for analyzing component information through a model method to obtain data processing method parameters;

[0051] The modeling unit is used to call the data processing method in the modeling file according to the data processing method parameters to perform modeling.

[0052] In one embodiment, it also includes:

[0053] The first modeling file acquisition unit is used to acquire the modeling file according to the pre-acquired modeling file storage path through the computing engine.

[0054] In one embodiment, it also includes:

[0055] The second modeling file acquisition unit is used to acquire the modeling file according to the pre-acquired server IP address.

[0056] In one embodiment, the modeling file is a jar file or a python file.

[0057] In summary, the modeling system of the embodiment of the present invention first calls the model method in the modeling file, then obtains the encapsulated component information according to the process ID through the model method, then analyzes the component information through the model method to obtain the data processing method parameters, and finally calls the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish the model and improve the efficiency of business implementation. Compared with the prior art, the present invention can encapsulate the various module codes of the modeling process, and the user only needs to use the drag-and-drop method to quickly build the model without paying attention to the principles and codes behind the system, which is also convenient for extended modeling and model tuning.

[0058] The embodiment of the present invention also provides a specific implementation of a computer device capable of implementing all the steps in the modeling method in the above embodiment. Figure 3 is a block diagram of a computer device in an embodiment of the present invention, see Figure 3 , the computer equipment specifically includes the following contents:

[0059] Processor (processor) 301 and memory (memory) 302.

[0060] The processor 301 is used to call the computer program in the memory 302. When the processor executes the computer program, all the steps in the modeling method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0061] Get the modeling file and call the model method in the modeling file;

[0062] Obtain the encapsulated component information based on the pre-obtained process ID through the model method;

[0063] Analyze component information through model methods to obtain data processing method parameters;

[0064] The data processing method in the modeling file is called according to the data processing method parameters to perform modeling.

[0065] In summary, the computer device of the embodiment of the present invention first calls the model method in the modeling file, then obtains the encapsulated component information according to the process ID through the model method, then analyzes the component information through the model method to obtain the data processing method parameters, and finally calls the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish the model and improve the efficiency of business implementation. Compared with the prior art, the present invention can encapsulate the various module codes of the modeling process, and the user only needs to use the drag-and-drop method to quickly build the model without paying attention to the principles and codes behind the system, which is also convenient for extended modeling and model tuning.

[0066] The embodiment of the present invention also provides a computer-readable storage medium capable of implementing all the steps in the modeling method in the above embodiment. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the modeling method in the above embodiment are implemented. For example, when the processor executes the computer program, the following steps are implemented:

[0067] Get the modeling file and call the model method in the modeling file;

[0068] Obtain the encapsulated component information based on the pre-obtained process ID through the model method;

[0069] Analyze component information through model methods to obtain data processing method parameters;

[0070] The data processing method in the modeling file is called according to the data processing method parameters to perform modeling.

[0071] In summary, the computer-readable storage medium of the embodiment of the present invention first calls the model method in the modeling file, then obtains the encapsulated component information according to the process ID through the model method, and then analyzes the component information through the model method to obtain the data processing method parameters, and finally calls the data processing method in the modeling file according to the data processing method parameters to perform modeling, which can automatically establish a model and improve the efficiency of business implementation. Compared with the prior art, the present invention can encapsulate the various module codes of the modeling process, and the user only needs to use the drag-and-drop method to quickly build the model without paying attention to the principles and codes behind the system, which is also convenient for extended modeling and model tuning.

[0072] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0073] Those skilled in the art may also understand that the various illustrative logical blocks, units, and steps listed in the embodiments of the present invention may be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly demonstrate the interchangeability of hardware and software, the various illustrative components, units, and steps described above have generally described their functions. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art may use various methods to implement the described functions for each specific application, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present invention.

[0074] The various illustrative logic blocks, or units, or devices described in the embodiments of the present invention can be implemented or operated by a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of the above. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any conventional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.

[0075] The steps of the method or algorithm described in the embodiments of the present invention can be directly embedded in hardware, a software module executed by a processor, or a combination of the two. The software module can be stored in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a removable disk, a CD-ROM, or other storage media of any form in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and the storage medium can be arranged in an ASIC, and the ASIC can be arranged in a user terminal. Optionally, the processor and the storage medium can also be arranged in different components in the user terminal.

[0076] In one or more exemplary designs, the above functions described in the embodiments of the present invention can be implemented in hardware, software, firmware or any combination of the three. If implemented in software, these functions can be stored on a computer-readable medium, or transmitted in the form of one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media that facilitate the transfer of computer programs from one place to another. The storage medium can be any available medium that can be accessed by any general or special computer. For example, such computer-readable media can include but are not limited to RAM, ROM, EEPROM, CD-ROM or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that can be used to carry or store program codes in the form of instructions or data structures and other forms that can be read by general or special computers, or general or special processors. In addition, any connection can be appropriately defined as a computer-readable medium, for example, if the software is transmitted from a website site, server or other remote resource through a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wirelessly, such as infrared, wireless and microwave, it is also included in the defined computer-readable medium. The disk and disc include compact disk, laser disk, optical disk, DVD, floppy disk and blue-ray disk. Disks usually copy data magnetically, while discs usually copy data optically with lasers. The above combination can also be included in computer readable media.

Claims

1. A modeling method, characterized in that: include: Obtain a modeling file, and call a model method in the modeling file; The encapsulated component information is obtained according to the pre-acquired process ID through the model method; wherein the model method obtains the component json string according to the process ID, converts the component json string into single component information and puts it into a collection; Analyze the component information by the model method to obtain data processing method parameters; Calling the data processing method in the modeling file according to the data processing method parameters to perform modeling; The obtaining of the modeling file comprises: when the operating environment is spark, receiving a machine learning instruction sent by a user, and obtaining the modeling file according to a pre-acquired modeling file storage path through the spark computing engine; when the operating environment is tensorflow, sending a deep learning instruction to a corresponding GPU server according to the server IP address, and causing the GPU server to call the modeling file according to the deep learning instruction; Analyze component information through model methods, and obtain data processing method parameters including: Call the model method to analyze the component information in the collection in the order corresponding to the process ID, obtain the attribute information corresponding to the model method in the component information in turn, and use the attribute information as a data processing method parameter; When the operating environment is spark, for component information with a preceding and following relationship, spark uses the generation result of the preceding component information as a parameter and returns it to the succeeding component information; When the running environment is tensorflow, the advanced attributes in the component information depend on the generation result of the previous component information of the component information.

2. The modeling method according to claim 1, characterized in that: The modeling file is a jar file or a python file.

3. A modeling system, characterized in that: include: A calling unit, used for obtaining a modeling file and calling a model method in the modeling file; A component information acquisition unit, used to acquire the encapsulated component information according to the pre-acquired process ID through the model method; wherein the model method acquires the component json string according to the process ID, converts the component json string into a single component information and puts it into a collection; An analysis unit, used for analyzing the component information by the model method to obtain data processing method parameters; A modeling unit, configured to call the data processing method in the modeling file according to the data processing method parameters to perform modeling; The calling unit is specifically used for: when the operating environment is spark, receiving the machine learning instruction sent by the user, and obtaining the modeling file according to the pre-acquired modeling file storage path through the spark computing engine; when the operating environment is tensorflow, sending the deep learning instruction to the corresponding GPU server according to the server IP address, and making the GPU server call the modeling file according to the deep learning instruction; The analysis unit is specifically used for: Call the model method to analyze the component information in the collection in the order corresponding to the process ID, obtain the attribute information corresponding to the model method in the component information in turn, and use the attribute information as a data processing method parameter; When the operating environment is spark, for component information with a preceding and following relationship, spark uses the generation result of the preceding component information as a parameter and returns it to the succeeding component information; When the running environment is tensorflow, the advanced attributes in the component information depend on the generation result of the previous component information of the component information.

4. The modeling system according to claim 3, characterized in that: The modeling file is a jar file or a python file.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the modeling method according to any one of claims 1 to 2 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the modeling method according to any one of claims 1 to 2 are implemented.