Resampling_Error: Resampling Error 'Resampling_Error'

Description Usage Format Details Methods Examples

Description

Resampling_Error is designed to easily compute resampling error on design points

Usage

1

Format

An R6Class generator object

Details

Compute resampling error of a surrogate model

Methods

Resampling_Error$new()

Creates a new Resampling_Error

get_val(surrogate_model)

It evaluates the resampling error for a surrogate_model (object UPSM).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(UP)
d              <- 2
X      	      <- expand.grid(x1=seq(0,1,length=5), x2=seq(0,1,length=4))
y        	    <- apply(X, 1, branin)
upsm     	    <- UPSM$new(sm= krigingsm$new(), UP=UPClass$new(X,y,Scale =TRUE))
CV             <- Resampling_Error$new()          
PRESS_CV       <- CV$get_val(upsm)
print(" CV Resampling Error")
print(PRESS_CV)

     

malekbs/UP documentation built on May 14, 2019, 8:05 a.m.