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>Jeremy
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
===Synopsis===
===Synopsis===


:model = copycvfeilds(from,to)
:model = copycvfields(from,to)


===Description===
===Description===
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.


Line 23: Line 23:


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


====Optional Inputs====
====Optional Inputs====

Latest revision as of 11:17, 22 February 2013

Purpose

Copy cross-validation results into model from structure.

Synopsis

model = copycvfields(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