Machine learning model comparison method and device

By determining and displaying the target feature indicators of the machine learning model and generating a comparison report, it solves the problem that users with less modeling experience find it difficult to quickly compare the model, improves the accuracy and efficiency of model selection, and enhances the applicability of financial service risk prediction .

CN111861488BActive Publication Date: 2024-11-05INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010678538.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-15
Publication Date
2024-11-05
Estimated Expiration
2040-07-15

AI Technical Summary

Technical Problem

The lack of a method that can help users with less modeling experience compare machine learning models intuitively and quickly, resulting in low accuracy and efficiency in user selection of machine learning models, affecting the applicability of model applications, especially in finance. Service risk forecasting and other fields.

Method used

By determining multiple target feature indicators of the target machine learning model and generating comparison result information based on these feature indicators, a graphical comparison report is formed to help users intuitively understand model differences and improve the accuracy and efficiency of selecting models.

Benefits of technology

It improves the intuitiveness and efficiency of the comparison results of machine learning models, enhances the accuracy and convenience of user selection models, and thus improves the applicability and effectiveness of the model in areas such as financial service risk prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111861488B_ABST
    Figure CN111861488B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a machine learning model comparison method and device, the method comprising: determining multiple target feature indicators of a target machine learning model based on historical version data and current version data of a target machine learning model belonging to the same type; obtaining and outputting comparison result information showing that each target feature indicator corresponds to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model. The present application can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, can effectively improve the accuracy, convenience and efficiency of the user's selection of machine learning models, and can further effectively improve the accuracy and effectiveness of the application of the selected machine learning model to predict things such as financial service risk prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and specifically to a method and device for comparing machine learning models. Background Art

[0002] With the development of big data and artificial intelligence, machine learning technology has been increasingly widely used. In machine learning, a large amount of historical sample data can be used to train the model, so that the trained model can give prediction results for new sample data. The effects of models trained with different parameters and data using the same algorithm vary greatly. In order to help users choose machine learning models, some indicators are provided to evaluate the prediction effect of the trained model, such as AUC (Area under curve), accuracy, precision, etc., and the data are combined to form evaluation reports for each model.

[0003] At present, due to the large number of evaluation indicators of various algorithms, the standards vary greatly, and the evaluation indicators of models trained by different data will carry the characteristics of the training data. Users need to combine data analysis to change whether the evaluation indicators are reasonable. For models trained by data with different characteristics, each indicator has different descriptive capabilities for the model effect. For example, the ratio of positive and negative samples in the binary classification has a great impact on the indicators of the final model. Experienced modelers are required to quickly judge the gap between different model evaluation reports. In addition, although users can directly compare the indicator data of the model, these data are not intuitive enough, and it is time-consuming and labor-intensive to compare item by item, lack of explanation, and is not conducive to users understanding the gap between different models. If there are many trained models, a lot of repetitive work will be added, reducing work efficiency. Although users can perform some statistical analysis on the evaluation report, these analyses require proficiency in machine learning technology and related knowledge accumulation to complete. Therefore, the existing technology lacks a way to help users with less modeling experience to intuitively and quickly compare machine learning models, which will affect the accuracy of user selection of machine learning models, and then lead to the accuracy and effectiveness of subsequent model applications (such as financial service risk prediction). Summary of the invention

[0004] In response to the problems in the prior art, the present application provides a machine learning model comparison method and device, which can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and can effectively improve the accuracy, convenience and efficiency of users in selecting machine learning models, thereby effectively improving the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0005] In order to solve the above technical problems, this application provides the following technical solutions:

[0006] In a first aspect, the present application provides a machine learning model comparison method, comprising:

[0007] Determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type;

[0008] Obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0009] Furthermore, before determining a plurality of characteristic indicators of the target machine learning model according to the historical version data and the current version data of the target machine learning model belonging to the same type, the method further includes:

[0010] Receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0011] Furthermore, before determining a plurality of characteristic indicators of the target machine learning model according to the historical version data and the current version data of the target machine learning model belonging to the same type, the method further includes:

[0012] Monitoring the model training process of the target machine learning model in real time;

[0013] When or after it is detected that the current model training process of the target machine learning model is completed, a version comparison request for the target machine learning model is generated, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0014] Furthermore, the determining of multiple target feature indicators of the target machine learning model based on the historical version data and the current version data of the target machine learning model belonging to the same type includes:

[0015] Extracting the corresponding model feature indicators and training data feature indicators from the historical version data and the current version data of the target machine learning model respectively;

[0016] Deduplication is performed on the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and deduplication is performed on the training data feature indicators corresponding to the historical version data and the current version data, to obtain multiple feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators;

[0017] The multiple characteristic indicators of the target machine learning model are screened to obtain multiple target characteristic indicators of the target machine learning model.

[0018] Furthermore, the screening of the multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model includes:

[0019] Obtaining a weight value corresponding to each of the training data feature indicators among a plurality of feature indicators of the target machine learning model;

[0020] Based on the weight values ​​corresponding to each of the training data feature indicators, each of the training data feature indicators is screened among the multiple feature indicators of the target machine learning model.

[0021] Furthermore, the screening of the multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model includes:

[0022] Outputting and displaying the model characteristic index and the training data characteristic index among the multiple characteristic indexes of the target machine learning model;

[0023] According to the currently received indicator screening instruction, multiple characteristic indicators of the target machine learning model are screened to obtain multiple target characteristic indicators of the target machine learning model.

[0024] Furthermore, before obtaining and outputting the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, the method further includes:

[0025] Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators;

[0026] And, according to the identification of each of the model feature indicators, each of the multiple target feature indicators of the target machine learning model is sorted.

[0027] Furthermore, the obtaining and outputting of the comparison result information of each of the target feature indicators corresponding to the historical version data and the current version data of the target machine learning model includes:

[0028] Based on a preset indicator comparison rule, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is respectively obtained, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively;

[0029] If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator;

[0030] Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report;

