Construction system and construction method of big data analysis algorithm library
Through the construction system of big data analysis algorithm library, the shortcomings of traditional algorithm libraries in cross-platform, multi-language compatibility and algorithm flexibility are solved, cross-platform and cross-language algorithm fusion and process execution are achieved, and analysis efficiency and Algorithm adaptability supports the seamless connection and evolution of enterprise historical algorithms.
Patent Information
- Application Number
- CN202410217261.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-02-28
AI Technical Summary
Traditional big data analysis algorithm libraries have shortcomings in cross-platform, multi-language compatibility and algorithm flexibility, resulting in low analysis efficiency, difficulty in algorithm selection, difficulty in algorithm adaptation and algorithm fusion, and cannot meet the compatibility and compatibility of industry-owned algorithms. Evolution needs.
A system for building a big data analysis algorithm library is designed, including an analysis process building module, an operator platform selection module, a reverse code generation module, and a user code verification module. Through the visual process construction, automatic selection of the benchmark operating environment, and reverse Generate code and verify it to achieve cross-platform and cross-language algorithm integration and process execution.
It improves the efficiency of data analysis, simplifies process construction, realizes flexible adaptation of algorithms and the integration of heterogeneous algorithms, and supports the seamless connection and sustainable evolution of enterprise historical algorithms.
Smart Images

