A self-processing method, system and platform based on distributed Jupyterhub

Through the self-processing method based on distributed Jupyterhub, data analysis capabilities without programming are provided, which solves the problem in artificial intelligence teaching that teachers are difficult to demonstrate algorithm writing in real time and students need to have programming skills, and realizes the combination of data set management and algorithm research and development. , which improves the teaching effect.

CN113703795BActive Publication Date: 2024-10-25XI AN JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110998652.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-27
Publication Date
2024-10-25
Estimated Expiration
2041-08-27

AI Technical Summary

Technical Problem

In artificial intelligence teaching, it is difficult for teachers to demonstrate the algorithm writing and execution process in real time. Students need to have programming skills to complete data analysis tasks, resulting in poor teaching results, uneven students' ability levels, and the inability to effectively absorb knowledge.

Method used

Adopt the self-processing method based on distributed Jupyterhub, build the Jupyterhub Singleuser image through DockerFile, and combine it with Jupyterlab's self-processing method components to implement self-processing data analysis tasks, provide data analysis capabilities without programming, and integrate data set management and algorithm development. and algorithm library management platform.

Benefits of technology

It reduces the ability required by users for data analysis, provides self-processed data analysis capabilities without programming, realizes the close integration of data set management and algorithm development, improves teaching effects, and solves the problem of uneven student ability levels.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113703795B_ABST
    Figure CN113703795B_ABST
Patent Text Reader

Abstract

The present invention discloses a self-processing method, system and platform based on distributed Jupyterhub, uses DockerFile to build Jupyterhub Singleuser image, takes the image library provided in the docker image warehouse as the construction basis, and modifies the configuration file; provides front-end and back-end service interaction components of the self-processing method based on Jupyterlab; uses the self-processing method component based on Jupyterlab to redeploy the Jupyterhub image, integrates the component of the self-processing method based on Jupyterlab into the constructed Jupyterhub Singleuser image, so that the user can directly call the self-processing method; uses Kubernates to deploy the Jupyterhub Singleuser image, and implements the self-processing method by deploying PVC and PV components to persist user data. The present invention realizes the organic integration of teaching and practice, and has outstanding application effects in the teaching related to artificial intelligence courses in colleges and universities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of computer information technology, artificial intelligence and intelligent teaching technology, and specifically relates to a self-processing method, system and platform based on distributed Jupyterhub. Background Art

[0002] Artificial intelligence is the hottest word in this century, and it has penetrated into all walks of life. Data analysis is the basic component of artificial intelligence. Colleges and universities offer a variety of courses related to artificial intelligence. Generally speaking, they are all based on data modeling and analysis to mine valuable knowledge or train a general model. Among them, modeling is the top priority in data analysis, which involves the design and implementation of model algorithms.

[0003] On the one hand, teachers can only teach the core algorithm ideas in class, but cannot demonstrate the specific algorithm writing and execution process in real time; on the other hand, due to the limitation of professional knowledge, students need to build a development environment and have programming skills to complete the complete data analysis task even when they are on the computer. Teachers cannot add actual engineering processes to their teaching, and students cannot absorb and learn knowledge. Students have different abilities, and the practical teaching effect is not obvious. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a self-process method, system and platform based on distributed Jupyterhub to address the deficiencies in the above-mentioned prior art and solve the problem of uneven basic ability levels of students.

[0005] The present invention adopts the following technical solutions:

[0006] A self-processing method based on distributed Jupyterhub, including the following steps:

[0007] S1. Use DockerFile to build the Jupyterhub Singleuser image, using the image library provided in the Docker image repository as the building basis, and modify the configuration file;

[0008] S2, providing front-end and back-end service interaction components based on Jupyterlab’s self-processing method;

[0009] S3. Use the Jupyterlab-based self-process method component in step S2 to redeploy the Jupyterhub image, and integrate the Jupyterlab-based self-process method component into the Jupyterhub Singleuser image built in step S1, so that users can directly call the self-process method;

[0010] S4. Use the Jupyterhub Singleuser image of step S3 in Kubernetes to deploy PVC and PV components to persist user data and implement a self-process approach.

[0011] Specifically, step S1 is as follows:

[0012] S101. Configure and build the basic image of Jupyterhub Singleuser;

[0013] S102. Add conda, Jupyterlab and various installation packages required for scientific computing;

[0014] S103. Use the docker command to build the Dockerfile image file to generate the Jupyterhub Singleuser image.

[0015] Furthermore, in step S101, the basic image of Jupyterhub Singleuser includes installing dependent packages and configuring startup users.