[0031] The comparison report is output and graphically displayed.

[0032] In a second aspect, the present application provides a machine learning model comparison device, comprising:

[0033] An indicator determination module, used to determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type;

[0034] The indicator comparison module is used to obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0035] Furthermore, it also includes:

[0036] The first request acquisition module is used to receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0037] Furthermore, it also includes:

[0038] A model training monitoring module, used to monitor the model training process of the target machine learning model in real time;

[0039] The second request acquisition module is used to generate a version comparison request for the target machine learning model when or after it is detected that the current model training process of the target machine learning model is completed, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0040] Furthermore, the indicator determination module includes:

[0041] An indicator extraction unit, used to extract the corresponding model feature indicators and training data feature indicators from the historical version data and the current version data of the target machine learning model respectively;

[0042] An indicator deduplication unit, used to perform deduplication processing on the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and to perform deduplication processing on the training data feature indicators corresponding to the historical version data and the current version data, to obtain a plurality of feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators;

[0043] An indicator screening unit is used to screen multiple feature indicators of the target machine learning model to obtain multiple target feature indicators of the target machine learning model.

[0044] Furthermore, the indicator screening unit is used to perform the following:

[0045] Obtaining a weight value corresponding to each of the training data feature indicators among a plurality of feature indicators of the target machine learning model;

[0046] Based on the weight values ​​corresponding to each of the training data feature indicators, each of the training data feature indicators is screened among the multiple feature indicators of the target machine learning model.

[0047] Furthermore, the indicator screening unit is used to perform the following:

[0048] Outputting and displaying the model characteristic index and the training data characteristic index among the multiple characteristic indexes of the target machine learning model;

[0049] According to the currently received indicator screening instruction, multiple characteristic indicators of the target machine learning model are screened to obtain multiple target characteristic indicators of the target machine learning model.

[0050] Furthermore, it also includes: an indicator sorting module, which is used to perform the following:

[0051] Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators;

[0052] And, according to the identification of each of the model feature indicators, each of the multiple target feature indicators of the target machine learning model is sorted.

[0053] Furthermore, the indicator comparison module is used to perform the following:

[0054] Based on a preset indicator comparison rule, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is respectively obtained, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively;

[0055] If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator;

[0056] Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report;

[0057] The comparison report is output and graphically displayed.

[0058] In a third aspect, the present application provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the machine learning model comparison method when executing the program.

[0059] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the machine learning model comparison method when executed by a processor.

[0060] It can be seen from the above technical scheme that the present application provides a machine learning model comparison method and device, the method comprising: determining multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type; obtaining and outputting comparison result information showing that each of the target feature indicators corresponds to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform target thing risk prediction based on the risk prediction model, which can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the comparison process of the machine learning model is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of users' selection of machine learning models, so as to help users with less modeling experience to intuitively and quickly compare machine learning models, thereby effectively improving the accuracy and effectiveness of applying the selected machine learning model to predict things such as financial service risk prediction. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0062] Figure 1 It is a flow chart of the machine learning model comparison method in the embodiment of the present application.

[0063] Figure 2 It is a flowchart of the machine learning model comparison method including steps 300 to 500 in an embodiment of the present application.

[0064] Figure 3 It is a flowchart of the machine learning model comparison method including step 010 in an embodiment of the present application.

[0065] Figure 4 It is a flowchart of the machine learning model comparison method including step 020 and step 030 in an embodiment of the present application.

[0066] Figure 5 It is a specific flow chart of step 100 in the machine learning model comparison method in the embodiment of the present application.

[0067] Figure 6 It is a first specific flow chart of step 130 in the machine learning model comparison method in the embodiment of the present application.

[0068] Figure 7 It is a second specific flow chart of step 130 in the machine learning model comparison method in the embodiment of the present application.

[0069] Figure 8 It is a flow chart of the machine learning model comparison method including step 040 and step 050 in an embodiment of the present application.

[0070] Fig. 9 It is a specific flow chart of step 200 in the machine learning model comparison method in the embodiment of the present application.

[0071] Fig.10 This is a first structural diagram of the machine learning model comparison device in the embodiment of the present application.

[0072] Fig.11 This is a second structural diagram of the machine learning model comparison device in the embodiment of the present application.

[0073] Fig.12 This is a third structural diagram of the machine learning model comparison device in the embodiment of the present application.

[0074] Fig.13 It is a structural diagram of the indicator determination module 10 in the machine learning model comparison device in the embodiment of the present application.

[0075] Fig.14 This is a fourth structural diagram of the machine learning model comparison device in the embodiment of the present application.

[0076] Fig.15 It is a structural diagram of the machine learning model comparison system provided by the application example of this application.

[0077] Fig.16 It is a flowchart of the machine learning model comparison method provided in the application example of this application.

[0078] Fig.17 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0079] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0080] Considering that the prior art lacks a method that can help users with less modeling experience to compare machine learning models intuitively and quickly, the present application provides a machine learning model comparison method, a machine learning model comparison device, an electronic device and a computer-readable storage medium, which determine multiple target feature indicators of the target machine learning model based on the historical version data and the current version data of the target machine learning model belonging to the same type; obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model, which can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the comparison process of the machine learning model is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of users in selecting machine learning models, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, and thereby effectively improve the accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0081] The details are described in detail through the following multiple embodiments.

[0082] In order to solve the problem that the prior art lacks a method that can help users with less modeling experience to intuitively and quickly compare machine learning models, the present application provides an embodiment of a machine learning model comparison method, see Figure 1 , the machine learning model comparison method specifically includes the following contents:

[0083] Step 100: Determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type.

[0084] In step 100, target machine learning models of the same type refer to machine learning models of the same type trained using different training data, and the historical version data and the current version data include model parameters of the machine learning model itself and training data used to train the machine learning model.

[0085] Among them, the current version data refers to the version data obtained closer to the current time than the historical version data. That is to say, the current version data is only relative to the historical version data with an earlier acquisition time. In essence, the historical version data and current version data mentioned in one or more embodiments of the present application can be understood as two sets of historical data with different acquisition times.