Figure CN118012387B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of big data analysis methods, and relates to a system for constructing a big data analysis algorithm library. The present invention also relates to a method for constructing a big data analysis algorithm library. Background Art
[0002] With the development of big data ecological software, big data analysis algorithms based on big data technology and centered on data processing and business analysis have also been widely used. Therefore, building an algorithm library for industry big data analysis is one of the necessary elements to promote the development of the big data industry.
[0003] Most traditional big data algorithm libraries are designed to improve the richness of platform algorithms, but they cannot fully meet the above requirements in terms of cross-platform algorithm heterogeneity, multi-language compatibility, algorithm selection and flexible use of algorithms. Commonly used data analysis algorithms are all developed based on a unified language and environment, such as small-scale data analysis algorithm libraries represented by Scikit-learn, large-scale data analysis algorithm libraries represented by Spark MLlib, data statistical analysis algorithm libraries represented by MATLAB, deep learning algorithm frameworks represented by Pytorch and Tensorflow, and signal data processing algorithm libraries represented by H2O. However, in actual industry data analysis, it is usually necessary to cooperate with multiple algorithms in multiple platforms to build a complete data analysis process. This requires users to first select a platform based on the business, and then select an algorithm based on the platform. If multiple algorithms required for the process exist in multiple platforms, they can only be manually coded to achieve environmental consistency of these algorithms. In addition, traditional enterprises have accumulated a large number of self-developed algorithms in the process of development to solve data analysis problems in their industry. These special algorithms for the industry may be based on any programming environment. When they are integrated into the algorithm library, the code needs to be reconstructed to adapt to the entire analysis process. All of the above undoubtedly brings difficulties to the establishment of a big data analysis algorithm library for enterprises.
[0004] In summary, the existing big data analysis algorithm libraries or big data analysis platforms have the following main problems in industry-oriented data analysis scenarios:
[0005] Analysis efficiency issues: Traditional data analysis requires cross-domain experts to spend a lot of time on business communication and algorithm debugging. The threshold is high, which causes many inconveniences to analysis modeling and design.
[0006] Algorithm selection problem: Traditional data analysis cannot combine the advantages of the algorithms of various open source platforms and automatically select operators for specific platforms. A lot of manual intervention is required to select the appropriate platform and further select the appropriate algorithm.
[0007] Algorithm adaptation problem: Traditional data analysis platforms provide a complete interface configuration that prevents users from completing customized code modifications, while the interface call format is difficult for novice users to use, lacking flexibility in the data analysis process.
[0008] Algorithm fusion problem: Traditional analysis algorithm platforms cannot support the technical interoperability and seamless connection between new platform algorithms and the company's historical algorithms, and thus cannot achieve broad compatibility and sustainable evolution of the industry's own algorithm library. Summary of the invention
[0009] The purpose of the present invention is to provide a system for building a big data analysis algorithm library, which can realize cross-platform and cross-language algorithm fusion and implement data analysis in a complete and heterogeneous data analysis flow.
[0010] Another object of the present invention is to provide a method for constructing a big data analysis algorithm library.
[0011] The technical solution adopted by the present invention is a system for constructing a big data analysis algorithm library, comprising:
[0012] The analysis process building module allows users to visually select algorithms and connect them end to end to build a complete data analysis process and generate a process description file;
[0013] The operator platform selection module selects a benchmark operating environment for each algorithm in the data analysis process built by the analysis process construction module, and writes the benchmark operating environment corresponding to each algorithm into the process description file;
[0014] The code reverse generation module generates the algorithm code of each algorithm in its benchmark operating environment, which can be manually edited by users;
[0015] User code verification module verifies whether the algorithm code manually edited by the user complies with the rules. If it does, it generates native code;
[0016] The cluster control host is deployed with a process execution engine, which sends the native code of each algorithm to the cluster computing host that matches its environment;
[0017] The cluster computing host receives the native code sent by the process execution engine, completes data reading and input, code compilation and running, and data output and caching.
[0018] The present invention is also characterized in that: the cluster computing hosts include multiple categories, each category of cluster computing hosts deploys only one benchmark operating environment, and the cluster control host selects the corresponding cluster computing host to issue native code according to the benchmark operating environment of the algorithm.
[0019] Another technical solution adopted by the present invention is a method for constructing a big data analysis algorithm library, which adopts the above-mentioned big data analysis algorithm library construction system and is implemented specifically according to the following steps:
[0020] Step 1: The algorithm library initially includes various algorithms used in big data analysis;
[0021] Step 2: Users can visually edit data analysis process nodes through the analysis process building module according to their needs to form a data analysis process. Each process node corresponds to an algorithm in step 1, and a process description file is generated;
[0022] Step 3: The operator platform selection module selects a suitable benchmark operating environment for the algorithm of this process node, and writes the benchmark operating environment corresponding to each algorithm into the process description file;
[0023] Step 4: The code reverse generation module obtains the code template in the benchmark running environment where the algorithm is located, and reversely generates the algorithm code based on the input of the corresponding algorithm parameters input by the user interface and displays it on the interface for the user to edit, thereby obtaining the algorithm code edited by the user;
[0024] Step 5: The user code verification module verifies whether the algorithm code manually edited by the user complies with the rules. If it complies, the native code is generated;
[0025] Step 6: The process execution engine sends the native code of each algorithm to the cluster computing host that matches its environment to complete data reading and input, code compilation and running, and data output and caching.
[0026] The second technical solution of the present invention is also characterized in that each algorithm in step 1 comes from a different or the same open source platform or self-developed platform and the implementation process of the same algorithm on different platforms is included in the algorithm library; and the implementation of each algorithm in multiple benchmark operating environments has a standardized code template stored in the local Git code library;
[0027] In step 2, the input of the first process node algorithm in the data analysis process is the data source to be analyzed, and the input of the remaining process node algorithms is the output after the execution of the previous one or more process node algorithms; the process description file generated by the process construction module includes the ID of each algorithm in the process node, as well as the input and output port connection relationship between the algorithms in the data analysis process.
[0028] In step 3, the operator platform selection module selects a suitable benchmark operating environment based on the input data scale, data type and cluster hardware configuration of the process node algorithm, and writes the benchmark operating environment corresponding to each algorithm into the process description file.
[0029] Step 4 is as follows: the code reverse generation module obtains the code template of the benchmark operating environment where the algorithm is located from the local Git code library, and combines the input of the corresponding algorithm parameters entered in the user interface to reversely generate the algorithm code corresponding to its benchmark operating environment and display it on the interface for user editing. The name of each algorithm code is the same as its ID in the process node. After editing, the user obtains the edited algorithm code.
[0030] The user code verification module provides each algorithm with standard input test data and standard output data. The standard input test data is input into the edited algorithm code. If the format of the output data is consistent with the standard output data format, the verification is successful and the native code is generated, that is, the algorithm code edited and verified by the user; if it cannot be output or the format is inconsistent, the verification fails.
[0031] Step 6 is as follows: the process execution engine parses the process description file, loops through each process node, determines whether it meets the execution conditions, and sends the algorithm code of the process node that meets the conditions to the cluster computing host that matches its benchmark operating environment for execution;
[0032] After receiving the code sent by the process execution engine, the cluster computing host reads the code snippet and determines whether the local environment meets the execution conditions of the code. If not, it downloads the image package that the algorithm depends on to the local environment. The cluster computing host compiles the code locally and reads the set input data from the HBase cache database according to the node relationship set in the data analysis process. The cluster computing host executes the code locally and writes the final output data to the HBase cache database and the execution status to the Redis cache database.
[0033] In step 6, for each process description file, the process execution engine loops until all algorithm nodes in the process description file are executed successfully. The process execution engine determines whether each algorithm is executed successfully by reading the algorithm execution status written by the cluster computing host in the Redis cache database. The process execution engine obtains the data after each algorithm is executed by reading the algorithm execution results written by the algorithm node in the HBase cache database.
[0034] In step 6, the process execution engine parses the process description file and traverses the algorithm nodes in the process execution file every n seconds. If the predecessor nodes of an algorithm have been successfully executed, the algorithm will be executed in this traversal, that is, the algorithm code of the process node will be sent to the cluster computing host matching its benchmark operating environment for execution; if a predecessor node of an algorithm has not been successfully executed, the algorithm will not be executed in this traversal, and it will wait for the next traversal to determine whether to execute it; if there is an execution error of a node in the process, the entire analysis process is marked as an error state and the traversal ends; if all nodes in the process are successfully executed, the entire analysis process is marked as a success state and the traversal ends.
[0035] The beneficial effects of the present invention are:
[0036] The present invention realizes the interface and visual data analysis process construction through the process construction module, simplifies the data analysis process, and solves the problem of analysis efficiency. The algorithm platform selection module is used to realize the automatic selection of each algorithm benchmark operating environment according to the data scale, type, and hardware configuration, without pre-specifying the environment of each algorithm, which also improves the analysis efficiency. Through the code reverse generation module, the benchmark platform code of the algorithm is reversely generated, and its effectiveness is guaranteed through the code verification module, which solves the problem of flexible adaptation of the algorithm. By integrating heterogeneous algorithms of various types and platforms into a data analysis process, and then sending different types of algorithms in the process to different types of computing nodes for execution through the process execution engine, the fusion problem of heterogeneous algorithms is effectively solved, such as the fusion of multiple types of enterprise historical legacy algorithms. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a structural schematic diagram of a system for constructing a big data analysis algorithm library of the present invention;
[0038] Figure 2 It is a flow chart of the method for constructing a big data analysis algorithm library of the present invention;
[0039] Figure 3 It is a schematic diagram of a multi-platform algorithm component set in the method for constructing a big data analysis algorithm library of the present invention;
[0040] Figure 4 It is a schematic diagram of the construction process of the Web interface analysis in the construction method of the big data analysis algorithm library of the present invention;
[0041] Figure 5 It is a flowchart of operator platform selection in the method for constructing a big data analysis algorithm library of the present invention;
[0042] Figure 6 It is a flowchart of code reverse generation in the method for constructing a big data analysis algorithm library of the present invention;
[0043] Figure 7 It is a flowchart of user code verification in the method for constructing a big data analysis algorithm library of the present invention;
[0044] Figure 8 It is an execution flow chart of the process execution engine in the method for constructing a big data analysis algorithm library of the present invention;
[0045] Fig. 9 It is an execution flow chart of computing nodes in the method for constructing a big data analysis algorithm library of the present invention;
[0046] Fig.10 This is a diagram of the interface for constructing the process of “power consumption prediction data” in Embodiment 4 of the present invention;
[0047] Fig.11 This is a diagram of the interface for constructing the process of “prediction of workpiece quality compliance rate” in Example 4 of the present invention;
[0048] Fig.12 This is a configuration parameter interface diagram of the decision tree regression algorithm in Example 4 of the present invention;
[0049] Fig.13 This is a diagram of a code editing interface after reverse code generation in Example 4 of the present invention;
[0050] Fig.14 This is an interface diagram after code verification fails in Example 4 of the present invention;
[0051] Fig.15 This is a diagram of an interface in which the process in Embodiment 4 of the present invention is sent to the process engine for execution and feedback on the successful execution of each algorithm is obtained. DETAILED DESCRIPTION
[0052] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.
[0053] Example 1
[0054] The construction system of the big data analysis algorithm library has the following structure: Figure 1 As shown, including:
[0055] The analysis process building module allows users to visually select algorithms and connect them end to end to build a complete data analysis process and generate a process description file;
[0056] The operator platform selection module selects a benchmark operating environment for each algorithm in the data analysis process built by the analysis process construction module, and writes the benchmark operating environment corresponding to each algorithm into the process description file;
[0057] The code reverse generation module generates the algorithm code of each algorithm in its benchmark operating environment, which can be manually edited by users;
[0058] User code verification module verifies whether the algorithm code manually edited by the user complies with the rules. If it does, it generates native code;
[0059] The cluster control host is deployed with a process execution engine, which sends the native code of each algorithm to the cluster computing host that matches its environment;
[0060] The cluster computing host receives the native code sent by the process execution engine, completes data reading and input, code compilation and running, and data output and caching. Among them, the cluster computing host includes multiple categories, and each category of cluster computing host only deploys one benchmark operating environment. The cluster control host selects the corresponding cluster computing host to send the native code according to the benchmark operating environment of the algorithm.
[0061] Cluster computing hosts are divided into multiple types according to the basic open source platform or language environment they are deployed on, such as Matlab, Scikit-learn, H2O, or other language platform environments. Each type can include multiple cluster computing hosts, and each cluster computing host deploys only one environment.
[0062] Example 2
[0063] The method for constructing a big data analysis algorithm library adopts the construction system of the big data analysis algorithm library in Example 1, and its process is as follows: Figure 2 As shown, the specific steps are as follows:
[0064] Step 1: The algorithm library initially includes various algorithms used in big data analysis, such as Figure 3 As shown, it includes data source reading algorithm, data preprocessing algorithm, exploratory analysis algorithm, feature engineering algorithm, core analysis algorithm, parameter selection algorithm, result evaluation algorithm, and result display algorithm; each algorithm comes from different or the same open source platform or self-developed platform, such as Scikit-learn-based SVM algorithm and Matlab-based random forest algorithm, and the implementation process of the same algorithm on different platforms is included in the algorithm library, such as Scikit-learn-based decision tree algorithm and Spark-based decision tree algorithm; and the implementation of each algorithm in multiple benchmark operating environments has standardized code templates stored in the local Git code library;
[0065] Step 2: Users can visually edit data analysis process nodes through the analysis process building module according to their needs to form a data analysis process. Each process node corresponds to an algorithm in step 1, and a process description file is generated; Figure 4As shown in the figure, the input of the first process node algorithm in the data analysis process is the data source to be analyzed, and the input of the remaining process node algorithms is the output after the execution of the previous one or more process node algorithms; the process description file includes the ID of each algorithm in the process node, as well as the input and output port connection relationship between the algorithms in the data analysis process;
[0066] Each algorithm has a standard input and output defined, that is, for the multi-platform implementation of the same algorithm in the algorithm library, the input and output are the same, and the platform is the benchmark operating environment;
[0067] Step 3, such as Figure 5 As shown, the operator platform selection module selects a suitable benchmark operating environment according to the input data scale and data type of the process node algorithm and the hardware configuration of the cluster, and writes the benchmark operating environment corresponding to each algorithm into the process description file;
[0068] Step 4, such as Figure 6 As shown, the code reverse generation module obtains the code template in the benchmark running environment where the algorithm is located from the local Git code library, and combines the input of the corresponding algorithm parameters input in the user interface to reversely generate the algorithm code corresponding to its benchmark running environment and display it on the interface for the user to edit. The name of each algorithm code is the same as its ID in the process node. After the user edits it, the user's edited algorithm code is obtained;
[0069] Step 5, such as Figure 7 As shown, the user code verification module provides each algorithm with standard input test data and standard output data. The standard input test data is input into the edited algorithm code. If the format of the output data is consistent with the standard output data format, the verification is successful, and the native code is generated, that is, the algorithm code edited and verified by the user; if the output cannot be output or the format is inconsistent, the verification fails;
[0070] Step 6, such as Figure 8 As shown in the figure, the process execution engine sends the native code of each algorithm to the cluster computing host that matches its environment to complete the reading and input of data, the compilation and running of code, and the output and caching of data. Specifically, the process execution engine parses the process description file, loops through each process node, determines whether it meets the execution conditions, and sends the algorithm code of the process node that meets the conditions to the cluster computing host that matches its benchmark running environment for execution;
[0071] like Fig. 9As shown, after the cluster computing host receives the code sent by the process execution engine, it reads the code snippet and determines whether the local environment meets the execution conditions of the code. If not, it downloads the image package that the algorithm depends on to the local environment, and then continues to execute: the cluster computing host locally compiles the code, and reads the set input data from the HBase cache database according to the node relationship set by the data analysis process. The cluster computing host locally executes the code and writes the final output data to the HBase cache database, and writes the execution status to the Redis cache database; if it meets the conditions, it directly proceeds to: the cluster computing host locally compiles the code and subsequent operations.
[0072] Among them, for each process description file, the process execution engine loops until all algorithm nodes in the process description file are executed successfully. The process execution engine determines whether each algorithm is executed successfully by reading the algorithm execution status written by the cluster computing host in the Redis cache database. The process execution engine obtains the data after each algorithm is executed by reading the algorithm execution results written by the algorithm node in the HBase cache database.
[0073] Among them, when the process execution engine parses the process description file, it traverses the algorithm nodes in the process execution file every n seconds. If the predecessor nodes of an algorithm have been successfully executed, the algorithm will be executed in this traversal, that is, the algorithm code of the process node will be sent to the cluster computing host matching its benchmark operating environment for execution; if a predecessor node of an algorithm has not been successfully executed, the algorithm will not be executed in this traversal, and it will wait for the next traversal to determine whether to execute it; if there is an execution error of a node in the process, the entire analysis process is marked as an error state and the traversal ends; if all nodes in the process are executed successfully, the entire analysis process is marked as a success state and the traversal ends.
[0074] When selecting an algorithm in the visual interface of step 2, the user only needs to pay attention to the algorithm's function, and does not need to pay attention to the platform environment to which each algorithm belongs. The operator platform selection module selects the appropriate platform based on the corresponding node algorithm input data scale, data type (such as two-dimensional data, tensor data, signal data, etc.), and the hardware configuration of the cluster; when the operator platform selection module selects a platform, it pre-defines several levels according to the number of data items: large-scale data is more than 100 million, including 100 million; medium-scale data is between 10 million and 100 million, including 10 million; small-scale data is less than 10 million, and the types of data sets are defined: two-dimensional data, tensor data, signal data (also called time series data). According to the hardware configuration of the cluster computing host (CPU core number and memory size), the computing host is divided into computing computing host (32 cores and above), memory computing host (128G and above) and small-scale computing host (CPU and memory are less than the above values). The computing hosts in the cluster have pre-deployed scikit-learn (small-scale computing host), spark (memory computing host), Matlab (computational computing host), and H2O (multiple configured host environments) according to the hardware configuration. The platform then sends large-scale data in two-dimensional or tensor data to memory computing hosts, medium-scale data to computational computing hosts, small-scale data to small-scale computing hosts, and signal-type data to hosts deployed with the H2O environment, based on the scale of the process node input data or the type of data. For example, if the user selects the random forest algorithm, and the algorithm library contains the implementation of the algorithm in multiple platforms, the implementation in Python Scikit-learn will be automatically selected if the data scale is small, and the implementation in SparkMLlib will be selected if the data scale is large. Users can also manually specify the algorithm platform.
[0075] Example 3
[0076] In this embodiment, based on the second embodiment, when the process execution engine parses the process description file, it traverses the algorithm nodes in the process execution file every 1 second.
[0077] Example 4
[0078] This embodiment builds modules through a Web-based analysis process, such as Fig.10 and Fig.11 As shown in the figure, we construct two analysis processes: "Energy consumption prediction data" and "Workpiece quality compliance prediction". Fig.10 and 11These are two examples of analysis processes built by the system. All algorithms supported by the platform (regardless of the language in which they are implemented) are listed in the tree menu on the left side of the interface. Dragging a tree menu node into the workspace will generate an algorithm instance. The workspace algorithms are visualized with a small square. The input-output relationship between algorithms is represented by the lines between them. Each algorithm in the figure comes from a different platform (such as scikit-learn, matlab, etc.), which are integrated together to complete the entire data analysis process. When users select an algorithm in the algorithm component set on the left, they do not need to manually specify which platform a single algorithm belongs to, as it will be automatically determined by the platform.
[0079] Figure 12-14 They are respectively the configuration parameter interface of the decision tree regression algorithm in the above analysis process, the code editing interface after reverse code generation, and the display after code verification fails.
[0080] Fig.15 The above process is sent to the process engine for execution, and a feedback interface showing the successful execution of each operator is obtained.
[0081] This embodiment is the interface implementation of the present invention. The data analysis process is constructed through the process editing interface, such as Fig.10 and 11 The analysis process constructed; select the algorithm benchmark running platform through the algorithm platform selection module, such as Fig.12 The decision tree regression algorithm displayed is automatically selected by the platform from scikit-learn. The algorithm code is generated through the code reverse generation module for users to edit, such as Fig.13 After the user fills in the key parameters of the algorithm, the platform generates the code for the decision tree regression algorithm in the benchmark platform scikit-learn.
[0082] The present invention solves the efficiency problem of data analysis through process-based and visualized algorithm configuration; realizes the optimal platform algorithm screening through multi-platform and automated algorithm selection; realizes the combination of interface configuration and user modification through reverse code template generation, thereby improving the flexibility of algorithm use; and realizes the seamless connection of various types of algorithms in the global analysis process through a distributed and cross-platform fusion method.
Claims
1. A method for constructing a big data analysis algorithm library, characterized in that: The construction system using the big data analysis algorithm library includes: an analysis process construction module, which allows users to visually select algorithms and connect them end to end to build a complete data analysis process, and generate a process description file; an operator platform selection module, which selects a benchmark operating environment for each algorithm in the data analysis process constructed by the analysis process construction module, and writes the benchmark operating environment corresponding to each algorithm into the process description file; a code reverse generation module, which generates the algorithm code of each algorithm under its benchmark operating environment, so that users can edit it manually; a user code verification module, which verifies whether the algorithm code manually edited by the user complies with the rules, and generates native code if it does; a cluster control host, which is deployed with a process execution engine, and the process execution engine sends the native code of each algorithm to the cluster computing host that matches its environment; the cluster computing host, which receives the native code sent by the process execution engine, completes the reading and input of data, the compilation and operation of the code, and the output and caching of data; There are many types of cluster computing hosts. Each type of cluster computing host only deploys one benchmark operating environment. The cluster control host selects the corresponding cluster computing host according to the benchmark operating environment of the algorithm and sends the native code. The specific steps are as follows: Step 1: The algorithm library initially includes various algorithms used in big data analysis; Step 2: Users can visually edit data analysis process nodes through the analysis process building module according to their needs to form a data analysis process. Each process node corresponds to an algorithm in step 1, and a process description file is generated; Step 3: The operator platform selection module selects a suitable benchmark operating environment for the algorithm of the process node, and writes the benchmark operating environment corresponding to each algorithm into the process description file; wherein the operator platform selection module selects a suitable benchmark operating environment according to the input data scale and data type of the algorithm of the process node and the hardware configuration of the cluster, and writes the benchmark operating environment corresponding to each algorithm into the process description file; Step 4: The code reverse generation module obtains the code template in the benchmark running environment where the algorithm is located, and reversely generates the algorithm code based on the input of the corresponding algorithm parameters input by the user interface and displays it on the interface for the user to edit, thereby obtaining the algorithm code edited by the user; Step 5: The user code verification module verifies whether the algorithm code manually edited by the user complies with the rules. If it complies, the native code is generated; Step 6: The process execution engine sends the native code of each algorithm to the cluster computing host that matches its environment to complete data reading and input, code compilation and running, and data output and caching.
2. The method for constructing a big data analysis algorithm library according to claim 1, characterized in that: Each algorithm in step 1 comes from a different or the same open source platform or self-developed platform, and the implementation process of the same algorithm on different platforms is included in the algorithm library; and the implementation of each algorithm in multiple benchmark operating environments has a standardized code template stored in the local Git code library; The input of the first process node algorithm in the data analysis process in step 2 is the data source to be analyzed, and the input of the remaining process node algorithms is the output after the execution of the previous one or more process node algorithms; The process description file generated by the process construction module includes the ID of each algorithm in the process node, as well as the input and output port connection relationship between the algorithms in the data analysis process.
3. The method for constructing a big data analysis algorithm library according to claim 2, characterized in that: The specific steps of step 4 are as follows: the code reverse generation module obtains the code template in the benchmark operating environment where the algorithm is located from the local Git code library, and combines the input of the corresponding algorithm parameters input from the user interface to reversely generate the algorithm code corresponding to its benchmark operating environment and display it on the interface for user editing. The name of each algorithm code is the same as its ID in the process node. After editing, the user obtains the edited algorithm code.
4. The method for constructing a big data analysis algorithm library according to claim 3, characterized in that: The user code verification module provides each algorithm with standard input test data and standard output data. The standard input test data is input into the edited algorithm code. If the format of the output data is consistent with the standard output data format, the verification is successful and the native code is generated, that is, the algorithm code edited and verified by the user; if it cannot be output or the format is inconsistent, the verification fails.
5. The method for constructing a big data analysis algorithm library according to claim 4, characterized in that: The step 6 is specifically as follows: The process execution engine parses the process description file, loops through each process node, determines whether it meets the execution conditions, and sends the algorithm code of the process node that meets the conditions to the cluster computing host that matches its benchmark operating environment for execution; After receiving the code sent by the process execution engine, the cluster computing host reads the code snippet and determines whether the local environment meets the execution conditions of the code. If not, it downloads the image package that the algorithm depends on to the local environment. The cluster computing host compiles the code locally and reads the set input data from the HBase cache database according to the node relationship set in the data analysis process. The cluster computing host executes the code locally and writes the final output data to the HBase cache database and the execution status to the Redis cache database.
6. The method for constructing a big data analysis algorithm library according to claim 5, characterized in that: In step 6, for each process description file, the process execution engine loops until all algorithm nodes in the process description file are successfully executed. The process execution engine determines whether each algorithm is successfully executed by reading the algorithm execution status written by the cluster computing host in the Redis cache database. The process execution engine obtains the data after each algorithm is executed by reading the algorithm execution results written by the algorithm node in the HBase cache database.
7. The method for constructing a big data analysis algorithm library according to claim 6, characterized in that: In step 6, the process execution engine parses the process description file and traverses the algorithm nodes in the process execution file every n seconds. If the preceding nodes of an algorithm have been successfully executed, the algorithm will be executed in this traversal, that is, the algorithm code of the process node is sent to the cluster computing host matched with its benchmark operating environment for execution; If a certain algorithm has a predecessor node that has not been successfully executed, the algorithm will not be executed in this traversal, and the next traversal will be waited for to determine whether to execute it; if there is an execution error in a node in the process, the entire analysis process is marked as an error state and the traversal ends; if all nodes in the process are successfully executed, the entire analysis process is marked as a success state and the traversal ends.