[0016] Specifically, step S2 is as follows:

[0017] S201. Add menu nested components and user token authentication interface to authenticate users based on Jupyterlab;

[0018] S202, perform user authentication in the Jupyterlab background and call the self-process menu list interface and return the display;

[0019] S203, after selecting a specific self-process submodule task, call the specific task fragment interface of this module;

[0020] S204, by obtaining this task fragment, natively creating the insertBelow interface to generate a specific task fragment module and display it in the cell;

[0021] S205. According to the data analysis task, loop through steps S203 and S204 to complete the overall data analysis task module.

[0022] Further, in step S203, after selecting a specific self-process sub-module task, the module specific task fragment interface is called, the front end sends the self-process sub-module request parameters, and the back end calls the sub-module specific task fragment interface according to the request parameters, and returns to the front end after obtaining the sub-module specific task fragment.

[0023] Specifically, step S3 is as follows:

[0024] S301, modify the Jupytehub Singleuser image, and add the self-process method component of step S2 to the Jupytehub Singleuser image;

[0025] S302, configuring the menu configuration file of the data analysis module and the specific task module in each module;

[0026] S303. Package the Jupyterhub image through the Docker service module and generate an image file, upload the image file to the docker image repository, add the self-process method component of step S2 and the module content of step S302 to the image file and redeploy it. After completion, upload it to the docker image repository and upload it to the docker image library through the docker push+image command.

[0027] Furthermore, in step S302, the data analysis module includes data reading, data governance, data exploration, feature engineering, basic algorithms, core algorithms, AUTOML and model evaluation; the specific task modules are a variety of different task modules included in each data analysis module.

[0028] Specifically, step S4 is as follows:

[0029] S401. Configure the Jupyterhub image of step S3 in the config.yaml file of the Jupyterhub cluster.

[0030] S402, configure PVC and PV configuration files, generate containers through PVC and PV configuration files respectively, map them to local storage paths, and enable persistent storage;

[0031] S403. Start the Jupyterhub config.yaml configured in step S401 through helm.

[0032] Another technical solution of the present invention is an artificial intelligence platform, comprising:

[0033] The data set management platform provides the data sets required for data analysis tasks, including:

[0034] Data set statistical analysis module, to check the distribution of data sets in the past week;

[0035] The dataset display module allows you to view the datasets recently uploaded to the platform, the datasets with the most views and downloads on the platform, and the datasets uploaded by users. You can also browse the dataset details. The dataset uploader can modify or delete the dataset.

[0036] Upload dataset module, upload the dataset to the platform, you can choose to keep it private or share it;

[0037] The algorithm development platform uses a self-processing approach to perform full-process data analysis tasks, including:

[0038] Algorithm research and development module, which performs AI tasks such as algorithm research and development, code writing, and data analysis;

[0039] Self-process algorithm development module, which can be used to implant analysis modules on demand to complete related tasks, including self-process algorithm development modules for those with programming foundation and self-process algorithm development modules for those without programming foundation;

[0040] The lesson plan module is used to view the teacher's lesson plan and run engineering tasks simultaneously;

[0041] The algorithm library management platform provides introductions, principles, and calling methods of various algorithms in data analysis tasks, including:

[0042] Algorithm library list module, view the detailed contents of the algorithms provided in the R&D platform;

[0043] Algorithm library query module, used to search for algorithms;

[0044] Upload algorithm library module, used to upload algorithms, which can be private or shared;

[0045] The backend management platform provides data sets, algorithm review and user management, including:

[0046] Audit module, used to conduct content audit on data sets and algorithms uploaded by users;

[0047] The user management module is used to create users, modify user information, delete users and query users.

[0048] Another technical solution of the present invention is that a self-processing system based on distributed Jupyterhub includes:

[0049] Image module, use DockerFile to build Jupyterhub Singleuser image, use the image library provided in the Docker image repository as the building basis, and modify the configuration file;

[0050] The interactive module provides front-end and back-end service interaction components based on Jupyterlab's self-process approach;

[0051] Integration module, using the interaction module to redeploy the Jupyterhub image based on the Jupyterlab self-process method component, and integrate the Jupyterlab self-process method component into the Jupyterhub Singleuser image built by the image module, so that users can directly call the self-process method;

[0052] The processing module uses Kubernates to deploy the Jupyterhub Singleuser image of the integrated module, deploys PVC and PV components to persist user data, and implements a self-process approach.

[0053] Compared with the prior art, the present invention has at least the following beneficial effects:

[0054] The present invention discloses a self-process method based on distributed Jupyterhub. Based on the deployment of Jupyterhub by Kubernates, the component development of the self-process method is carried out based on Jupyterlab, and the self-process data analysis task is realized. The service is run in the form of a container, which can reduce the computing overhead and the operating cost, and can be isolated from each other without affecting each other, and is convenient for transplantation. The present invention provides the function of realizing the self-process method by developing the component of the self-process method based on Jupyterlab, and completes the interaction between the services.

[0055] Furthermore, the Jupyterhub Singleuser image is built to build the user's basic environment image. Since the images provided in the Docker official image repository are mostly basic images, personalized images can be made based on such basic images to meet different personalized needs. The installation of required dependency packages and environment is mainly completed on the basis of a jupyter-notebook image.

[0056] Furthermore, the basic image of Jupyterhub Singleuser includes installing dependent packages and configuring the startup user, including further installing Python and Node as the front-end and back-end service dependent languages ​​of Jupyterhub. At the same time, the default startup user of Jupyterhub is configured, which is used to start Jupyterhub with this user when it starts.

[0057] Furthermore, the development of components for self-processing methods based on Jupyterlab provides a carrier for users to use the self-processing methods in the present invention, and users can use this component to perform self-processing full-process data analysis. By providing users with a visual display of the self-processing method based on Jupyterlab's newly added menu nested components, it is convenient for users to use. At the same time, considering the security issues of user requests, users need to perform Token authentication when using it; when using the self-processing method, users can use the on-demand insertion of related methods to complete data analysis tasks.

[0058] Furthermore, step S203 is the core process of calling the self-processing method. The specific task fragment interface of the sub-module task involved in the process is also the core interface of the self-processing method in the present invention. Calling this interface can return the required sub-task specific task fragment to the user.

[0059] Furthermore, the self-process method component of step S2 is added to the Jupyterhub Singleuser image, which will be used to provide the user environment when Jupyterhub is started. The menu configuration file of the data analysis module and the specific task modules in each module are configured to facilitate users to use fixed service paths for requests. Add the above content to the image file and repackage it and upload it to the docker image library or public image library. In the subsequent system migration process, there is no need to copy the image between servers. Just add the docker warehouse image name in the image file configuration to facilitate migration and deployment.

[0060] Furthermore, the data analysis module in step S302 includes data reading, data governance, data exploration, feature engineering, basic algorithms, core algorithms, AUTOML and model evaluation; for the convenience of users, the entire data analysis process is condensed into eight modules, including nearly 200 specific sub-task modules, forming a tree-like configuration file for menu nested components to call.

[0061] Furthermore, the distributed Jupyterhub environment can provide users with an independent R&D and analysis environment based on this environment. At the same time, considering the scalability of the system, PVC and PV are configured to complete data persistent storage, so that the R&D environment is provided to users after they log in and the R&D environment is deleted after they log out, while the user data remains unchanged.

[0062] The present invention discloses an artificial intelligence platform based on a self-process method of distributed Jupyterhub, which provides a data set management platform, an algorithm development platform, an algorithm library management platform and a background management platform. Artificial intelligence is data + algorithm. The artificial intelligence platform based on a self-process method of distributed Jupyterhub provided by the present invention provides modules related to the whole process of artificial intelligence, such as data sets, algorithms, and algorithm development platforms. The data set management platform provides users with data sets of various types, structures, and tasks. Users can call the data in the data set management platform or the data uploaded by themselves in the algorithm development platform with one click, eliminating the trouble of users looking for data and citing data. The algorithm library management platform provides a detailed introduction to all subtask module algorithms in the algorithm development platform, method calls, etc., for users to learn and call. The algorithm development platform provides users with an environment for algorithm development and data analysis, and provides self-process algorithm development modules with programming basis and self-process algorithm development modules without programming basis for different users, which can easily realize complete data analysis tasks.

[0063] In summary, the present invention reduces the capabilities that users need to have for data analysis, and at the same time solves the problems existing in AI-related teaching in colleges and universities. On the one hand, teachers can only teach the core algorithm ideas in the classroom, and cannot demonstrate the specific writing and execution process of the algorithm in real time; on the other hand, due to professional knowledge, students need to build a development environment and have programming skills to complete the complete data analysis task even when they are on the computer. Teachers cannot add actual engineering processes to their teaching, and students cannot absorb and learn knowledge. Students have uneven abilities, and the practical teaching effect is not obvious. The present invention can effectively solve the above problems, and the artificial intelligence platform provided can be applied to the teaching and practice of colleges and universities, with good teaching effects.

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