[0086] It is understandable that the historical version data and current version data of the target machine learning model may also exist in the form of an initial evaluation report, and the initial evaluation report contains the correspondence between each target characteristic index and each characteristic value. Based on this, in step 100, if the historical version data and current version data of the target machine learning model have not yet formed an initial evaluation report, the corresponding target characteristic index is extracted from the historical version data and current version data of the target machine learning model. If the historical version data and current version data of the target machine learning model exist in the form of an initial evaluation report, the corresponding target characteristic index is directly extracted from the initial evaluation report.

[0087] Step 200: Obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0088] In step 200, examples of comparison result information of each of the target feature indicators corresponding to the historical version data and the current version data of the target machine learning model can be shown in Table 1.

[0089] Table 1

[0090]

[0091]

[0092] In Table 1, indicator A is a target feature indicator that exists in both the historical version data and the current version data of the target machine learning model, and indicator A corresponds to the comparison result information of the historical version data and the current version data of the target machine learning model as comparison result information A1 and comparison result information A2, respectively. Indicator B is a target feature indicator that only corresponds to the historical version data of the target machine learning model, and indicator B corresponds to the comparison result information of the historical version data of the target machine learning model as comparison result information B1. Indicator C is a target feature indicator that only corresponds to the current version data of the target machine learning model, and indicator C corresponds to the comparison result information of the current version data of the target machine learning model as comparison result information C2.

[0093] In addition, in one example, if the target machine learning model is a risk prediction model for predicting financial service risks, then after step 200, see Figure 2 , and also specifically includes the following machine learning model applications:

[0094] Step 300: Receive a model selection instruction sent by a user terminal, wherein the model selection instruction is sent by a user holding the user terminal after selecting one of the historical version data and the current version data as a risk prediction model based on comparison result information of each of the target feature indicators displayed on the output.

[0095] Step 400: Input the user information of the target user in the financial institution currently obtained into the risk prediction model corresponding to the model selection instruction, and use the output of the risk prediction model as the risk prediction result of the financial institution providing financial services to the target user.

[0096] Step 500: Output the risk prediction result of the financial institution providing financial services to the target user.

[0097] It is understandable that the financial institution can effectively improve the security and stability of the operation of the financial institution based on the risk prediction results of the financial services provided by the financial institution to the target users.

[0098] In other words, by applying risk prediction models to predict financial service risks for target users, the accuracy, efficiency and automation of the financial service risk prediction process can be effectively improved, and the manpower and time costs of financial institutions can be effectively reduced, thereby effectively improving the accuracy and efficiency of financial institutions in identifying risky users. For example, the credit risk rating or default risk probability of users or enterprises applying for various types of financial loans of financial institutions, including pre-loan, mid-loan and post-loan, can be quickly and accurately predicted, and the security and stability of the operation of financial institutions can be effectively improved.

[0099] It is understandable that examples of the risk prediction model may be a logistic regression LR model, a generalized linear regression GLM model, a gradient boosted decision tree GBDT model, and a boosted tree XGBoost model, etc. The model is selected according to the actual application scenario.

[0100] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the machine learning model comparison process is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of users' selection of machine learning models, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, and thus effectively improve the applicability, accuracy and effectiveness of using the selected machine learning model for predictions such as financial service risk predictions.

[0101] In order to provide a start-up process of model comparison based on manual triggering, in one embodiment of the machine learning model comparison method provided in the present application, see Figure 3, the machine learning model comparison method further specifically includes the following contents before step 100:

[0102] Step 010: Receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0103] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can start the machine learning model comparison process by manual triggering, thereby effectively improving the effectiveness and reliability of determining multiple characteristic indicators of the target machine learning model, and further improving the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0104] In order to provide a startup process of model comparison based on automatic triggering, in one embodiment of the machine learning model comparison method provided in the present application, see Figure 4 , the machine learning model comparison method further specifically includes the following contents before step 100:

[0105] Step 020: Monitor the model training process of the target machine learning model in real time.

[0106] Step 030: When or after it is detected that the current model training process of the target machine learning model is completed, a version comparison request for the target machine learning model is generated, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0107] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can start the machine learning model comparison process by automatically triggering, thereby effectively improving the timeliness, effectiveness and intelligence of determining multiple characteristic indicators of the target machine learning model, and further improving the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0108] In order to provide a preferred method for selecting indicators, in one embodiment of the machine learning model comparison method provided in this application, see Figure 5 , step 100 of the machine learning model comparison method specifically includes the following contents:

[0109] Step 110: Extract corresponding model feature indicators and training data feature indicators from the historical version data and current version data of the target machine learning model respectively.

[0110] Step 120: De-duplicate the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and de-duplicate the training data feature indicators corresponding to the historical version data and the current version data, to obtain multiple feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators.

[0111] Step 130: Screen multiple feature indicators of the target machine learning model to obtain multiple target feature indicators of the target machine learning model.

[0112] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can effectively improve the effectiveness and reliability of determining the selection of multiple target feature indicators of the target machine learning model, and thus can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0113] In order to provide an automatic screening method for training data feature indicators, in one embodiment of the machine learning model comparison method provided in this application, see Figure 6 , step 130 of the machine learning model comparison method specifically includes the following contents:

[0114] Step 131: Obtain the weight value corresponding to each of the training data feature indicators among the multiple feature indicators of the target machine learning model.

[0115] Step 132: Based on the weight values ​​corresponding to each of the training data feature indicators, each of the training data feature indicators is screened from the multiple feature indicators of the target machine learning model.

[0116] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can effectively improve the efficiency, reliability and accuracy of feature indicator screening, and thus can effectively improve the efficiency, reliability and accuracy of obtaining the comparison result information of the historical version data and the current version data of the target machine learning model corresponding to each of the target feature indicators, and can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0117] In order to provide an automatic screening method for training data feature indicators, in one embodiment of the machine learning model comparison method provided in this application, see Figure 7 , step 130 of the machine learning model comparison method specifically includes the following contents:

[0118] Step 133: Output and display the model feature indicators and training data feature indicators among the multiple feature indicators of the target machine learning model.

[0119] Step 134: Filter multiple characteristic indicators of the target machine learning model according to the currently received indicator filtering instruction to obtain multiple target characteristic indicators of the target machine learning model.

[0120] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can effectively improve the applicability and accuracy of feature indicator screening, and thus can effectively improve the reliability and accuracy of obtaining the comparison result information of the historical version data and the current version data of the target machine learning model corresponding to each of the target feature indicators, and can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0121] In order to provide a preferred method for ranking indicators, in one embodiment of the machine learning model comparison method provided in this application, see Figure 8 , the machine learning model comparison method further specifically includes the following contents after step 100 and before step 200:

[0122] Step 040: Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators.

[0123] Step 050: Sort each of the model feature indicators among the multiple target feature indicators of the target machine learning model according to the identification of each of the model feature indicators.

[0124] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application can more intuitively demonstrate the different impacts of different indicators on the model prediction results, thereby effectively improving the accuracy, convenience and efficiency of users in selecting machine learning models.

[0125] In order to provide a preferred method for obtaining and displaying comparison result information, in one embodiment of the machine learning model comparison method provided in this application, see Fig. 9 , step 200 of the machine learning model comparison method specifically includes the following contents:

[0126] Step 210: Based on preset indicator comparison rules, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is obtained respectively, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively.

[0127] Step 220: If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator.

[0128] Step 230: Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report.

[0129] Step 240: Output the comparison report and display the comparison report graphically.

[0130] From the above description, it can be seen that the machine learning model comparison method provided in the embodiment of the present application uses a visual way to display the comparison results of the evaluation report, and displays in detail the differences between different evaluation result images, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, thereby effectively improving the accuracy and effectiveness of applying the selected machine learning model to predict things such as financial service risk prediction.

[0131] From the software level, in order to solve the problem that the prior art lacks a method that can help users with less modeling experience to intuitively and quickly compare machine learning models, the present application provides an embodiment of a machine learning model comparison device for implementing all or part of the content of the machine learning model comparison method, see Fig.10 , the machine learning model comparison device specifically includes the following contents:

[0132] The indicator determination module 10 is used to determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type.

[0133] The indicator comparison module 20 is used to obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0134] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the comparison process of the machine learning model is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of the user's selection of machine learning models, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, and thus effectively improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0135] In order to provide a start-up process of model comparison based on manual triggering, in one embodiment of the machine learning model comparison device provided in the present application, see Fig.11 , the machine learning model comparison device also specifically includes the following contents:

[0136] The first request acquisition module 01 is used to receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0137] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can start the machine learning model comparison process by manual triggering, thereby effectively improving the effectiveness and reliability of determining multiple characteristic indicators of the target machine learning model, and further improving the applicability accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0138] In order to provide a startup process of model comparison based on automatic triggering, in one embodiment of the machine learning model comparison device provided in the present application, see Fig.12 , the machine learning model comparison device also specifically includes the following contents:

[0139] The model training monitoring module 02 is used to monitor the model training process of the target machine learning model in real time.

[0140] The second request acquisition module 03 is used to generate a version comparison request for the target machine learning model when or after it is detected that the current model training process of the target machine learning model is completed, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

[0141] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can start the machine learning model comparison process by automatically triggering, thereby effectively improving the timeliness, effectiveness and intelligence of determining multiple characteristic indicators of the target machine learning model, and further improving the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0142] In order to provide a preferred method for selecting indicators, in one embodiment of the machine learning model comparison device provided in this application, see Fig.13 The index determination module 10 of the machine learning model comparison device specifically includes the following contents:

[0143] The indicator extraction unit 11 is used to extract the corresponding model feature indicators and training data feature indicators from the historical version data and the current version data of the target machine learning model respectively.

[0144] The indicator deduplication unit 12 is used to deduplicate the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and to deduplicate the training data feature indicators corresponding to the historical version data and the current version data, so as to obtain multiple feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators.

[0145] The indicator screening unit 13 is used to screen multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model.

[0146] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can effectively improve the effectiveness and reliability of determining the selection of multiple target feature indicators of the target machine learning model, and thus can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0147] In order to provide an automatic screening method for training data feature indicators, in one embodiment of the machine learning model comparison device provided in the present application, the indicator screening unit 13 of the machine learning model comparison device is specifically used to perform the following contents:

[0148] Step 131: Obtain the weight value corresponding to each of the training data feature indicators among the multiple feature indicators of the target machine learning model.

[0149] Step 132: Based on the weight values ​​corresponding to each of the training data feature indicators, each of the training data feature indicators is screened from the multiple feature indicators of the target machine learning model.

[0150] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can effectively improve the efficiency, reliability and accuracy of feature indicator screening, and thus can effectively improve the efficiency, reliability and accuracy of obtaining the comparison result information of the historical version data and the current version data of the target machine learning model corresponding to each of the target feature indicators, and can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0151] In order to provide an automatic screening method for training data feature indicators, in one embodiment of the machine learning model comparison device provided in the present application, the indicator screening unit 13 of the machine learning model comparison device is specifically used to perform the following contents:

[0152] Step 133: Output and display the model feature indicators and training data feature indicators among the multiple feature indicators of the target machine learning model.

[0153] Step 134: Filter multiple characteristic indicators of the target machine learning model according to the currently received indicator filtering instruction to obtain multiple target characteristic indicators of the target machine learning model.

[0154] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can effectively improve the applicability and accuracy of feature indicator screening, and thus can effectively improve the reliability and accuracy of obtaining the comparison result information of the historical version data and the current version data of the target machine learning model corresponding to each of the target feature indicators, and can further improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0155] In order to provide a preferred method for ranking indicators, in one embodiment of the machine learning model comparison device provided in this application, see Fig.14 , the machine learning model comparison device further specifically includes the following contents:

