Compute_Risk
Location: ..\cubatch\Model_PARAFAC\private\Compute_Risk.m
function
Validation = Compute_Risk (Hand,Model,Validation);
Description:
Computes the risk value and the MSE between the models
obtained by resampling (leave one out and bootstrap) and the reference model,
i.e. the one computed on the whole set of batches/samples.
Inputs:
Hand: at the first call is a vector of length 2, the
first element is the total number of replicates in all the models, the second a
counter for the replicate being processed. These two elements are moved to
position 2 and 3 and the first element is the handle to the waitbar opened by
this very function.
Model: ModelOut.model
structure
Validation:
ModelOut.validation structure
Outputs:
Validation:
ModelOut.validation structure with an updated
'stats' field updated with the risk
and the MSE
Called by:
Model_PARAFAC\Plot_RIP,
Model_PARAFAC\Plot_Risk
Subroutines:
Internal: None
External:
facoptscale,
facperm,
recfac
Author:
Giorgio Tomasi
Royal Agricultural and Veterinary University
MLI, LMT, Chemometrics group
Rolighedsvej 30
DK-1958 Frederiksberg C
Danmark
Last modified: 03-Nov-2002 20:04:50
Contact: Giorgio Tomasi, gt@kvl.dk
References
[1] - Tomasi G. and Bro R. "Fitting the PARAFAC model",
Comp.Stat.Data Anal., 2002, Submitted