[0065] Figure 1 It is a schematic diagram of the process of the present invention;

[0066] Figure 2 This is a schematic diagram of the process of step S1 of the present invention;

[0067] Figure 3 This is a schematic diagram of the process of step S2 of the present invention;

[0068] Figure 4 This is a schematic diagram of the process of step S3 of the present invention;

[0069] Figure 5 This is a schematic diagram of the process of step S4 of the present invention;

[0070] Figure 6It is a schematic diagram of an artificial intelligence platform of the self-process method based on distributed Jupyterhub of the present invention;

[0071] Figure 7 It is a simplified schematic diagram of the functional modules of the data set management module in the artificial intelligence platform of the present invention;

[0072] Figure 8 A simplified schematic diagram of the functional modules of the self-process algorithm development module in the artificial intelligence platform of the present invention;

[0073] Fig. 9 This is a simplified schematic diagram of the functional modules of the user management module in the artificial intelligence platform of the present invention. DETAILED DESCRIPTION

[0074] 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 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.

[0075] In the description of the present invention, it should be understood that the terms “include” and “comprises” indicate the presence of described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or collections thereof.

[0076] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, the singular forms "a", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise.

[0077] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0078] Various structural schematic diagrams of the embodiments disclosed in the present invention are shown in the accompanying drawings. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clear expression. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art can additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0079] The present invention provides a self-processing method based on distributed Jupyterhub, using DockerFile to build a Jupyterhub Singleuser basic image; developing components of the self-processing method based on Jupyterlab; redeploying the Jupyterhub image using the self-processing method component image of Jupyterlab; and deploying Jupyterhub using Kubernates. The method of the present invention aims to provide a carrier for implementing the self-processing method by developing self-processing components based on Jupyterlab; deploying and managing containers through the perfect cluster management capabilities of Kubernates to improve the stability of applications.

[0080] The basic construction environment of this application is Kubernetes, which provides an application-oriented container cluster deployment and management system, aiming to eliminate the burden of orchestrating physical / virtual computing, network and storage infrastructure, and enable application operators and developers to focus entirely on container-centric primitives for self-service operations. It provides a stable and compatible foundation (platform) for building customized workflows and more advanced automation tasks.

[0081] Jupyterhub, which is required in this application, is a multi-user hub that can generate, manage, and proxy multiple instances of a single-user Jupyterlab server. Jupyterlab is an all-in-one interactive IDE coding environment that integrates Jupyter Notebook, text editor, terminal, and various personalized components. Through interactive operations, users can quickly build models and complete data analysis tasks.

[0082] See also Figure 1 The present invention provides a self-processing method based on distributed Jupyterhub, comprising the following steps:

[0083] S1. Use DockerFile to build the Jupyterhub Singleuser image, using various image libraries provided in the Docker image repository as the basis for construction, and modify the configuration file based on this;

[0084] See also Figure 2 , as follows:

[0085] S101. Configure and build the basic image of Jupyterhub Singleuser;

[0086] Among them, configuring and building the basic image of Jupyterhub Singleuser includes installing dependent packages, configuring startup users, etc. The specific basic image can be various image libraries provided in the Docker image repository as the basis for construction, and the configuration file can be modified based on this, and the required language core can be further installed.

[0087] S102. Add installation packages required for conda, Jupyterlab, and various scientific computing;

[0088] Anaconda is an open source Python distribution that includes more than 180 scientific packages such as conda and python and their dependencies. Anaconda comes with a Jupyterlab package that can be updated to the required version. Then, modifying the conda system source to a domestic channel can greatly increase the download speed. For example, modifying the conda system source can include the following steps: copying the original file backup, editing the source list file, adding the specified content to the original list, and updating the local index list to run.

[0089] S103. Use DockerFile to generate a Jupyterhub Singleuser image.

[0090] Use the Docker command to build the Dockerfile image file to generate the required image.

[0091] S2. Develop components for self-processing methods based on Jupyterlab, and provide front-end and back-end service interaction components for self-processing methods based on Jupyterlab;

[0092] See also Figure 3 , the components of the self-process method based on Jupyterlab are as follows:

[0093] S201. Add menu nesting components and user token authentication interface based on Jupyterlab to authenticate users;

[0094] By adding a new menu nesting component and user Token authentication interface based on Jupyterlab, the Token is passed to the background, the front-end service of the menu nesting component is loaded, and a menu list request is sent to the background.

[0095] S202, perform user authentication in the Jupyterlab background and call the self-process menu list interface and return the display;