[0156] The indicator sorting module 04 is used to perform the following:

[0157] Step 040: Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators.

[0158] Step 050: Sort each of the model feature indicators among the multiple target feature indicators of the target machine learning model according to the identification of each of the model feature indicators.

[0159] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application can more intuitively demonstrate the different impacts of different indicators on the model prediction results, thereby effectively improving the accuracy, convenience and efficiency of users in selecting machine learning models.

[0160] In order to provide a preferred method for obtaining and displaying comparison result information, in one embodiment of the machine learning model comparison device provided in the present application, the indicator comparison module 20 of the machine learning model comparison device is specifically used to perform the following contents:

[0161] Step 210: Based on preset indicator comparison rules, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is obtained respectively, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively.

[0162] Step 220: If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator.

[0163] Step 230: Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report.

[0164] Step 240: Output the comparison report and display the comparison report graphically.

[0165] From the above description, it can be seen that the machine learning model comparison device provided in the embodiment of the present application uses a visual method to display the comparison results of the evaluation report, and displays in detail the differences between different evaluation result images, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, thereby effectively improving the accuracy and effectiveness of applying the selected machine learning model to predict things such as financial service risk prediction.

[0166] To further illustrate the present solution, the present application also provides a specific application example of the machine learning model comparison method using a machine learning model comparison system, which comprehensively compares the evaluation indicators of each algorithm by combining the characteristics of the training data such as the amount of data, the ratio of positive and negative samples, the number of abnormal samples, and the advantages and disadvantages of each indicator's description of the model effect. It can help users with less modeling experience to intuitively and quickly understand the evaluation report. It overcomes the defect in the prior art that it is difficult to effectively compare the different points of each indicator of the machine learning evaluation report.

[0167] See also Fig.15 , the machine learning model comparison system includes the following components:

[0168] Request acceptance module 1, data acquisition module 2, grouping statistics module 3, comparison module 4 and display module 5.

[0169] Among them, the request acceptance module 1 serves as the input point of the integration system, receives the request for report comparison, and simply processes the request parameters and converts them into the parameters required for the system to query the evaluation report data.

[0170] The data acquisition module 2 can read the call parameters, report data processing script, report storage address or database corresponding unique ID, report return format, whether to encrypt, encryption algorithm, etc.

[0171] The grouping statistics module 3 performs grouping statistics on the evaluation report data.

[0172] The comparison module 4 compares the evaluation reports in a specific format. The comparison rules can be customized by the script, or the system can automatically select the comparison rules (graphic comparison rules can be set, such as the processing when the AUC areas are the same, and the version can be automatically switched according to the rules to select the optimal version).

[0173] The display module 5 is a graphical display module, which is responsible for converting data into graphics to display the comparative data of the evaluation report.

[0174] See also Fig.16 , the application examples of the machine learning model comparison method specifically include the following contents:

[0175] S1: Accepting comparison display request: receiving a request for a comparison evaluation report and parsing parameters in the request.

[0176] S2: Obtaining evaluation report information: Obtaining evaluation prediction data of different models according to the received evaluation report comparison display request, including various evaluation indicators of the model.

[0177] S3: Group statistics: Process all the above data, mainly for group statistics, etc.

[0178] S4: Compare the evaluation reports item by item: Compare each indicator of different models one by one to obtain comparative information. These indicators include not only the indicators generated by the algorithm, but also the information obtained through graphical display after drawing (such as the area under the curve, the segmented slope, etc.). Among them, the comparison results can be sorted according to the weights of different indicators, and the threshold of image comparison can also be selected.

[0179] S5: Visual display of results: The comparison results are displayed through a graphical interface. The comparison indicators to be displayed can be selected and the differences and similarities can be highlighted. Different image indicators can be rendered differently to distinguish them.

[0180] The specific instructions are as follows:

[0181] (I) The specific implementation content of S1 executed by the request receiving module 1 is as follows:

[0182] Receive comparison requests for different historical versions of model reports. Such as evaluation reports of models generated based on training of different data sets. The report contains multiple data features, such as: the positive and negative ratios and the total number of samples in classified samples, the distribution of continuous variables and data characteristics such as outliers, various features of the model and feature weights, etc. Whether it is automatically triggering a report comparison between the model and the historical model when a new machine learning algorithm model is trained, or comparing the evaluation report of the trained historical model afterwards, a request for comparison of the evaluation report will be received first. Here, as an example, the explanation request can be a manual instruction from the user, or a request automatically triggered due to the completion of model training, etc.

[0183] (II) The specific implementation contents of obtaining data module 2 executing S2 are as follows:

[0184] According to the comparison request, the model parameters of the specified model are obtained, and the model parameters include each feature and each related indicator in the model. According to the request, the model parameters and the features of the training data set are analyzed and compared to see if they are the same. If the model parameters are the same but the training data sets are different, the features of the training data sets should be statistically analyzed, including the ratio of classified positive and negative samples, continuous data distribution and outliers. In this step, the weight value of each feature can be obtained according to the data characteristics. Furthermore, the model parameters that you want to display can also be selected independently through the set human-computer interaction interface, and the interface display content includes indicator options. If the request is sent automatically, the system automatically filters the model parameters by weight value.

[0185] (III) The specific implementation contents of the grouping statistics module 3 executing S3 are as follows:

[0186] The indicators in the obtained model parameters are grouped and counted according to their corresponding indicator names.

[0187] Since the model may have many indicators, especially if the eigenvalues ​​are included, the feature scale is huge (for example, often reaching tens of millions of feature dimensions). In order to more intuitively show the different effects of different indicators on the model prediction results, in this step, all indicators in the model parameters can be sorted and screened according to the set weight values, thereby improving the comparison efficiency.

[0188] (IV) The specific implementation contents of S4 executed by comparison module 4 are as follows:

