MSE: Mean Square Error 'MSE'

Description Usage Format Details Methods Examples

Description

MSE is designed to easily compute MSE on design points

Usage

1

Format

An R6Class generator object

Details

Compute MSE of a surrogate model

Methods

MSE$new()

Creates a new MSE

get_val(surrogate_model)

It evaluates the MSE for a surrogate_model (object sm).

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))
mse          <- MSE$new()          
valmse       <- mse$get_val(upsm)
print("MSE")
print(valmse)

     

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