Copycvfields: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Donal
(Created page with "===Purpose=== Copy cross-validation results into model from structure. ===Synopsis=== :model = copycvfeilds(from,to) ===Description=== Given the output of the crossval funct...")
 
imported>Donal
Line 17: Line 17:
corresponding fields in a flat structure.
corresponding fields in a flat structure.
Note: no assurance is made that the copied cross-validation results
Note: no assurance is made that the copied cross-validation results
actually correspond to the model - user must assure the results apply to
actually correspond to the target model - user must assure the results apply to
the ('to') model.
the ('to') model.



Revision as of 23:43, 23 February 2011

Purpose

Copy cross-validation results into model from structure.

Synopsis

model = copycvfeilds(from,to)

Description

Given the output of the crossval function ('from', as either a structure or a model with the expected fields in the detail sub-field) and a target model, the fields associated with cross-validation results will be copied over to the target model. If the target model ('to') is omitted or is not a standard model structure, the cross-validation fields in ('from') are copied directly to corresponding fields in a flat structure. Note: no assurance is made that the copied cross-validation results actually correspond to the target model - user must assure the results apply to the ('to') model.

Inputs

from = A structure or model with cross-validation fields in the detail sub-field.


Optional Inputs

None.

Outputs

to = A model structure.

Examples

model = copycvfields(res, model);

copies crossval results ('res') to a model.

res = copycvfields(model);

copies crossval results from a model to a structure.

model_to = copycvfields(model_from,model_to);

copies crossval results from one model to another.


See Also

dataset/dataset, modelstruct, copydsfields, crossval