[0189] A comparative analysis is performed for each indicator to obtain the statistical information of each indicator. For example, if the positive and negative sample ratio of a logistic regression model is greater than 1000, the weight of the positive sample accuracy index of the evaluation result is reduced by 0.1 accordingly. In this step, the data included under each indicator name can be counted to obtain the statistical information of each indicator of the model. The statistical information includes the image results (area, slope, interval, etc.) of the evaluation results that cannot be displayed by numbers, and the result graph formed according to the data. Among them, the distribution information of the weight values ​​of each feature under the same indicator name can indicate how the weight values ​​(all weight values ​​or non-zero weight values) of each feature under the same feature name are distributed, thereby helping users understand the online performance of different models.

[0190] (V) The specific implementation content of the display module 5 executing S5 is as follows:

[0191] The comparison index name and the corresponding statistical information of the index are displayed through a graphical interface. Each feature is displayed in the order of its importance, and a part of the features among the features are highlighted, including important features corresponding to high importance, unimportant features corresponding to low importance, and abnormal features corresponding to abnormal importance. Different models can be scored by the following indicators, AUC for binary classification and MSE for regression, accuracy, confusion matrix, ROC curve, response rate and capture rate, etc. Obtain the corresponding score according to the comparison results of each indicator; add the scores according to the weights of each indicator; average the added indicators to obtain the final score of the current model; recommend the highest score or the top few models among the models to the user. The weight can be designed by the user or a comprehensive weight calculated by historical model performance.

[0192] From the above description, it can be seen that the machine learning model comparison method provided by the application example of this application effectively realizes the effect comparison of different versions of machine learning algorithms; compares the indicators of images generated based on data; uses a visual way to display the comparison results of the evaluation report, and displays the differences between different evaluation result images in detail. You can select the comparison items independently, and automatically select the applied algorithm based on the comparison results.

[0193] From a hardware perspective, in order to solve the problem that the prior art lacks a method that can help users with less modeling experience to intuitively and quickly compare machine learning models, the present application provides an embodiment of an electronic device for implementing all or part of the content in the machine learning model comparison method, and the electronic device specifically includes the following content:

[0194] Fig.17FIG. 9 is a schematic block diagram of the system structure of the electronic device 9600 according to an embodiment of the present application. Fig.17 As shown, the electronic device 9600 may include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that Fig.17 is exemplary; other types of structures may also be used to supplement or replace this structure to implement telecommunication functions or other functions.

[0195] In one embodiment, the machine learning model comparison function may be integrated into a central processing unit, wherein the central processing unit may be configured to perform the following control:

[0196] Step 100: Determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type.

[0197] In step 100, target machine learning models of the same type refer to machine learning models of the same type trained using different training data, and the historical version data and the current version data include model parameters of the machine learning model itself and training data used to train the machine learning model.

[0198] Among them, the current version data refers to the version data obtained closer to the current time than the historical version data. That is to say, the current version data is only relative to the historical version data with an earlier acquisition time. In essence, the historical version data and current version data mentioned in one or more embodiments of the present application can be understood as two sets of historical data with different acquisition times.

[0199] It is understandable that the historical version data and current version data of the target machine learning model may also exist in the form of an initial evaluation report, and the initial evaluation report contains the correspondence between each target characteristic index and each characteristic value. Based on this, in step 100, if the historical version data and current version data of the target machine learning model have not yet formed an initial evaluation report, the corresponding target characteristic index is extracted from the historical version data and current version data of the target machine learning model. If the historical version data and current version data of the target machine learning model exist in the form of an initial evaluation report, the corresponding target characteristic index is directly extracted from the initial evaluation report.

[0200] Step 200: Obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0201] In addition, in an example, if the target machine learning model is a risk prediction model for predicting financial service risks, then after step 200, the following machine learning model application content is specifically included:

[0202] Step 300: Receive a model selection instruction sent by a user terminal, wherein the model selection instruction is sent by a user holding the user terminal after selecting one of the historical version data and the current version data as a risk prediction model based on comparison result information of each of the target feature indicators displayed on the output.

[0203] Step 400: Input the user information of the target user in the financial institution currently obtained into the risk prediction model corresponding to the model selection instruction, and use the output of the risk prediction model as the risk prediction result of the financial institution providing financial services to the target user.

[0204] Step 500: Output the risk prediction result of the financial institution providing financial services to the target user.

[0205] It is understandable that the financial institution can effectively improve the security and stability of the operation of the financial institution based on the risk prediction results of the financial services provided by the financial institution to the target users.

[0206] In other words, by applying risk prediction models to predict financial service risks for target users, the accuracy, efficiency and automation of the financial service risk prediction process can be effectively improved, and the manpower and time costs of financial institutions can be effectively reduced, thereby effectively improving the accuracy and efficiency of financial institutions in identifying risky users. For example, the credit risk rating or default risk probability of users or enterprises applying for various types of financial loans of financial institutions, including pre-loan, mid-loan and post-loan, can be quickly and accurately predicted, and the security and stability of the operation of financial institutions can be effectively improved.

[0207] It is understandable that examples of the risk prediction model may be a logistic regression LR model, a generalized linear regression GLM model, a gradient boosted decision tree GBDT model, and a boosted tree XGBoost model, etc. The model is selected according to the actual application scenario.

[0208] From the above description, it can be seen that the electronic device provided in the embodiment of the present application can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the comparison process of the machine learning model is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of the user's selection of machine learning models, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, and thus effectively improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

[0209] In another embodiment, the machine learning model comparison device can be configured separately from the central processing unit 9100. For example, the machine learning model comparison device can be configured as a chip connected to the central processing unit 9100, and the machine learning model comparison function can be realized through the control of the central processing unit.

[0210] like Fig.17 As shown, the electronic device 9600 may also include: a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It is worth noting that the electronic device 9600 does not necessarily have to include Fig.17 In addition, the electronic device 9600 may also include Fig.17 For components not shown, reference may be made to the prior art.

