optimWizard: Visual tool for setting up optimization

View source: R/optimWizard.R

optimWizardR Documentation

Visual tool for setting up optimization

Description

Set up optimization through a graphical user interface. Optionally collecting values directly from 'baselineGUI'. Retrieve optimisation parameters and results with getOptim and getOptimRes, respectively.

Usage

optimWizard(X, y, postproc, predictionTest, cvsegments)
getOptim()
getOptimRes()

Arguments

X

Matrix with spectra in rows

y

Response vector or matrix in analysis

postproc

Custum function for post processing of spectra (optional)

predictionTest

Custom prediction object (optional)

cvsegments

Cross-validation segments (optional)

Author(s)

Kristian Hovde Liland and Bjørn-Helge Mevik

Examples

## Not run: 
# Computationally intensive
data(milk)
X <- milk$spectra[,-1]
y <- milk$spectra[,1]
optimWizard(X,y)

# Retrieve optimisation
myResults <- getOptimRes()

# After optimisation is complete
plotOptim(myResults)

## End(Not run)

baseline documentation built on Nov. 18, 2023, 5:14 p.m.