Accelerated k-fold cross-validation
AssigneeMinitab, LLC
InventorsSenin J. Banga, Robert E. Kelly
Life of this patent
Estimating the term…
Abstract
Models are k-fold cross-validated to determine how results of an analysis will generalize to an independent data set. By obtaining an inverse transformation of a set of residuals representative of a traditional repetitive train-then-test approach, models can be k-fold cross-validated in an accelerated manner to reduce computational cost and eliminate or substantially eliminate restrictions on the number of folds to include in the cross-validation.
Claims20
A method comprising:
- acquiring, via a predictive analytics engine of a learning machine, input data to be analyzed, the input data comprising a plurality of labeled cases;
- training a model, based on a parameter estimation procedure, by using the plurality of labelled cases;
- randomly dividing the plurality of labelled cases into a number of folds (k folds);
- for each fold of the k folds, computing a set of corresponding predicted residuals in the fold using an inverse transformation of ordinary residuals representative of a difference between the output values of the labelled cases in the fold and their estimated or fitted values, the corresponding predicted residuals being representative of a bypassed traditional repetitive model training-then-testing process;
- receiving k sets of corresponding predicted residuals;
- and
- determining a k-fold R-square statistic using all the members of the k sets of corresponding predicted residuals, the k-fold R-square statistic being indicative of a k-fold cross-validation error of the model.
A non-transitory computer readable storage medium storing program instructions which, when executed by a processor, causes the processor to perform a procedure comprising the steps of:
- acquiring, via a predictive analytics engine of a learning machine, input data to be analyzed, the input data comprising a plurality of labeled cases;
- training a model, based on a parameter estimation procedure, by using the plurality of labelled cases;
- randomly dividing the plurality of labelled cases into a number of folds (k folds);
- for each fold of the k folds, computing a set of corresponding predicted residuals in the fold using an inverse transformation of ordinary residuals representative of a difference between the output values of the labelled cases in the fold and their estimated or fitted values, the corresponding predicted residuals being representative of a bypassed traditional repetitive model training-then-testing process;
- receiving k sets of corresponding predicted residuals;
- and
- determining a k-fold R-square statistic using all the members of the k sets of corresponding predicted residuals, the k-fold R-square statistic being indicative of a k-fold cross-validation error of the model.
A computer system comprising:
- at least one processor configured to performs the steps of:
- acquiring, via a predictive analytics engine of a learning machine, input data to be analyzed, the input data comprising a plurality of labeled cases;
- training a model, based on a parameter estimation procedure, by using the plurality of labelled cases;
- randomly dividing the plurality of labelled cases into a number of folds (k folds);
- for each fold of the k folds, computing a set of corresponding predicted residuals in the fold using an inverse transformation of ordinary residuals representative of a difference between the output values of the labelled cases in the fold and their estimated or fitted values, the corresponding predicted residuals being representative of a bypassed traditional repetitive model training-then-testing process;
- receiving k sets of corresponding predicted residuals;
- and
- determining a k-fold R-square statistic using all the members of the k sets of corresponding predicted residuals, the k-fold R-square statistic being indicative of a k-fold cross-validation error of the model.
Dependencies are inferred from the claim text.