Method, device and apparatus for performing automatic machine learning process
By providing independent model training and prediction operators, the full-process cyclic operation of the machine learning model is realized, which solves the problem of single function and high threshold of existing tools, reduces the cost and threshold of machine learning implementation, and adapts to a variety of data scenarios. .
Patent Information
- Application Number
- CN202010307807.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-17
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2040-04-17
AI Technical Summary
The functions of existing automatic machine learning tools are too simple and cannot cover the entire process of machine learning models. There is a gap between training and application. They are also not user-friendly and have high thresholds, making it difficult to implement them at low thresholds.
Provides independent model training operators and model prediction operators, trains machine learning models through model training operators, and provides prediction services through model prediction operators, realizing the full-process cyclic operation of the model, lowering the threshold of machine learning technology and cost.
It realizes a full-process cycle operation from model training to application, reduces the threshold and cost of machine learning technology, adapts to different structured data scenarios, and supports multiple problem types, including binary classification, multi-classification and regression scenarios.
Smart Images

Figure CN111611240B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence, and more specifically, to a method for executing an automatic machine learning process, an apparatus for executing an automatic machine learning process, a device including at least one computing device and at least one storage device, and a computer-readable storage medium. Background Art
[0002] With the rapid development and application of machine learning technology, automatic machine learning technology has greatly lowered the threshold of machine learning and saved the labor cost of machine learning. However, the existing automatic machine learning tools are too simple and one-sided, and cannot cover the entire process of machine learning model construction and application. That is, they can only complete how to train a machine learning model based on accumulated historical data, but cannot effectively realize the subsequent production and application of machine learning models (for example, it is difficult to use machine learning models to provide online services). In other words, the existing technology has a serious problem of separation between modeling solutions or results and model application processes; moreover, it does not have a user-friendly interactive method, and still requires users to have a certain programming foundation to use it, which does not achieve a truly low threshold. Summary of the invention
[0003] One purpose of the embodiments of the present disclosure is to provide a new technical solution for automatically executing the machine learning process.
[0004] According to a first aspect of the present disclosure, there is provided a method for automatically performing a machine learning process, comprising:
[0005] Provide independent model training operators and model prediction operators;
[0006] Based on the training data, training the machine learning model using the model training operator; and,
[0007] The model prediction operator and the trained machine learning model are used to provide prediction services for the prediction data.
[0008] Optionally, the method further comprises a step of obtaining the model training operator, comprising:
[0009] Providing an editing interface according to the operation of editing the model training operator;
[0010] Acquire operator content input through the editing interface, wherein the operator content includes an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after data preprocessing, and an operation command for performing model training according to the result of feature engineering;
[0011] Encapsulate the operator content to obtain the model training operator.
[0012] Optionally, the training of the machine learning model based on the training data and using the model training operator includes:
[0013] In response to a trigger operation on the model training operator, providing a configuration interface for configuring model training;
[0014] According to the configuration information input through the configuration interface, data preprocessing and feature engineering processing are performed on the training data to obtain training samples;
[0015] At least one model training algorithm is used to train a machine learning model based on the training samples.
[0016] Optionally, the configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
[0017] Optionally, the performing data preprocessing on the training data includes at least one of the following:
[0018] The first item is to convert the data type of the training data;
[0019] The second item is to sample the training data;
[0020] The third item is to mark the training data as labeled data and unlabeled data;
[0021] The fourth item is to automatically identify the data field type of the training data;
[0022] The fifth item is to fill missing values in the training data;
[0023] Item 6: Parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field;
[0024] Item 7: Automatically identify non-numeric data in the training data and perform hash processing on the non-numeric data.
[0025] Optionally, performing data preprocessing and feature engineering processing on the training data to obtain training samples includes:
[0026] Sampling the pre-processed training data;
[0027] Performing pre-feature selection on the training data after the sampling to obtain basic features;
[0028] Performing feature derivation on the basic feature to obtain a derived feature;
[0029] A training sample is generated according to the basic features and the derived features.
[0030] Optionally, performing pre-feature selection on the sampled training data to obtain basic features includes:
[0031] Extracting all attribute information included in the training data after the sampling, wherein the attribute information is used to form features;
[0032] Obtaining a feature importance value of each of the attribute information;
[0033] According to the feature importance value, basic features are obtained.
[0034] Optionally, obtaining basic features according to the feature importance values includes:
[0035] Sorting all the feature importance values to obtain a sorting result;
[0036] According to the sorting result, a first predetermined amount of attribute information is obtained as basic features.
[0037] Optionally, the performing feature derivation on the basic feature to obtain a derived feature includes:
[0038] The basic features are statistically calculated and / or feature combined using the set feature generation rules to obtain derived features.
[0039] Optionally, after obtaining the derived features, the method further comprises:
[0040] performing post-feature selection on the basic features and the derived features;
[0041] Generate training samples based on the features obtained by performing the post-feature selection.
[0042] Optionally, the performing post-feature selection on the basic features and the derived features comprises:
[0043] Obtaining a feature importance value of each of the basic features and each of the derived features;
[0044] Sorting all the feature importance values to obtain a sorting result;
[0045] According to the sorting result, a second predetermined number of features are obtained as features required for generating training samples.
[0046] Optionally, the method further comprises:
[0047] Based on the trained machine learning model, obtain a model training scheme;
[0048] Visually displaying the model training scheme;
[0049] The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model, and feature information used to train the machine learning model;
[0050] The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
[0051] Optionally, the method further comprises:
[0052] Steps to retrain the machine learning model based on the preview results displayed visually.
[0053] Optionally, using the model prediction operator and the trained machine learning model to provide a prediction service for the prediction data includes:
[0054] In response to a trigger operation on the model prediction operator, providing a configuration interface for configuring a batch prediction service;
[0055] According to the configuration information input through the configuration interface, the prediction data is subjected to data preprocessing and feature updating processing to obtain a prediction sample;
[0056] The trained machine learning model is used to provide a prediction result for the prediction sample.
[0057] Optionally, the configuration interface includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the on / off state of the real-time prediction service.
[0058] Optionally, the method further comprises:
[0059] According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided;
[0060] Receiving a prediction service request including the prediction data through the API address set in the configuration interface;
[0061] In response to the received prediction service request, the selected machine learning model is used to obtain a prediction result for the prediction data, and the prediction result is sent through the API address.
[0062] Optionally, the configuration interface includes configuration items for model selection rules and / or configuration items for application resources for selecting an online machine learning model from trained machine learning models.
[0063] According to a second aspect of the present disclosure, there is also provided an apparatus for performing an automatic machine learning process, comprising:
[0064] The interactive module is used to provide independent model training operators and model prediction operators;
[0065] A machine learning model training module, used to train the machine learning model using the model training operator based on the stored training data; and
[0066] The data prediction module is used to use the model prediction operator and the trained machine learning model to provide prediction services for the collected prediction data.
[0067] Optionally, the device further includes a model training operator acquisition module, and the model training operator acquisition module is used to:
[0068] Providing an editing interface according to the operation of editing the model training operator;
[0069] Acquire operator content input through the editing interface, wherein the operator content includes an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after data preprocessing, and an operation command for performing model training according to the result of feature engineering;
[0070] Encapsulate the operator content to obtain the model training operator.
[0071] Optionally, the machine learning model training module is specifically used for:
[0072] In response to a trigger operation on the model training operator, providing a configuration interface for configuring model training;
[0073] According to the configuration information input through the configuration interface, data preprocessing and feature engineering processing are performed on the training data to obtain training samples;
[0074] At least one model training algorithm is used to train a machine learning model based on the training samples.
[0075] Optionally, the configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
[0076] Optionally, the machine learning model training module is specifically used to perform at least one of the following on the training data:
[0077] The first item is to convert the data type of the training data;
[0078] The second item is to sample the training data;
[0079] The third item is to mark the training data as labeled data and unlabeled data;
[0080] The fourth item is to automatically identify the data field type of the training data;
[0081] The fifth item is to fill missing values in the training data;
[0082] Item 6: Parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field;
[0083] Item 7: Automatically identify non-numeric data in the training data and perform hash processing on the non-numeric data.
[0084] Optionally, the machine learning model training module is specifically used for:
[0085] Sampling the pre-processed training data;
[0086] Performing pre-feature selection on the training data after the sampling to obtain basic features;
[0087] Performing feature derivation on the basic feature to obtain a derived feature;
[0088] A training sample is generated according to the basic features and the derived features.
[0089] Optionally, the machine learning model training module is specifically used for:
[0090] Extracting all attribute information included in the training data after the sampling, wherein the attribute information is used to form features;
[0091] Obtaining a feature importance value of each of the attribute information;
[0092] According to the feature importance value, basic features are obtained.
[0093] Optionally, the machine learning model training module is specifically used for:
[0094] Sorting all the feature importance values to obtain a sorting result;
[0095] According to the sorting result, a first predetermined amount of attribute information is obtained as basic features.
[0096] Optionally, the machine learning model training module is specifically used for:
[0097] The basic features are statistically calculated and / or feature combined using the set feature generation rules to obtain derived features.
[0098] Optionally, the machine learning model training module is specifically used for:
[0099] performing post-feature selection on the basic features and the derived features;
[0100] Generate training samples based on the features obtained by performing the post-feature selection.
[0101] Optionally, the machine learning model training module is specifically used for:
[0102] Obtaining a feature importance value of each of the basic features and each of the derived features;
[0103] Sorting all the feature importance values to obtain a sorting result;
[0104] According to the sorting result, a second predetermined number of features are obtained as features required for generating training samples.
[0105] Optionally, the device further comprises a model training scheme display module, and the model training scheme display module is used to:
[0106] Based on the trained machine learning model, obtain a model training scheme;
[0107] Visually displaying the model training scheme;
[0108] The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model, and feature information used to train the machine learning model;
[0109] The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
[0110] Optionally, the machine learning model training module is specifically used for:
[0111] Retrain the machine learning model based on the preview results displayed visually.
[0112] Optionally, the data prediction module includes a batch prediction unit, and the batch prediction unit is used to:
[0113] In response to a trigger operation on the model prediction operator, providing a configuration interface for configuring a batch prediction service;
[0114] According to the configuration information input through the configuration interface, the prediction data is subjected to data preprocessing and feature updating processing to obtain a prediction sample;
[0115] The trained machine learning model is used to provide a prediction result for the prediction sample.
[0116] Optionally, the configuration interface includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the on / off state of the real-time prediction service.
[0117] Optionally, the data prediction module includes a real-time prediction unit, and the real-time prediction unit is used to:
[0118] According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided;
[0119] Receiving a prediction service request including the prediction data through the API address set in the configuration interface;
[0120] In response to the received prediction service request, the selected machine learning model is used to obtain a prediction result for the prediction data, and the prediction result is sent through the API address.
[0121] Optionally, the configuration interface includes configuration items for model selection rules and / or configuration items for application resources for selecting an online machine learning model from trained machine learning models.
[0122] According to a third aspect of the present disclosure, there is also provided a device comprising at least one computing device and at least one storage device, wherein the at least one storage device is used to store instructions, and the instructions are used to control the at least one computing device to execute the method according to the first aspect above.
[0123] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the method described in the first aspect above is implemented.
[0124] According to the method of the embodiment of the present disclosure, it is possible to provide mutually independent model training operators and model prediction operators, complete the training of the machine learning model through the model training operator, and provide prediction services through the model and prediction operator, so that multiple processes such as model production and model application can achieve full-process cycle operation, thereby greatly reducing the threshold and cost of the implementation of machine learning technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0125] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the attached drawings.
[0126] Figure 1 is a block diagram showing an example of a hardware configuration of an electronic device that can be used to implement an embodiment of the present disclosure;
[0127] Figure 2 A flowchart of a method for performing an automatic machine learning process according to an embodiment of the present disclosure is shown;
[0128] Figures 3 to 7 A schematic diagram showing an interface display of a method for executing an automatic machine learning process according to an embodiment of the present disclosure is shown;
[0129] Figure 8 A functional block diagram of an apparatus for executing an automatic machine learning process according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0130] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless otherwise specifically stated.
[0131] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0132] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0133] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0134] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0135] Hereinafter, various embodiments and examples according to embodiments of the present invention are described with reference to the accompanying drawings.
[0136] <Hardware Configuration>
[0137] The method of the embodiment of the present disclosure may be implemented by at least one electronic device, that is, the apparatus 8000 for implementing the method may be arranged on the at least one electronic device. Figure 2 The hardware structure of an arbitrary electronic device is shown. Figure 2The electronic device shown may be a portable computer, a desktop computer, a workstation, a server, etc., or may be any other device having a computing device such as a processor and a storage device such as a memory, and is not limited here.
[0138] like Figure 2 As shown, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a speaker 1700, a microphone 1800, and the like. Among them, the processor 1100 is used to execute a computer program. The computer program can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1200 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 1400 is, for example, capable of wired or wireless communication, and specifically may include Wifi communication, Bluetooth communication, 2G / 3G / 4G / 5G communication, and the like. The display device 1500 is, for example, a liquid crystal display screen, a touch display screen, and the like. The input device 1600 may include, for example, a touch screen, a keyboard, a somatosensory input, and the like. The electronic device 1000 may output voice information through the speaker 1700 , and may collect voice information through the microphone 1800 , etc.
[0139] Figure 2 The electronic device shown is merely illustrative and does not in any way imply any limitation on the present invention, its application or use. Applied to the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to perform the method of performing an automatic machine learning process of the embodiment of the present disclosure. Technicians can design instructions according to the scheme disclosed in the present invention. How instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0140] In one embodiment, a device is provided, including at least one computing device and at least one storage device, wherein the at least one storage device is used to store instructions, and the instructions are used to control the at least one computing device to execute the method according to any embodiment of the present disclosure.
[0141] The device may include at least one Figure 1 The electronic device 1000 shown is provided with at least one computing device such as a processor and at least one storage device such as a memory, which is not limited herein.
[0142] <Method Example>
[0143] In this embodiment, a method for performing an automatic machine learning process is provided. The method for performing an automatic machine learning process can be implemented by an electronic device, and the electronic device can be such as Figure 1 An electronic device 1000 is shown.
[0144] according to Figure 2 As shown, the method for executing the automatic machine learning process of this embodiment may include the following steps S2100 to S2300:
[0145] Step S2100, providing mutually independent model training operators and model prediction operators.
[0146] The model training operator is a tool used to preprocess the input training data, perform feature engineering on the preprocessed training data, and perform model training based on the results of feature engineering to obtain a machine learning model.
[0147] The model prediction operator is a tool used to preprocess the input prediction data, perform feature engineering on the prediction data after data preprocessing, and use a machine learning model to predict the results of feature engineering to obtain prediction results.
[0148] In this embodiment, a graphical user interface may be provided, and a "model training operator" node and a "model prediction operator" node may be provided in the operator nodes of the graphical user interface. Figure 3 As shown, when it is necessary to perform model training on the training data, the "model training operator" can be dragged to the graphical user interface for executing the automatic machine learning process to obtain the "model training operator" node. Also, when it is necessary to perform model prediction on the prediction data, the "model prediction operator" can be dragged to the graphical user interface for executing the automatic machine learning process to obtain the "model prediction operator" node.
[0149] After providing independent model training operators and model prediction operators, enter:
[0150] Step S2200, based on the training data, use the model training operator to train the machine learning model.
[0151] In this embodiment, different training data are provided for different machine learning problems. For example, training data sets corresponding to various application scenarios may be pre-stored in a designated location of an electronic device executing an embodiment of the present disclosure, and the training data may be, for example, labeled image data, one or more labeled text data tables, or labeled voice data.
[0152] In this embodiment, a graphical user interface may be provided, and training data corresponding to the application scenario may be selected in the data node of the graphical user interface. Figure 3As shown, when model training is required for training data, drag the training data to the graphical user interface for executing the automatic machine learning process to obtain a "training data" node, connect the "training data" node to the "model training" node, right-click on the "model training operator", select Run, and then use the model training operator to train the machine learning model based on the training data.
[0153] In this embodiment, the step S2200 may further include the following steps S2210 to S2230, based on the training data, to train the machine learning model using the model training operator:
[0154] Step S2210, in response to a trigger operation on a model training operator, provides a configuration interface for configuring model training.
[0155] In this step S2210, for example, a click operation may be performed on the model training operator, and the electronic device provides a configuration interface for configuring the model training in response to the click operation.
[0156] The configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
[0157] The above input sources generally default to 1 input source, that is, the training data is 1 data table. At this time, the model training operator has only 1 input node. By clicking "Add input source", the model training operator input nodes are increased, and multiple data tables can be connected as training data. Here, the model training operator is also used to splice multiple data tables according to the splicing primary key.
[0158] The above applicable problem types may include any one of binary classification problems, regression problems, and multi-classification problems. For example, Figure 4 A drop-down menu box for selecting an applicable question type is provided as shown, so that the question type selected by the user through the drop-down menu box is obtained as the applicable question type for the machine learning model.
[0159] The above algorithm mode may include any one of the fast mode, standard model and fine model, and the algorithm mode defaults to the standard mode. Figure 4A drop-down menu box for selecting an algorithm mode is provided as shown, so that the algorithm mode selected by the user through the drop-down menu box can be obtained as the algorithm mode applicable to the machine learning model. It should be noted that the fast mode does not generate features, but only uses very small data to quickly generate a machine learning model. The standard mode uses most of the training data for data preprocessing, but only uses some feature rules that work well on most training data to generate features. The fine mode uses the full amount of training data that does not overflow the memory and uses all feature rules for exploration to generate a machine learning model.
[0160] The above optimization objectives include at least one of Mean Squared Error (MSE), Mean Absolute Error (MAE), Mean Absolute Percentage Error (MAPE), R2, AUC, KS, Recall, Precision, Accuracy, f1, and Logloss. Different options are provided for different problem types. For example, for regression problems, MSE, MAE, MAPE, R2, etc. can be selected, and for binary classification problems, AUC, KS, Recall, Precision, Accuracy, f1, Logloss, etc. can be selected.
[0161] The field name of the prediction target field above is used to indicate the field name of the model prediction target field. For example, it can be Figure 4 An input box is provided for entering the field name of the prediction target field, so that users can manually enter the field name of the model prediction target field.
[0162] Step S2220, performing data preprocessing and feature engineering processing on the training data according to the configuration information input through the configuration interface to obtain training samples.
[0163] Continue with Figure 4 Taking the configuration interface shown as an example, the input source defaults to 1 input source, the problem type selects binary classification problem, the optimization target selects AUC, the algorithm mode selects standard mode, and the target value field is manually entered by the user ( Figure 4 The entered target value field is not shown).
[0164] The data preprocessing of the training data in step S2220 may include at least one of the following:
[0165] The first item is to convert the data type of the training data.
[0166] In this item, since the actual input business data includes various input data types and formats, here, for example, different data types can be uniformly converted into the widely used PandasDataFrame format.
[0167] The second item is to sample the training data.
[0168] In this item, the entire input data can be downsampled, leaving only the number of samples preset by the algorithm. The number of samples left is automatically configured by the algorithm according to the development environment. For example, for classification tasks, stratified sampling can be used for samples, while for other tasks, random sampling is used.
[0169] The third item is to label the training data into labeled data and unlabeled data.
[0170] In this item, the model can be trained using labeled data, and features can be generated using both labeled and unlabeled data.
[0171] The fourth item is to automatically identify the data field type of the training data.
[0172] In this item, the data field type can be converted to the business type required for subsequent feature engineering. The business type is divided according to the physical meaning of the data feature and is marked on the data in advance. The business type can be, for example, time type, discrete value type, continuous value type, array type, and dictionary type. Usually, if the user does not define the business type himself, the algorithm will convert the floating point type to the continuous value type, and the non-floating point type to the discrete value type, etc.
[0173] The fifth item is to fill missing values in the training data.
[0174] In this item, for a column A, a corresponding A' will be generated, and its value is A'_i=1 on the i-th sample if A_i is empty, otherwise A_i=0.
[0175] The sixth item is to parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field.
[0176] In this item, you can convert time type columns in different formats into a unified data format Date, parse the Date column to obtain year, month, day, day of the week and hour information, and add them to the original data as new discrete columns and new continuous value columns respectively. Finally, take out the timestamp of the Date column as a new continuous value feature column, and delete the initial time type feature in the original data.
[0177] Item 7: Automatically identify non-numeric data in training data and perform hashing on the non-numeric data.
[0178] In this item, you can determine whether there are columns whose data storage types are not integers or floating-point numbers. If so, use a hash algorithm to map them into integer strings. The model can use the newly generated integer strings to learn the information in the original data columns.
[0179] In this embodiment, the step S2220 performs data preprocessing and feature engineering processing on the training data to obtain training samples, which may further include the following steps S2221 to S2224:
[0180] Step S2221, sampling the preprocessed training data.
[0181] In this step S2221, the preprocessed training data may be downsampled, for example, randomly sampled, so as to increase the calculation speed of subsequent feature importance values.
[0182] Step S2222, perform pre-feature selection on the sampled training data to obtain basic features.
[0183] By performing pre-feature selection on the sampled training data in step S2222, features with higher feature importance values can be screened out as basic features.
[0184] In this embodiment, the step S2222 performs pre-feature selection on the sampled training data to obtain basic features, which may further include the following steps S2222-1 to S2222-3:
[0185] Step S2222-1, extract all attribute information included in the sampled training data.
[0186] This attribute information is used to form features. For example, the training data may include information that the user wishes to recommend to the consumer and / or basic attribute information of the consumer (e.g., information topic, information display location, consumer identifier, gender, age, height, weight, interests, etc.).
[0187] Step S2222-2, obtain the feature importance value of each attribute information.
[0188] In this step S2222-2, the feature importance value may be, for example, any one of the hellinger distance, the random forest feature segmentation gain, and the gradient boosting decision tree feature segmentation gain. For example, for a classification task, the hellinger distance may be calculated as the feature importance value of each attribute information. For another example, for a regression task, the random forest feature segmentation gain may be calculated as the feature importance value of each attribute information.
[0189] In this step S2222-2, for example, the feature importance values of the above information topics, information display locations, consumer identifiers, gender, age, height, weight, interests and hobbies, etc. can be calculated.
[0190] Step S2222-3, obtain basic features according to feature importance values.
[0191] In this embodiment, obtaining the basic features according to the feature importance values in step S2222-3 may further include the following steps S2222-31 to S2222-32:
[0192] Step S2222-31, sort all feature importance values to obtain a sorting result.
[0193] In this step S2222-31, for example, the feature importance values of the above information topics, information display locations, consumer identifiers, gender, age, height, weight, interests and hobbies, etc. can be sorted in descending order to obtain the sorting result.
[0194] Step S2222-32: According to the sorting result, obtain attribute information corresponding to a first predetermined number of feature importance values as basic features.
[0195] The first predetermined number may be a value set according to a specific application scenario or a simulation test. For example, for different application scenarios, a value corresponding to the application scenario may be set, and the values corresponding to different application scenarios may be the same or different. For another example, the same value may be set for all application scenarios, and this embodiment does not limit the specific setting method of the first predetermined number. The first set number may also be dynamically adjusted according to computing resources.
[0196] In this step S2222-32, for example, based on the above sorting result from largest to smallest, the attribute information corresponding to the first predetermined number of feature importance values is obtained as the basic feature.
[0197] Step S2223, deriving features from the basic features to obtain derived features.
[0198] In this embodiment, the step S2223 of deriving features from the basic features to obtain derived features may further include: using set feature generation rules to perform statistical calculations and / or feature combinations on the basic features to obtain derived features.
[0199] The above-predetermined feature generation rules may, for example, include any one or more of Count, Nunique, NumAdd, NumSubtract, NumMultip, NumDivision, CatNumMean, CatNumStd, CatNumMax, CatNumMin, TumeSubtract, NumOutlier, and CatTimeDiff.
[0200] In this step S2223, the parameters required for calculating and generating features can be saved to accelerate the feature generation process of the model prediction operator.
[0201] Step S2224a, generating training samples based on basic features and derived features.
[0202] In this embodiment, after obtaining the derived features according to the above step S2223, the following steps S2224b-1 to S2224b-2 may be further included:
[0203] Step S2224b-1, perform post-feature selection on basic features and derived features.
[0204] In this embodiment, the post-feature selection of the basic features and the derived features in step S2224b-1 may further include the following steps S2224b-11 to S2224b-13:
[0205] Step S2224b-11, obtaining the feature importance value of each basic feature and each derived feature.
[0206] In this step S2224b-11, the feature importance value may be, for example, any one of the hellinger distance, random forest feature segmentation gain, and gradient boosting decision tree feature segmentation gain, etc. For example, for a regression task, the random forest feature segmentation gain may be calculated as the feature importance value of each feature.
[0207] Step S2224b-12, sort all feature importance values to obtain a sorting result.
[0208] In this step S2224b-12, for example, the feature importance values of each basic feature and each derived feature obtained may be sorted in descending order to obtain a sorting result.
[0209] Step S2224b-13, according to the sorting result, obtain a second predetermined number of features as features required for generating training samples.
[0210] The second predetermined number may be a value set according to a specific application scenario or a simulation test. For example, for different application scenarios, a value corresponding to the application scenario may be set, and the values corresponding to different application scenarios may be the same or different. For another example, the same value may be set for all application scenarios. This embodiment does not limit the specific setting method of the second predetermined number.
[0211] In this step S2224b-13, for example, based on the above sorting result from largest to smallest, features corresponding to the first second predetermined number of feature importance values are obtained as features required for generating training samples.
[0212] In this embodiment, a threshold parameter r can also be set, and a feature importance value set is formed according to the obtained feature importance values, and the median m of the set is obtained. In the set, if a feature importance value is greater than r*m, the feature corresponding to the feature importance value is retained.
[0213] Step S2224b-2, generating training samples based on the features obtained by post-feature selection.
[0214] Step S2230, using at least one model training algorithm to train a machine learning model based on training samples.
[0215] The model training algorithm may be, for example, at least one of a gradient boosting decision tree, a random forest, a factorization machine, a domain-sensitive factorization machine, and a linear regression.
[0216] In actual operation, this embodiment also supports an early stop strategy. Specifically, when multiple algorithms are trained simultaneously, a strategy can be used to determine in advance which algorithm the training data is more suitable for, thereby suspending the exploration of unsuitable algorithms and spending time and resources on more suitable algorithms.
[0217] After training the machine learning model using the model training operator based on the training data, proceed to:
[0218] Step S2300, using the model prediction operator and the trained machine learning model to provide prediction services for the prediction data.
[0219] Prediction data can be data that users (e.g., information service providers for recommending information) expect to obtain relevant prediction results. For example, when a user wants to know the prediction results of whether the information he expects to recommend to his customers (e.g., end consumers) will be accepted (i.e., whether it will be clicked or read by consumers), the prediction data is the attribute information data about the information he expects to recommend.
[0220] like Figure 3As shown, when it is necessary to provide prediction services for the prediction data, you can drag the "model prediction operator" to the graphical user interface that executes the automatic machine learning process to obtain the "model prediction operator" node, and drag the prediction data to the graphical user interface that executes the automatic machine learning process to obtain the "prediction data" node, and connect the "prediction data" node to the "model prediction operator" node, right-click "Model Prediction", select Run, and then use the model prediction operator to provide batch prediction services based on the prediction data.
[0221] In this embodiment, the step S2300 using the model prediction operator and the trained machine learning model to provide prediction services for the prediction data may further include the following steps S2310 to S2330:
[0222] Step S2310, in response to a trigger operation on a model prediction operator, provides a configuration interface for configuring a batch prediction service.
[0223] In this step S2310, for example, a click operation may be performed on the model prediction operator, and the electronic device, in response to the click operation, provides a configuration interface for configuring the batch prediction service.
[0224] like Figure 5 The configuration interface shown includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the switch status of the real-time prediction service.
[0225] The field selection in the above prediction results may include at least one of retaining only the sample target value and the predicted score, and customizing. For example, if you select "retain only the sample target value and the predicted score", the sample target value and the model prediction result will be displayed in the prediction result. For another example, if you select "customize", a text box is provided for the user to enter the field name, and the names of all the selectable fields are provided for the user to check. The checked field will automatically appear in the text box, such as Figure 6 shown.
[0226] When the switch status of the above simulated real-time prediction service is turned off, it is a batch prediction mode, and the prediction data as a whole participates in the prediction, but the prediction results of each sample may affect each other. When the switch status of the simulated real-time prediction service is turned on, the prediction samples will not affect each other, and the prediction results are completely consistent with the real-time prediction.
[0227] Step S2320: Perform data preprocessing and feature update processing on the prediction data according to the configuration information input through the configuration interface to obtain prediction samples.
[0228] Continue with Figure 5Taking the configuration interface shown as an example, the field selection in the prediction result is configured to "only retain sample target value and prediction score", and the switch status of the simulated real-time prediction service is turned off.
[0229] The data preprocessing of the prediction data in step S2320 may include at least one of the following:
[0230] The first item is to convert the data type of the prediction data.
[0231] The second item is to divide the prediction data into blocks.
[0232] In this item, you can first determine the amount of prediction data. When the amount of data is not enough to be processed in the memory at one time, divide the prediction data into multiple copies and store them on the hard disk so that subsequent data preprocessing, feature engineering and result estimation can be performed in batches.
[0233] The third item is to align the attribute information in the predicted data with the attribute information in the training data after data preprocessing.
[0234] In this item, when the prediction data is read in, the type of each column of the prediction data will be aligned with the type of the corresponding column of the training data.
[0235] The fourth item is to automatically identify the data field type of the predicted data.
[0236] The fifth item is to fill missing values in the predicted data.
[0237] The sixth item is to parse the initial time field in the prediction data, obtain and add a new time field, and delete the initial time field.
[0238] In this embodiment, the step S2320 performs data preprocessing and feature updating processing on the prediction data to obtain the prediction sample, which may further include the following steps S2321 to S2324:
[0239] Step S2321, filter out a feature set from the result of feature engineering.
[0240] The feature set includes basic features and derived features.
[0241] Step S2322, identifying the feature generation rule corresponding to the derived feature.
[0242] Step S2323, deleting the attribute information in the aligned predicted data that does not belong to the basic features, so as to obtain the basic features of the predicted data.
[0243] Step S2324, generating derived features of the prediction data according to the feature generation rules using the attribute information in the prediction data after deletion.
[0244] Step S2325, generating prediction samples according to the basic features of the prediction data and the derived features of the prediction data.
[0245] Step S2330, using the trained machine learning model to provide prediction results for the prediction samples.
[0246] In this embodiment, multiple trained machine learning models can be used to provide prediction results for prediction samples respectively, and the average value of the prediction results of multiple machine learning models can be used as the final prediction result corresponding to the prediction data.
[0247] According to the method of this embodiment, it is possible to provide mutually independent model training operators and model prediction operators, complete the training of the machine learning model through the model training operator, and provide prediction services through the model and prediction operator, so that multiple processes such as model production and model application can achieve full-process cycle operation, thereby greatly reducing the threshold and cost of the implementation of machine learning technology.
[0248] Moreover, it can adapt to different structured data scenarios, for example, it can support binary classification scenarios, multi-classification scenarios, regression scenarios, and clustering problem scenarios.
[0249] In one embodiment, a configuration interface for a real-time prediction service may be provided so as to provide a real-time prediction service for prediction data. In this embodiment, the method for executing the automatic machine learning process may also include the following steps S7100 to S7300:
[0250] Step S7100: According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided.
[0251] The configuration interface includes configuration items for selecting model selection rules for an online machine learning model from trained machine learning models and / or configuration items for application resources.
[0252] Step S7200: receiving a prediction service request including prediction data through the API address set in the configuration interface.
[0253] Step S7300, in response to the received prediction service request, obtain the prediction result for the prediction data using the selected machine learning model, and send the prediction result through the API address.
[0254] In one embodiment, a human-computer interaction interface may be provided to support modeling personnel to perform operations, thereby obtaining a model training operator. In this embodiment, the method for performing an automatic machine learning process further includes the following steps S8100 to S8300:
[0255] Step S8100, providing an editing interface according to the operation of editing the model training operator.
[0256] In this embodiment, the electronic device may provide an editing interface in response to an operation of editing the model training operator.
[0257] The editing interface may include an editing entry, which may be an input box, a drop-down list, voice input, etc.
[0258] Step S8200: Obtain operator content input through the editing interface.
[0259] The operator content includes operation commands for performing data preprocessing on the input training data, operation commands for performing feature engineering on the training data after data preprocessing, and operation commands for performing model training based on the results of feature engineering.
[0260] In this embodiment, the modeling personnel can input the operator content through the editing entry provided by the editing interface, so that the electronic device can obtain the operator content.
[0261] Step S8300, encapsulate the operator content to obtain the model training operator.
[0262] In this embodiment, the model training operator may be obtained by encapsulating an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after data preprocessing, and an operation command for performing model training according to the result of feature engineering.
[0263] In one embodiment, a visualization interface is also provided to visualize the model training scheme obtained during the model training process. In this embodiment, the method for performing the automatic machine learning process also includes the following steps S9100 to S9200:
[0264] Step S9100, obtaining a model training plan based on the trained machine learning model.
[0265] The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model, and feature information used to train the machine learning model.
[0266] The algorithm includes but is not limited to any one of the above gradient boosting decision tree, random forest, factor decomposition machine, domain-sensitive factor decomposition machine, and linear regression.
[0267] The hyperparameters may include model hyperparameters and training hyperparameters.
[0268] The above model hyperparameters are used to define the hyperparameters of the model, such as but not limited to activation functions (such as identity function, S-type function and truncated ramp function), the number of hidden layer nodes, the number of convolutional layer channels and the number of fully connected layer nodes.
[0269] The above training hyperparameters are used to define the hyperparameters of the model training process, such as but not limited to learning rate, batch size, and number of iterations.
[0270] The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
[0271] Step S9200: Visually display the model training plan.
[0272] In this step S9200, the visual display result can be as follows: Figure 7 The graphical user interface shown.
[0273] In this embodiment, the method for executing the machine learning process may also include the step of retraining the machine learning model based on the preview results of the visual display.
[0274] In this embodiment, if the preview result does not meet the requirements, you can return to the model training step and rebuild the model by modifying the configuration information in the configuration interface for the model training configuration.
[0275] <Device Example>
[0276] In this embodiment, a device 8000 for performing an automatic machine learning process is provided, such as Figure 8 As shown, it includes an interaction module 8100, a machine learning model training module 8200 and a data prediction module 8300.
[0277] The interaction module 8100 is used to provide independent model training operators and model prediction operators.
[0278] The machine learning model training module 8200 is used to train the machine learning model based on the saved training data using the model training operator.
[0279] The data prediction module 8300 is used to provide prediction services for the collected prediction data by using the model prediction operator and the trained machine learning model.
[0280] In one embodiment, the device 8000 further includes a model training operator acquisition module (not shown in the figure), and the model training operator acquisition module is used to:
[0281] According to the operation of editing the model training operator, an editing interface is provided.
[0282] The operator content input through the editing interface is obtained, wherein the operator content includes an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after the data preprocessing, and an operation command for performing model training according to the result of the feature engineering.
[0283] Encapsulate the operator content to obtain the model training operator.
[0284] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0285] In response to a trigger operation on the model training operator, a configuration interface for configuring model training is provided.
[0286] According to the configuration information input through the configuration interface, data preprocessing and feature engineering processing are performed on the training data to obtain training samples.
[0287] At least one model training algorithm is used to train a machine learning model based on the training samples.
[0288] In one embodiment, the configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
[0289] In one embodiment, the machine learning model training module 8200 is specifically configured to perform at least one of the following on the training data:
[0290] The first item is to convert the data type of the training data.
[0291] The second item is to sample the training data.
[0292] The third item is to mark the training data as labeled data and unlabeled data.
[0293] The fourth item is to automatically identify the data field type of the training data.
[0294] The fifth item is to fill missing values in the training data.
[0295] Item 6: Parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field.
[0296] Item 7: Automatically identify non-numeric data in the training data and perform hash processing on the non-numeric data.
[0297] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0298] Sampling the training data after the preprocessing.
[0299] Perform pre-feature selection on the training data after the sampling to obtain basic features.
[0300] Perform feature derivation on the basic feature to obtain a derived feature.
[0301] A training sample is generated according to the basic features and the derived features.
[0302] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0303] All attribute information included in the training data after the sampling is extracted, wherein the attribute information is used to form features.
[0304] Obtain a feature importance value of each of the attribute information.
[0305] According to the feature importance value, basic features are obtained.
[0306] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0307] All the feature importance values are sorted to obtain a sorting result.
[0308] According to the sorting result, a first predetermined amount of attribute information is obtained as basic features.
[0309] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0310] The basic features are statistically calculated and / or feature combined using the set feature generation rules to obtain derived features.
[0311] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0312] Post-feature selection is performed on the basic features and the derived features.
[0313] Generate training samples based on the features obtained by performing the post-feature selection.
[0314] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0315] Obtaining feature importance values of each of the basic features and each of the derived features.
[0316] All the feature importance values are sorted to obtain a sorting result.
[0317] According to the sorting result, a second predetermined number of features are obtained as features required for generating training samples.
[0318] In one embodiment, the device 8000 further includes a model training scheme display module (not shown in the figure), which is used to:
[0319] Based on the trained machine learning model, a model training scheme is obtained.
[0320] The model training scheme is visualized.
[0321] The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model and feature information used to train the machine learning model.
[0322] The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
[0323] In one embodiment, the machine learning model training module 8200 is specifically used to:
[0324] Retrain the machine learning model based on the preview results displayed visually.
[0325] In one embodiment, the data prediction module 8300 includes a batch prediction unit (not shown in the figure), which is used to:
[0326] In response to a trigger operation on the model prediction operator, providing a configuration interface for configuring a batch prediction service;
[0327] According to the configuration information input through the configuration interface, the prediction data is subjected to data preprocessing and feature updating processing to obtain a prediction sample;
[0328] The trained machine learning model is used to provide a prediction result for the prediction sample.
[0329] In one embodiment, the configuration interface includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the on / off state of the real-time prediction service.
[0330] In one embodiment, the data prediction module 8300 includes a real-time prediction unit (not shown in the figure), which is used to:
[0331] According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided.
[0332] A prediction service request including the prediction data is received through the API address set in the configuration interface.
[0333] In response to the received prediction service request, the selected machine learning model is used to obtain a prediction result for the prediction data, and the prediction result is sent through the API address.
[0334] In one embodiment, the configuration interface includes configuration items for selecting model selection rules of an online machine learning model from trained machine learning models and / or configuration items for application resources.
[0335] <Storage Medium Embodiment>
[0336] This embodiment provides a computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of the above method embodiments is implemented.
[0337] The present invention may be a device, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0338] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0339] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0340] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.
[0341] Various aspects of the present invention are described herein with reference to the flow charts and / or block diagrams of the methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each box of the flow chart and / or block diagram and the combination of each box in the flow chart and / or block diagram can be implemented by computer-readable program instructions.
[0342] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0343] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0344] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0345] Embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. A method for performing an automated machine learning process based on a graphical user interface, comprising: Providing a graphical user interface, in which mutually independent model training operators and model prediction operators are respectively provided; Based on the training data, the model training operator is used to train the machine learning model, wherein the training data is annotated image data, annotated text data table or annotated speech data; and, Using the model prediction operator and the trained machine learning model, a prediction service is provided for the prediction data. Wherein, the method of training the machine learning model based on the training data using the model training operator includes: providing a configuration interface for configuring the model training in response to a trigger operation on the model training operator; performing data preprocessing and feature engineering on the training data using the model training operator according to the configuration information input by the user through the configuration interface to obtain training samples, and training a machine learning model based on the training samples using at least one model training algorithm; and / or Using the model prediction operator and the trained machine learning model, prediction services are provided for prediction data, including: in response to a trigger operation on the model prediction operator, a configuration interface for configuring batch prediction services is provided; based on the configuration information input by the user through the configuration interface, the model prediction operator is used to perform data preprocessing and feature update processing on the prediction data to obtain prediction samples, and the trained machine learning model is used to provide prediction results for the prediction samples.
2. The method according to claim 1, wherein: The method further comprises the step of obtaining the model training operator, comprising: Providing an editing interface according to the operation of editing the model training operator; Acquire operator content input through the editing interface, wherein the operator content includes an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after data preprocessing, and an operation command for performing model training according to the result of feature engineering; Encapsulate the operator content to obtain the model training operator.
3. The method according to claim 1, wherein: The configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
4. The method according to claim 1, wherein: The performing data preprocessing on the training data includes at least one of the following: The first item is to convert the data type of the training data; The second item is to sample the training data; The third item is to mark the training data as labeled data and unlabeled data; The fourth item is to automatically identify the data field type of the training data; The fifth item is to fill missing values in the training data; Item 6: Parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field; Item 7: Automatically identify non-numeric data in the training data and perform hash processing on the non-numeric data.
5. The method according to claim 1, wherein: The performing data preprocessing and feature engineering processing on the training data to obtain training samples includes: Sampling the pre-processed training data; Performing pre-feature selection on the training data after the sampling to obtain basic features; Performing feature derivation on the basic feature to obtain a derived feature; A training sample is generated according to the basic features and the derived features.
6. The method according to claim 5, wherein: The step of performing pre-feature selection on the sampled training data to obtain basic features includes: Extracting all attribute information included in the training data after the sampling, wherein the attribute information is used to form features; Obtaining a feature importance value of each of the attribute information; According to the feature importance value, basic features are obtained.
7. The method according to claim 6, wherein: The obtaining of basic features according to the feature importance values includes: Sorting all the feature importance values to obtain a sorting result; According to the sorting result, a first predetermined amount of attribute information is obtained as basic features.
8. The method according to claim 5, wherein: The step of deriving features from the basic features to obtain derived features includes: The basic features are statistically calculated and / or feature combined using the set feature generation rules to obtain derived features.
9. The method according to claim 5, wherein: After obtaining the derived features, the method further includes: performing post-feature selection on the basic features and the derived features; Generate training samples based on the features obtained by performing the post-feature selection.
10. The method according to claim 9, wherein: The post-feature selection of the basic features and the derived features comprises: Obtaining a feature importance value of each of the basic features and each of the derived features; Sorting all the feature importance values to obtain a sorting result; According to the sorting result, a second predetermined number of features are obtained as features required for generating training samples.
11. The method according to claim 1, wherein: The method further comprises: Based on the trained machine learning model, obtain a model training scheme; Visually displaying the model training scheme; The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model, and feature information used to train the machine learning model; The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
12. The method according to claim 11, wherein: The method further comprises: Steps to retrain the machine learning model based on the preview results displayed visually.
13. The method according to claim 1, wherein: The configuration interface includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the on / off status of the real-time prediction service.
14. The method according to claim 1, wherein: The method further comprises: According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided; Receiving a prediction service request including the prediction data through the API address set in the configuration interface; In response to the received prediction service request, the selected machine learning model is used to obtain a prediction result for the prediction data, and the prediction result is sent through the API address.
15. The method according to claim 14, wherein: The configuration interface includes configuration items for selecting model selection rules of an online machine learning model from trained machine learning models and / or configuration items for application resources.
16. An apparatus for performing an automated machine learning process based on a graphical user interface, comprising: The interactive module is used to provide independent model training operators and model prediction operators; A machine learning model training module, used to train the machine learning model using the model training operator based on the stored training data, wherein the training data is annotated image data, annotated text data table or annotated voice data; as well as A data prediction module is used to provide prediction services for the collected prediction data using the model prediction operator and the trained machine learning model. The machine learning model training module is specifically used to: respond to a trigger operation for the model training operator, provide a configuration interface for configuring model training; according to the configuration information input through the configuration interface, use the model training operator to perform data preprocessing and feature engineering on the training data to obtain training samples, and use at least one model training algorithm to train a machine learning model based on the training samples, and / or The data prediction module includes a batch prediction unit, which is used to: respond to a trigger operation on the model prediction operator, provide a configuration interface for configuring the batch prediction service; use the model prediction operator to perform data preprocessing and feature update processing on the prediction data according to the configuration information input through the configuration interface, obtain prediction samples, and use the trained machine learning model to provide prediction results for the prediction samples.
17. The device according to claim 16, wherein: The device also includes a model training operator acquisition module, and the model training operator acquisition module is used to: Providing an editing interface according to the operation of editing the model training operator; Acquire operator content input through the editing interface, wherein the operator content includes an operation command for performing data preprocessing on the input training data, an operation command for performing feature engineering on the training data after data preprocessing, and an operation command for performing model training according to the result of feature engineering; Encapsulate the operator content to obtain the model training operator.
18. The device according to claim 16, wherein: The configuration interface includes at least one of the following configuration items: an input source configuration item of the machine learning model, an applicable problem type configuration item of the machine learning model, an algorithm mode configuration item for training the machine learning model, an optimization target configuration item of the machine learning model, and a field name configuration item of the prediction target field of the machine learning model.
19. The device according to claim 16, wherein: The machine learning model training module is specifically used to perform at least one of the following on the training data: The first item is to convert the data type of the training data; The second item is to sample the training data; The third item is to mark the training data as labeled data and unlabeled data; The fourth item is to automatically identify the data field type of the training data; The fifth item is to fill missing values in the training data; Item 6: Parse the initial time field in the training data, obtain and add a new time field, and delete the initial time field; Item 7: Automatically identify non-numeric data in the training data and perform hash processing on the non-numeric data.
20. The device according to claim 16, wherein: The machine learning model training module is specifically used for: Sampling the pre-processed training data; Performing pre-feature selection on the training data after the sampling to obtain basic features; Performing feature derivation on the basic feature to obtain a derived feature; A training sample is generated according to the basic features and the derived features.
21. The device according to claim 20, wherein: The machine learning model training module is specifically used for: Extracting all attribute information included in the training data after the sampling, wherein the attribute information is used to form features; Obtaining a feature importance value of each of the attribute information; According to the feature importance value, basic features are obtained.
22. The device according to claim 21, wherein The machine learning model training module is specifically used for: Sorting all the feature importance values to obtain a sorting result; According to the sorting result, a first predetermined amount of attribute information is obtained as basic features.
23. The device according to claim 20, wherein: The machine learning model training module is specifically used for: The basic features are statistically calculated and / or feature combined using the set feature generation rules to obtain derived features.
24. The device according to claim 20, wherein: The machine learning model training module is specifically used for: performing post-feature selection on the basic features and the derived features; Generate training samples based on the features obtained by performing the post-feature selection.
25. The device according to claim 24, wherein: The machine learning model training module is specifically used for: Obtaining a feature importance value of each of the basic features and each of the derived features; Sorting all the feature importance values to obtain a sorting result; According to the sorting result, a second predetermined number of features are obtained as features required for generating training samples.
26. The device according to claim 16, wherein: The device also includes a model training scheme display module, and the model training scheme display module is used to: Based on the trained machine learning model, obtain a model training scheme; Visually displaying the model training scheme; The model training scheme includes any one or more of the algorithm, hyperparameters, effects of the machine learning model, and feature information used to train the machine learning model; The feature information includes any one or more of the number of features, the feature generation method, and the feature importance analysis result.
27. The device according to claim 26, wherein: The machine learning model training module is specifically used for: Retrain the machine learning model based on the preview results displayed visually.
28. The apparatus of claim 16, wherein: The configuration interface includes configuration items for selecting fields in the prediction results and / or configuration items for simulating the on / off status of the real-time prediction service.
29. The device according to claim 16, wherein: The data prediction module includes a real-time prediction unit, and the real-time prediction unit is used to: According to the operation of configuring the real-time prediction service, a configuration interface for configuring the real-time prediction service is provided; Receiving a prediction service request including the prediction data through the API address set in the configuration interface; In response to the received prediction service request, the selected machine learning model is used to obtain a prediction result for the prediction data, and the prediction result is sent through the API address.
30. The device according to claim 29, wherein The configuration interface includes configuration items for selecting model selection rules of an online machine learning model from trained machine learning models and / or configuration items for application resources.
31. An apparatus comprising at least one computing device and at least one storage device, wherein: The at least one storage device is used to store instructions, and the instructions are used to control the at least one computing device to execute the method according to any one of claims 1 to 15.
32. A computer-readable storage medium, wherein: A computer program is stored thereon, which implements the method according to any one of claims 1 to 15 when executed by a processor.
Citation Information
Cited By
Method and apparatus for executing automatic machine learning process, and device
WO2021208685A1
