IP Library Granted Patent US 10,445,657
Granted Patent B2
US 10,445,657 · App. 14/963,061 · Granted Oct 15, 2019

General framework for cross-validation of machine learning algorithms using SQL on distributed systems

Inventors: Hai Qian (Foster City, CA); Rahul Iyer (Foster City, CA); Shengwen Yang (Beijing, CN); Caleb E. Welton (Foster City, CA)
Assignee: EMC IP Holding Company, LLC
G06N20/00G06K9/6256G06N5/025G06N7/005
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,445,657
App. No.
14/963,061
Filed
Dec 8, 2015
Granted
Oct 15, 2019
Kind
B2
Art Unit
2122
USPC
706/12
Abstract

A general framework for cross-validation of any supervised learning algorithm on a distributed database comprises a multi-layer software architecture that implements training, prediction and metric functions in a C++ layer and iterates processing of different subsets of a data set with a plurality of different models in a Python layer. The best model is determined to be the one with the smallest average prediction error across all database segments.

Claims (34)

1. A method of cross-validation of a supervised machine learning algorithm within a distributed database having a plurality of database segments in which data are stored, comprising:

partitioning a data set within said database into a training subset and a validation subset, wherein the partitioning data set comprises partitioning the data set according to randomly sorted data to create two data subsets that are independent and statistically equivalent;

determining coefficients of a first model of said supervised machine learning algorithm using the training subset;

predicting a value of a data element in said validation subset using said first model;

determining a prediction error based at least in part on a difference between said predicted value and the actual value of said data element;

successively repeating said partitioning k times to form k different partitions, wherein at least a subset of the k different partitions have different training and validation subsets;

determining corresponding k prediction errors based at least in part on iteratively determining the coefficients, predicting the value of the data element, and determining the prediction error for each of said k partitions;

evaluating the performance of said first model using said k prediction errors; and

wherein said supervised learning algorithm comprises a target function, a prediction function, and a metric function, the target function establishing coefficient values that are used by said prediction and said metric functions, and wherein said functions are embodied in application programs in a first application program layer within said database, said functions being called by cross-validation functions in a second application layer within said database system.

2. The method of claim 1 , further comprising repeating said method for each of a plurality of other different models, and identifying as the best model the model having the smallest corresponding prediction error.

3. The method of claim 2 , wherein each of said models is defined by a parameter set of one or more parameters, and wherein the method further comprises providing in the database a plurality of such parameter sets for establishing said plurality of models.

4. The method of claim 2 , further comprising performing said method in parallel on each of said database segments, and wherein said identifying comprises identifying the best model using the results of the k partitions on all segments.

5. The method of claim 1 , wherein said partitioning comprises partitioning said data set into a small subset and a large subset, said large subset comprising said training subset, and said small subset comprising said validation subset.

6. The method of claim 1 , wherein said determining coefficients comprises using said training subset to select coefficients of said first model that minimize a target function of said supervised machine learning algorithm.

7. The method of claim 1 , wherein said predicting comprises predicting said value of said data element using a prediction function of said supervised machine learning algorithm, the coefficients of said first model comprising coefficients of said prediction function.

8. The method of claim 1 , wherein said data set comprises table data, and said partitioning comprises running database SQL processing operations to randomly sort said table data set into sorted table data, to attach an index each row of said sorted table data, and to separate using the indices said sorted table data into said training and said validation subsets.

9. The method of claim 1 , wherein said functions in said first application layer have formats which define arguments and parameters of the functions using generic elements, and wherein said cross validation functions dynamically replace said generic elements with particular elements.

10. A computer program product comprising a non-transitory computer readable medium storing executable instructions for controlling the operation of a computer in a distributed database having a plurality of database segments to perform a method of cross-validation of a supervised machine learning algorithm, the method comprising:

partitioning a data set within said database into a training subset and a validation subset, wherein the partitioning data set comprises partitioning the data set according to randomly sorted data to create two data subsets that are independent and statistically equivalent;

determining coefficients of a first model of said supervised machine learning algorithm using the training subset;

predicting a value of a data element in said validation subset using said first model;

determining a prediction error based at least in part on a difference between said predicted value and the actual value of said data element;

wherein at least a subset of the k different partitions have partition having different training and validation subsets;

determining corresponding k prediction errors based at least in part on iteratively determining the coefficients, predicting the value of the data element, and determining the prediction error for each of said k partitions; and