[0211] like Fig.17 As shown, the central processing unit 9100 is sometimes also referred to as a controller or an operation control, and may include a microprocessor or other processor device and / or logic device. The central processing unit 9100 receives input and controls the operation of various components of the electronic device 9600.

[0212] The memory 9140 may be, for example, one or more of a cache, a flash memory, a hard drive, a removable medium, a volatile memory, a non-volatile memory or other suitable devices. The above-mentioned information related to the failure may be stored, and a program for executing the relevant information may also be stored. The CPU 9100 may execute the program stored in the memory 9140 to implement information storage or processing, etc.

[0213] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to provide power to the electronic device 9600. The display 9160 is used to display display objects such as images and texts. The display may be, for example, an LCD display, but is not limited thereto.

[0214] The memory 9140 may be a solid-state memory, such as a read-only memory (ROM), a random access memory (RAM), a SIM card, etc. It may also be a memory that saves information even when the power is off, can be selectively erased, and is provided with more data, examples of which are sometimes referred to as EPROMs, etc. The memory 9140 may also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 may include an application / function storage unit 9142, which is used to store application programs and function programs or processes for executing the operation of the electronic device 9600 through the central processor 9100.

[0215] The memory 9140 may also include a data storage unit 9143 for storing data, such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. The driver storage unit 9144 of the memory 9140 may include various drivers for communication functions of the electronic device and / or for executing other functions of the electronic device (such as messaging applications, address book applications, etc.).

[0216] The communication module 9110 is a transmitter / receiver 9110 that sends and receives signals via an antenna 9111. The communication module (transmitter / receiver) 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, which may be the same as the case of a conventional mobile communication terminal.

[0217] Based on different communication technologies, multiple communication modules 9110 may be provided in the same electronic device, such as a cellular network module, a Bluetooth module and / or a wireless LAN module, etc. The communication module (transmitter / receiver) 9110 is also coupled to a speaker 9131 and a microphone 9132 via an audio processor 9130 to provide an audio output via the speaker 9131 and receive an audio input from the microphone 9132, thereby realizing a common telecommunication function. The audio processor 9130 may include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, so that recording can be performed on the local machine through the microphone 9132, and the sound stored on the local machine can be played through the speaker 9131.

[0218] The embodiments of the present application also provide a computer-readable storage medium capable of implementing all the steps in the machine learning model comparison method in the above embodiments. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, all the steps of the machine learning model comparison method in the above embodiments are implemented by the execution subject being a server or a client. For example, when the processor executes the computer program, the following steps are implemented:

[0219] Step 100: Determine multiple target feature indicators of the target machine learning model based on historical version data and current version data of the target machine learning model belonging to the same type.

[0220] In step 100, target machine learning models of the same type refer to machine learning models of the same type trained using different training data, and the historical version data and the current version data include model parameters of the machine learning model itself and training data used to train the machine learning model.

[0221] Among them, the current version data refers to the version data obtained closer to the current time than the historical version data. That is to say, the current version data is only relative to the historical version data with an earlier acquisition time. In essence, the historical version data and current version data mentioned in one or more embodiments of the present application can be understood as two sets of historical data with different acquisition times.

[0222] It is understandable that the historical version data and current version data of the target machine learning model may also exist in the form of an initial evaluation report, and the initial evaluation report contains the correspondence between each target characteristic index and each characteristic value. Based on this, in step 100, if the historical version data and current version data of the target machine learning model have not yet formed an initial evaluation report, the corresponding target characteristic index is extracted from the historical version data and current version data of the target machine learning model. If the historical version data and current version data of the target machine learning model exist in the form of an initial evaluation report, the corresponding target characteristic index is directly extracted from the initial evaluation report.

[0223] Step 200: Obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target thing according to the risk prediction model.

[0224] In addition, in an example, if the target machine learning model is a risk prediction model for predicting financial service risks, then after step 200, the following machine learning model application content is specifically included:

[0225] Step 300: Receive a model selection instruction sent by a user terminal, wherein the model selection instruction is sent by a user holding the user terminal after selecting one of the historical version data and the current version data as a risk prediction model based on comparison result information of each of the target feature indicators displayed on the output.

[0226] Step 400: Input the user information of the target user in the financial institution currently obtained into the risk prediction model corresponding to the model selection instruction, and use the output of the risk prediction model as the risk prediction result of the financial institution providing financial services to the target user.

[0227] Step 500: Output the risk prediction result of the financial institution providing financial services to the target user.

[0228] It is understandable that the financial institution can effectively improve the security and stability of the operation of the financial institution based on the risk prediction results of the financial services provided by the financial institution to the target users.

[0229] In other words, by applying risk prediction models to predict financial service risks for target users, the accuracy, efficiency and automation of the financial service risk prediction process can be effectively improved, and the manpower and time costs of financial institutions can be effectively reduced, thereby effectively improving the accuracy and efficiency of financial institutions in identifying risky users. For example, the credit risk rating or default risk probability of users or enterprises applying for various types of financial loans of financial institutions, including pre-loan, mid-loan and post-loan, can be quickly and accurately predicted, and the security and stability of the operation of financial institutions can be effectively improved.

[0230] It is understandable that examples of the risk prediction model may be a logistic regression LR model, a generalized linear regression GLM model, a gradient boosted decision tree GBDT model, and a boosted tree XGBoost model, etc. The model is selected according to the actual application scenario.

[0231] From the above description, it can be seen that the computer-readable storage medium provided in the embodiments of the present application can effectively improve the output intuitiveness and efficiency of the machine learning model comparison results, and the comparison process of the machine learning model is reliable and efficient, which can effectively improve the accuracy, convenience and efficiency of the user's selection of machine learning models, so as to help users with less modeling experience to compare machine learning models intuitively and quickly, and thus effectively improve the applicability, accuracy and effectiveness of using the selected machine learning model to predict things such as financial service risk prediction.

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

[0233] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (apparatus), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to 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.

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

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