[0096] User authentication is performed according to the Token authentication interface sent by the front end. After the authentication is passed, the menu tree list configuration is obtained according to the request parameters. After returning to the front end, the tree menu is displayed according to the data structure.

[0097] S203, after selecting a specific self-process submodule task, call the specific task fragment interface of this module;

[0098] After selecting a specific self-process sub-module task, call the specific task fragment interface of this module. The front end sends the self-process sub-module request parameters, and the back end calls the sub-module specific task fragment interface according to the request parameters. After obtaining the sub-module specific task fragment, it returns to the front end.

[0099] S204, by acquiring this task fragment, natively creating the insertBelow interface to generate a specific task fragment module;

[0100] After the front end obtains the above task fragment, it calls the native create insertBelow interface to generate a specific task fragment module and display it in the cell.

[0101] S205. According to the data analysis task, loop through steps S203 and S204 to complete the overall data analysis task module.

[0102] According to the data analysis task, step S203 and step S204 are looped through to display different task fragments in independent cells to form an overall data analysis task module.

[0103] Among them, cell is the execution window in Jupyter.

[0104] S3. Use Jupyterlab's self-process method component image to redeploy the Jupyterhub image, integrate the components based on Jupyterlab's self-process method into the Jupyterhub Singleuser image, and allow users to directly call the self-process method.

[0105] See also Figure 4 , the specific steps are as follows:

[0106] S301, configuring the self-process method component of step S2;

[0107] Modify the Jupytehub Singleuser image and add the self-process method component to the JupytehubSingleuser image. Since the component is based on Jupyterlab, use the jupyter labextensioninstall command to add the component to the image.

[0108] S302, configuring the menu configuration file of the data analysis module and the specific task module in each module;

[0109] The data analysis module includes data reading, data governance, data exploration, feature engineering, basic algorithms, core algorithms, AUTOML, and model evaluation, which are commonly used process tasks for data analysis.

[0110] The specific task modules are a variety of different task modules included in each data analysis module. For example, the data reading module includes 11 data reading task modules, covering all data reading methods.

[0111] The specific task modules in the eight data analysis modules are commonly used module tasks in artificial intelligence. The tree menu configuration files and submodule task fragments of these eight data analysis modules are added to the jupyter server path.

[0112] S303. Package the Jupyterhub image through the Docker service module and generate an image file, upload the image file to the docker image repository, add the self-process method component of step S2 and the module content of step S302 to the image file and redeploy it. After completion, upload it to the docker image repository and upload it to the docker image library through the docker push+image command.

[0113] S4. Use Kubernetes to deploy Jupyterhub, and deploy PVC and PV components to persist user data, so that the user operating environment is scalable and user data is persistent.

[0114] See also Figure 5 , the specific steps are as follows:

[0115] S401. Configure the Jupyterhub image of step S3 in the Jupyterhub cluster configuration file;

[0116] Configure the Jupyterhub image of step S3 in the Jupyterhub cluster configuration file. Mainly, configure the Singleuser image as the Jupyterhub image of step S3 in the Jupyterhub config.yaml file.

[0117] S402, configure PVC and PV configuration files, generate containers through PVC and PV configuration files respectively, map them to local storage paths, and enable persistent storage;

[0118] PVC and PV are two API resources provided by Kubernetes to abstract storage details. PV is a capacity plug-in, and PVC is a storage request made by the user. By configuring the respective YAML files of PVC and PV, PVC and PV services can be generated after the cluster is started.

[0119] YAML is a readable data serialization language, commonly used in configuration files.

[0120] S403. Helm starts the Jupyterhub cluster.

[0121] Use helm to start the Jupyterhub config.yaml configured in step S401.

[0122] Helm is a package manager for Kubernetes that can package and manage a set of Kubernetes resources in a unified manner. It is the best way to find, share, and use software built for Kubernetes.

[0123] In another embodiment of the present invention, a self-process method system based on distributed Jupyterhub is provided, which can be used to implement the above-mentioned self-process method based on distributed Jupyterhub. Specifically, the self-process method system based on distributed Jupyterhub includes a mirror module, an interaction module, an integration module and a processing module.

[0124] Among them, the image module uses DockerFile to build the Jupyterhub Singleuser image, takes the image library provided in the docker image repository as the building basis, and modifies the configuration file;

[0125] The interactive module provides front-end and back-end service interaction components based on Jupyterlab's self-process approach;