evaluating the performance of said first model using said k prediction errors; and

wherein said supervised learning algorithm comprises a target function, a prediction function, and a metric function, the target function establishing coefficient values that are used by said prediction and said metric functions, and wherein said functions are embodied in application programs in a first application program layer within said database, said functions being called by cross-validation functions in a second application layer within said database system.

11. The computer program product of claim 10 , further comprising instructions for repeating said method for each of a plurality of other different models, and identifying as the best model the model having the smallest corresponding prediction error.

12. The computer program product of claim 11 , wherein each of said models is defined by a parameter set of one or more parameters, and wherein the method further comprises providing in the database a plurality of such parameter sets for establishing said plurality of models.

13. The computer program product of claim 10 further comprising performing said method in parallel on each of said database segments, and wherein said identifying comprises identifying the best model using the results of the k partitions on all segments.

14. The computer program product of claim 10 , wherein said partitioning comprises partitioning said data set into a small subset and a large subset, said large subset comprising said training subset, and said small subset comprising said validation subset.

15. The computer program product of claim 10 , wherein said determining coefficients comprises using said training subset to select coefficients of said first model that minimize a target function of said supervised machine learning algorithm.

16. The computer program product of claim 10 , wherein said predicting comprises predicting said value of said data element using a prediction function of said supervised machine learning algorithm, the coefficients of said first model comprising coefficients of said prediction function.

17. The computer program product of claim 10 , wherein said data set comprises table data, and said partitioning comprises running database SQL processing operations to randomly sort said table data set into sorted table data, to attach an index each row of said sorted table data, and to separate using the indices said sorted table data into said training and said validation subsets.

18. The computer program product of claim 10 , wherein said functions in said first application layer have formats which define arguments and parameters of the functions using generic elements, and wherein said cross validation functions dynamically replace said generic elements with particular elements.