[0236] The present invention uses specific embodiments to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A machine learning model comparison method, characterized in that: include: Determine multiple target feature indicators of the target machine learning model according to historical version data and current version data of the target machine learning model belonging to the same type, wherein the target machine learning model is used to predict the credit risk rating or default risk probability of users or enterprises applying for financial loans from financial institutions before, during or after the loan, and the target feature indicator includes at least one of the following: AUC, accuracy, precision; Obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target object according to the risk prediction model; The step of determining multiple target feature indicators of the target machine learning model according to the historical version data and the current version data of the target machine learning model belonging to the same type includes: Extracting the corresponding model feature indicators and training data feature indicators from the historical version data and the current version data of the target machine learning model respectively; Deduplication is performed on the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and deduplication is performed on the training data feature indicators corresponding to the historical version data and the current version data, to obtain multiple feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators; Screening multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model; The screening of the multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model includes: Obtaining a weight value corresponding to each of the training data feature indicators among a plurality of feature indicators of the target machine learning model; Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators; And, sorting each of the model feature indicators among the multiple target feature indicators of the target machine learning model according to the identifier of each of the model feature indicators; Automatically screening model feature indicators by weight values; screening each of the training data feature indicators among multiple feature indicators of the target machine learning model based on the weight values ​​corresponding to each of the training data feature indicators; The obtaining and outputting of the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model includes: Based on a preset indicator comparison rule, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is respectively obtained, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively; If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator; Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report; The comparison report is output and graphically displayed.

2. The machine learning model comparison method according to claim 1, characterized in that: Before determining a plurality of characteristic indicators of the target machine learning model according to the historical version data and the current version data of the target machine learning model belonging to the same type, the method further includes: Receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

3. The machine learning model comparison method according to claim 1, characterized in that: Before determining a plurality of characteristic indicators of the target machine learning model according to the historical version data and the current version data of the target machine learning model belonging to the same type, the method further includes: Monitoring the model training process of the target machine learning model in real time; When or after it is detected that the current model training process of the target machine learning model is completed, a version comparison request for the target machine learning model is generated, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

4. The machine learning model comparison method according to claim 1, characterized in that: The screening of the multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model includes: Outputting and displaying the model characteristic index and the training data characteristic index among the multiple characteristic indexes of the target machine learning model; According to the currently received indicator screening instruction, multiple characteristic indicators of the target machine learning model are screened to obtain multiple target characteristic indicators of the target machine learning model.

5. A machine learning model comparison device, characterized in that: include: An indicator determination module, used to determine multiple target feature indicators of the target machine learning model according to historical version data and current version data of the target machine learning model belonging to the same type, wherein the target machine learning model is used to predict the credit risk rating or default risk probability of users or enterprises applying for financial loans from financial institutions before, during or after the loan, and the target feature indicators include at least one of the following: AUC, accuracy, precision; The indicator determination module comprises: An indicator extraction unit, used to extract the corresponding model feature indicators and training data feature indicators from the historical version data and the current version data of the target machine learning model respectively; An indicator deduplication unit, used to perform deduplication processing on the same indicators in the model feature indicators corresponding to the historical version data and the current version data, and to perform deduplication processing on the training data feature indicators corresponding to the historical version data and the current version data, to obtain a plurality of feature indicators of the target machine learning model composed of the model feature indicators and the training data feature indicators; An indicator screening unit, used to screen multiple characteristic indicators of the target machine learning model to obtain multiple target characteristic indicators of the target machine learning model; The indicator screening unit is specifically used to perform the following: obtaining the weight value corresponding to each of the training data characteristic indicators in the multiple characteristic indicators of the target machine learning model; screening each of the training data characteristic indicators in the multiple characteristic indicators of the target machine learning model based on the weight value corresponding to each of the training data characteristic indicators; The indicator sorting module is used to perform the following: Sort each of the training data feature indicators among the multiple target feature indicators of the target machine learning model according to the weight value corresponding to each of the training data feature indicators; And, sorting each of the model feature indicators among the multiple target feature indicators of the target machine learning model according to the identifier of each of the model feature indicators; An indicator comparison module is used to obtain and output the comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model, so as to select one of the historical version data and the current version data as a risk prediction model based on the comparison result information of each target feature indicator, and perform risk prediction of the target object according to the risk prediction model; The indicator comparison module is specifically used to perform the following: Based on a preset indicator comparison rule, first comparison information corresponding to each target feature indicator contained in the historical version data and the current version data is respectively obtained, wherein the first comparison information is used to indicate that the corresponding target feature indicator corresponds to the statistical information of the historical version data and the statistical information of the current version data respectively; If there is a target feature indicator that is only included in one of the historical version data and the current version data, the characteristic information of the target feature indicator is used as the second comparison information of the target feature indicator; Generate comparison result information of each target feature indicator corresponding to the historical version data and the current version data of the target machine learning model based on the first comparison information and the second comparison information to form a comparison report; The comparison report is output and graphically displayed.

6. The machine learning model comparison device according to claim 5, characterized in that: Also includes: The first request acquisition module is used to receive a version comparison request for the target machine learning model, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

7. The machine learning model comparison device according to claim 5, characterized in that: Also includes: A model training monitoring module, used to monitor the model training process of the target machine learning model in real time; The second request acquisition module is used to generate a version comparison request for the target machine learning model when or after it is detected that the current model training process of the target machine learning model is completed, wherein the version comparison request includes historical version data and current version data of the target machine learning model.

8. The machine learning model comparison device according to claim 5, characterized in that: The indicator screening unit is used to perform the following: Outputting and displaying the model characteristic index and the training data characteristic index among the multiple characteristic indexes of the target machine learning model; According to the currently received indicator screening instruction, multiple characteristic indicators of the target machine learning model are screened to obtain multiple target characteristic indicators of the target machine learning model.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the machine learning model comparison method described in any one of claims 1 to 4 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the machine learning model comparison method described in any one of claims 1 to 4 is implemented.