[0126] Integration module, using the interaction module to redeploy the Jupyterhub image based on the Jupyterlab self-process method component, and integrate the Jupyterlab self-process method component into the Jupyterhub Singleuser image built by the image module, so that users can directly call the self-process method;

[0127] The processing module uses Kubernates to deploy the Jupyterhub Singleuser image of the integrated module, deploys PVC and PV components to persist user data, and implements a self-process approach.

[0128] See also Figure 6In another embodiment of the present invention, an artificial intelligence platform based on a self-process method of distributed Jupyterhub is provided, comprising:

[0129] The dataset management platform 001 provides the datasets required for data analysis tasks.

[0130] The data set management platform 001 includes a data set statistical analysis module 100, a data set display module 200, and a data set upload module 300. The data set statistical analysis module 100 can be used to view the distribution of data sets in the past week. The data set display module 200 can be used to view the data sets 201 recently uploaded by the platform, the hottest data sets 202 (the data sets with the most views and downloads on the platform), and my data sets 203 (data sets uploaded by users). At the same time, the data set details can be browsed. The data set uploader can modify and delete the data set. The data set upload module 300 can upload the data set to the platform and can choose to be private or shared, such as Figure 7 shown.

[0131] Algorithm development platform 002 applies a self-process approach to perform full-process data analysis tasks.

[0132] Among them, the algorithm development platform 002 includes an algorithm development module 400, a self-process algorithm development module 500 and a teaching plan module 600.

[0133] Specifically, the algorithm development module 400 can be used to perform artificial intelligence tasks such as algorithm development, code writing, and data analysis. The self-process algorithm development module 500 can be used to complete related tasks without code writing, just by implanting the analysis module on demand, including the self-process algorithm development module 501 for those with programming foundation and the self-process algorithm development module 502 for those without programming foundation. The teaching plan module 600 can view the teacher's teaching plan and run engineering tasks simultaneously, such as Figure 8 shown.

[0134] The algorithm library management platform 003 provides introductions, principles, and calling methods of various algorithms in data analysis tasks.

[0135] Among them, the algorithm library management platform 003 includes an algorithm library list module 700, an algorithm library query module 800, and an algorithm library upload module 900. The algorithm library list module 700 can be used to view the detailed content of the algorithms provided in the R&D platform, the algorithm library query module 800 can be used to search for algorithms, and the algorithm library upload module 900 can be used to upload self-developed algorithms, which can be private or shared.

[0136] The backend management platform 004 provides data sets, algorithm review and user management.

[0137] The backend management platform 004 includes an audit module 1000 and a user management module 1100. The audit module mainly audits the data set 1001 and algorithm 1002 uploaded by the user. Through the user management module, users 1101 can be created, user information 1102 can be modified, users 1103 can be deleted, and users 1104 can be queried. Fig. 9 shown.

[0138] In another embodiment of the present invention, a terminal device is provided, the terminal device includes a processor and a memory, the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to execute the program instructions stored in the computer storage medium. The processor may be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., which are the computing core and control core of the terminal, which are suitable for implementing one or more instructions, and are specifically suitable for loading and executing one or more instructions to implement the corresponding method flow or corresponding functions; the processor described in the embodiment of the present invention can be used for the operation of the self-processing method based on distributed Jupyterhub, including:

[0139] Use DockerFile to build the Jupyterhub Singleuser image, use the image library provided in the docker image repository as the construction basis, and modify the configuration file; provide front-end and back-end service interaction components based on the Jupyterlab self-process method; use the Jupyterlab-based self-process method components to redeploy the Jupyterhub image, integrate the Jupyterlab-based self-process method components into the constructed Jupyterhub Singleuser image, and enable users to directly call the self-process method; use Kubernates to deploy the Jupyterhub Singleuser image, deploy PVC and PV components to persist user data, and implement the self-process method.

[0140] In another embodiment of the present invention, the present invention also provides a storage medium, specifically a computer-readable storage medium (Memory), which is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium here can include both the built-in storage medium in the terminal device and the extended storage medium supported by the terminal device. The computer-readable storage medium provides a storage space, which stores the operating system of the terminal. In addition, one or more instructions suitable for being loaded and executed by the processor are also stored in the storage space, and these instructions can be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here can be a high-speed RAM memory, and can also be a non-volatile memory (non-volatile memory), such as at least one disk storage.

[0141] The processor may load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the self-flow process method based on distributed Jupyterhub in the above embodiment; the processor may load and execute the following steps:

[0142] Use DockerFile to build the Jupyterhub Singleuser image, use the image library provided in the docker image repository as the construction basis, and modify the configuration file; provide front-end and back-end service interaction components based on the Jupyterlab self-process method; use the Jupyterlab self-process method components to redeploy the Jupyterhub image, integrate the components based on the Jupyterlab self-process method into the constructed Jupyterhub Singleuser image, and enable users to directly call the self-process method; use Kubernates to deploy the Jupyterhub Singleuser image, deploy PVC and PV components to persist user data, and implement the self-process method.

[0143] The self-processing method based on distributed Jupyterhub of the present invention has the following characteristics:

[0144] First, the self-process method in the present invention is an original self-process method, providing two modes of self-process methods for different users. No user coding is required, plug and play as needed, and data analysis tasks can be easily completed.

[0145] Second, the self-processing method provided by the present invention is implemented based on a distributed Jupyterhub environment. The distributed Jupyterhub environment has the native support of Kubernates, occupies less resources, has flexible configuration, and has powerful functions. In the technical solution of the present invention, Kubernates is used as a cluster management program to avoid the problems of inconsistent environment and cluster management in the deployment of multiple servers.

[0146] Third, the technical solution of the present invention uses Jupyterhub on Kubernetes technology to allocate a separate operating environment and programming space for each user, with full permissions in the space. At the same time, user data is persistently stored in the file sharing service, and the resources available to users are constrained, meeting the independent computing resources, persistent data storage, program execution permissions and other mutually isolated operating requirements of Jupyterhub in the case of multi-user operation.

[0147] Fourth, the artificial intelligence platform implemented by the technical solution of the present invention closely combines data set management, algorithm library management and algorithm research and development, realizes the organic integration of teaching and practice, and has outstanding application effects in the teaching of artificial intelligence courses in colleges and universities.

[0148] In summary, the present invention provides a self-process method, system and platform based on distributed Jupyterhub, which provides a self-process method in an original way, and provides two modes of self-process methods for different users. The self-process method does not require user coding, and can be plugged and unplugged as needed to easily complete data analysis tasks. At the same time, the method is applied in combination with the distributed Jupyterhub environment to form a complete, automated, and mutually isolated algorithm development platform, which better solves the problems of complex deployment and difficult maintenance in traditional solutions. In addition, the artificial intelligence platform implemented by the technical solution of the present invention closely combines data set management, algorithm library management and algorithm development, realizes the organic integration of teaching and practice, and has outstanding application effects in the teaching related to artificial intelligence courses in colleges and universities.

[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0150] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes 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 generate 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.

[0151] 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 including 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.

[0152] 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 in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0153] The above contents are only for explaining the technical idea of ​​the present invention and cannot be used to limit the protection scope of the present invention. Any changes made on the basis of the technical solution in accordance with the technical idea proposed by the present invention shall fall within the protection scope of the claims of the present invention.

Claims

1. A self-processing method based on distributed Jupyterhub, characterized in that: The following steps are involved: S1. Use DockerFile to build the Jupyterhub Singleuser image, using the image library provided in the Docker image repository as the building basis, and modify the configuration file; S2. Provides front-end and back-end service interaction components based on Jupyterlab's self-processing method, specifically: S201. Add menu nested components and user token authentication interface to authenticate users based on Jupyterlab; S202, perform user authentication in the Jupyterlab background and call the self-process menu list interface and return the display; S203, after selecting a specific self-process submodule task, call the module specific task fragment interface, after selecting a specific self-process submodule task, call the module specific task fragment interface, the front end sends the self-process submodule request parameters, the back end calls the submodule specific task fragment interface according to the request parameters, and returns to the front end after obtaining the submodule specific task fragment; S204, by obtaining this task fragment, natively creating the insertBelow interface to generate a specific task fragment module and display it in the cell; S205, according to the data analysis task, loop through step S203 and step S204 to complete the overall data analysis task module; S3. Use the Jupyterlab-based self-process method component in step S2 to redeploy the Jupyterhub image, and integrate the Jupyterlab-based self-process method component into the Jupyterhub Singleuser image built in step S1, so that users can directly call the self-process method, specifically: S301, modify the Jupytehub Singleuser image, and add the self-process method component of step S2 to the Jupytehub Singleuser image; S302, configure the menu configuration file of the data analysis module and the specific task modules in each module, the data analysis module includes data reading, data governance, data exploration, feature engineering, basic algorithm, core algorithm, AUTOML and model evaluation; the specific task modules are a variety of different task modules included in each data analysis module; S303, package the Jupyterhub image through the Docker service module and generate an image file, upload the image file to the docker image warehouse, add the self-process method component of step S2 and the module content of step S302 to the image file and redeploy it, upload it to the docker image warehouse after completion, and upload it to the docker image library through the docker push+image command; S4. Use the Jupyterhub Singleuser image of step S3 in Kubernetes to deploy PVC and PV components to persist user data and implement a self-process approach.