Assignments (14)
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (053546/0001) Recorded Jun 23, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL MARKETING L.P. (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO CREDANT TECHNOLOGIES, INC.); DELL INTERNATIONAL L.L.C.; DELL PRODUCTS L.P.; DELL USA L.P.; EMC CORPORATION; DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO FORCE10 NETWORKS, INC. AND WYSE TECHNOLOGY L.L.C.); EMC IP HOLDING COMPANY LLC
Reel/Frame 071642/0001 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (051302/0528) Recorded Jun 23, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC; DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO WYSE TECHNOLOGY L.L.C.); SECUREWORKS CORP.
Reel/Frame 060438/0593 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (045455/0001) Recorded May 20, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL USA L.P.; DELL INTERNATIONAL L.L.C.; DELL PRODUCTS L.P.; DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO FORCE10 NETWORKS, INC. AND WYSE TECHNOLOGY L.L.C.); DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO ASAP SOFTWARE EXPRESS, INC.); DELL MARKETING L.P. (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO CREDANT TECHNOLOGIES, INC.); EMC CORPORATION (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO MAGINATICS LLC); EMC IP HOLDING COMPANY LLC (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO MOZY, INC.); SCALEIO LLC
Reel/Frame 061753/0001 →
RELEASE OF SECURITY INTEREST IN PATENTS PREVIOUSLY RECORDED AT REEL/FRAME (040136/0001) Recorded Apr 26, 2022
From: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
To: DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO ASAP SOFTWARE EXPRESS, INC.); DELL MARKETING L.P. (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO CREDANT TECHNOLOGIES, INC.); DELL USA L.P.; DELL INTERNATIONAL L.L.C.; DELL PRODUCTS L.P.; DELL MARKETING CORPORATION (SUCCESSOR-IN-INTEREST TO FORCE10 NETWORKS, INC. AND WYSE TECHNOLOGY L.L.C.); EMC CORPORATION (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO MAGINATICS LLC); EMC IP HOLDING COMPANY LLC (ON BEHALF OF ITSELF AND AS SUCCESSOR-IN-INTEREST TO MOZY, INC.); SCALEIO LLC
Reel/Frame 061324/0001 →
RELEASE OF SECURITY INTEREST Recorded Nov 3, 2021
From: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
To: ASAP SOFTWARE EXPRESS, INC.; AVENTAIL LLC; CREDANT TECHNOLOGIES, INC.; DELL USA L.P.; DELL INTERNATIONAL, L.L.C.; DELL MARKETING L.P.; DELL PRODUCTS L.P.; DELL SOFTWARE INC.; DELL SYSTEMS CORPORATION; EMC CORPORATION; EMC IP HOLDING COMPANY LLC; FORCE10 NETWORKS, INC.; MAGINATICS LLC; MOZY, INC.; SCALEIO LLC; WYSE TECHNOLOGY L.L.C.
Reel/Frame 058216/0001 →
RELEASE OF SECURITY INTEREST AT REEL 051449 FRAME 0728 Recorded Nov 2, 2021
From: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
To: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC; WYSE TECHNOLOGY L.L.C.; SECUREWORKS CORP.; EMC CORPORATION
Reel/Frame 058002/0010 →
SECURITY AGREEMENT Recorded Apr 22, 2020
From: CREDANT TECHNOLOGIES INC.; DELL INTERNATIONAL L.L.C.; DELL MARKETING L.P.; DELL PRODUCTS L.P.; DELL USA L.P.; EMC CORPORATION; FORCE10 NETWORKS, INC.; WYSE TECHNOLOGY L.L.C.; EMC IP HOLDING COMPANY LLC
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A.
Reel/Frame 053546/0001 →
SECURITY AGREEMENT Recorded Dec 31, 2019
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC; WYSE TECHNOLOGY L.L.C.; SECUREWORKS CORP.; EMC CORPORATION
To: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH
Reel/Frame 051449/0728 →
PATENT SECURITY AGREEMENT (NOTES) Recorded Dec 16, 2019
From: DELL PRODUCTS L.P.; EMC IP HOLDING COMPANY LLC; WYSE TECHNOLOGY L.L.C.; SECUREWORKS CORP.
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS COLLATERAL AGENT
Reel/Frame 051302/0528 →
SECURITY AGREEMENT Recorded Mar 21, 2019
From: CREDANT TECHNOLOGIES, INC.; DELL INTERNATIONAL L.L.C.; DELL MARKETING L.P.; DELL PRODUCTS L.P.; DELL USA L.P.; EMC CORPORATION; FORCE10 NETWORKS, INC.; WYSE TECHNOLOGY L.L.C.; EMC IP HOLDING COMPANY LLC
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A.
Reel/Frame 049452/0223 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 29, 2016
From: EMC CORPORATION
To: EMC IP HOLDING COMPANY LLC
Reel/Frame 040203/0001 →
SECURITY AGREEMENT Recorded Sep 21, 2016
From: ASAP SOFTWARE EXPRESS, INC.; AVENTAIL LLC; CREDANT TECHNOLOGIES, INC.; DELL USA L.P.; DELL INTERNATIONAL L.L.C.; DELL MARKETING L.P.; DELL PRODUCTS L.P.; DELL SOFTWARE INC.; DELL SYSTEMS CORPORATION; EMC CORPORATION; EMC IP HOLDING COMPANY LLC; FORCE10 NETWORKS, INC.; MAGINATICS LLC; MOZY, INC.; SCALEIO LLC; SPANNING CLOUD APPS LLC; WYSE TECHNOLOGY L.L.C.
To: CREDIT SUISSE AG, CAYMAN ISLANDS BRANCH, AS COLLATERAL AGENT
Reel/Frame 040134/0001 →
SECURITY AGREEMENT Recorded Sep 21, 2016
From: ASAP SOFTWARE EXPRESS, INC.; AVENTAIL LLC; CREDANT TECHNOLOGIES, INC.; DELL USA L.P.; DELL INTERNATIONAL L.L.C.; DELL MARKETING L.P.; DELL PRODUCTS L.P.; DELL SOFTWARE INC.; DELL SYSTEMS CORPORATION; EMC CORPORATION; EMC IP HOLDING COMPANY LLC; FORCE10 NETWORKS, INC.; MAGINATICS LLC; MOZY, INC.; SCALEIO LLC; SPANNING CLOUD APPS LLC; WYSE TECHNOLOGY L.L.C.
To: THE BANK OF NEW YORK MELLON TRUST COMPANY, N.A., AS NOTES COLLATERAL AGENT
Reel/Frame 040136/0001 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 8, 2015
From: IYER, RAHUL; QIAN, HAI; YANG, SHENGWEN; WELTON, CALEB E.
To: EMC CORPORATION
Reel/Frame 037242/0514 →
Continuity (2)
Continuation 13931879 · Jun 29, 2013
Related Publication 20160092794A1 · Mar 31, 2016
Cited By (2)
US 12,287,796 US 12,493,817