2. The method according to claim 1, characterized in that: Step S1 is specifically as follows: S101. Configure and build the basic image of Jupyterhub Singleuser; S102. Add conda, Jupyterlab and various installation packages required for scientific computing; S103. Use the docker command to build the Dockerfile image file to generate the Jupyterhub Singleuser image.

3. The method according to claim 2, characterized in that In step S101, the basic image of Jupyterhub Singleuser includes installing dependent packages and configuring the startup user.

4. The method according to claim 1, characterized in that: Step S4 is specifically as follows: S401. Configure the Jupyterhub image of step S3 in the config.yaml file of the Jupyterhub cluster. S402, configure PVC and PV configuration files, generate containers through PVC and PV configuration files respectively, map them to local storage paths, and enable persistent storage; S403. Start the Jupyterhub config.yaml configured in step S401 through helm.

5. An artificial intelligence platform using the method of claim 1, characterized in that: include: The data set management platform provides the data sets required for data analysis tasks, including: Data set statistical analysis module, to check the distribution of data sets in the past week; The dataset display module allows you to view the datasets recently uploaded to the platform, the datasets with the most views and downloads on the platform, and the datasets uploaded by users. You can also browse the dataset details. The dataset uploader can modify or delete the dataset. Upload dataset module, upload the dataset to the platform, you can choose to keep it private or share it; The algorithm development platform uses a self-processing approach to perform full-process data analysis tasks, including: Algorithm research and development module, which performs AI tasks such as algorithm research and development, code writing, and data analysis; Self-process algorithm development module, which can be used to implant analysis modules on demand to complete related tasks, including self-process algorithm development modules for those with programming foundation and self-process algorithm development modules for those without programming foundation; The lesson plan module is used to view the teacher's lesson plan and run engineering tasks simultaneously; The algorithm library management platform provides introductions, principles, and calling methods of various algorithms in data analysis tasks, including: Algorithm library list module, view the detailed contents of the algorithms provided in the R&D platform; Algorithm library query module, used to search for algorithms; Upload algorithm library module, used to upload algorithms, which can be private or shared; The backend management platform provides data sets, algorithm review and user management, including: Audit module, used to conduct content audit on data sets and algorithms uploaded by users; The user management module is used to create users, modify user information, delete users and query users.

6. A self-processing system based on distributed Jupyterhub, characterized in that: include: Image module, use DockerFile to build Jupyterhub Singleuser image, use the image library provided in the Docker image repository as the building basis, and modify the configuration file; The interactive module provides front-end and back-end service interaction components based on Jupyterlab's self-process method, specifically: Added menu nesting components and user token authentication interface based on Jupyterlab to authenticate users; Perform user authentication in the Jupyterlab background and call the self-process menu list interface and return the display; After selecting a specific self-process sub-module task, call the specific task fragment interface of this module. After selecting a specific self-process sub-module task, call the specific task fragment interface of the module. The front end sends the self-process sub-module request parameters, and the back end calls the sub-module specific task fragment interface according to the request parameters, and returns to the front end after obtaining the sub-module specific task fragment; By obtaining this task fragment, the insertBelow interface is natively created to generate a specific task fragment module and display it in the cell; According to the data analysis task, loop through step S203 and step S204 to complete the overall data analysis task module; Integration module, use the interactive module to redeploy the Jupyterhub image based on the Jupyterlab self-process method component, integrate the Jupyterlab self-process method component into the JupyterhubSingleuser image built by the image module, so that users can directly call the self-process method, specifically: Modify the Jupytehub Singleuser image and add the self-process method component to the Jupytehub Singleuser image; Configure the menu configuration files of the data analysis module and the specific task modules in each module. The data analysis module includes data reading, data governance, data exploration, feature engineering, basic algorithms, core algorithms, AUTOML and model evaluation; the specific task modules are the various different task modules contained in each data analysis module; Use the Docker service module to package the Jupyterhub image and generate an image file, upload the image file to the docker image repository, add the self-process method components and module content to the image file and redeploy it, upload it to the docker image repository after completion, and upload it to the docker image library through the docker push+image command; The processing module uses Kubernates to deploy the Jupyterhub Singleuser image of the integrated module, deploys PVC and PV components to persist user data, and implements a self-process approach.