Last data update: 2014.03.03

R: IterationSC
IterationSCR Documentation

IterationSC

Description

An iteration counting stop criterion for TrainIBHM function creating IBHM approximation models. Should be passed to ConfigureIBHMwhile creating a configuration object.

Usage

IterationSC(max.iterations)

Arguments

max.iterations

The number of iterations after which model construction should be stopped.

See Also

ValidationSC,ConfigureIBHM, TrainIBHM

Examples

  x.train <-seq(-2,2,length.out=100)
  y.train <-tanh(x.train)
  
  m <- IBHM::TrainIBHM(x.train,y.train, ConfigureIBHM(stop.criterion=IterationSC(2)))  
  length(m)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(IBHM)
Loading required package: compiler
Loading required package: DEoptim

DEoptim package
Differential Evolution algorithm in R
Authors: D. Ardia, K. Mullen, B. Peterson and J. Ulrich

Loading required package: cmaes
Loading required package: Rcpp
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/IBHM/IterationSC.Rd_%03d_medium.png", width=480, height=480)
> ### Name: IterationSC
> ### Title: IterationSC
> ### Aliases: IterationSC
> ### Keywords: ~models ~regression ~nonlinear
> 
> ### ** Examples
> 
>   x.train <-seq(-2,2,length.out=100)
>   y.train <-tanh(x.train)
>   
>   m <- IBHM::TrainIBHM(x.train,y.train, ConfigureIBHM(stop.criterion=IterationSC(2)))  
Note: no visible binding for global variable '.refClassDef' 
Note: no visible binding for global variable '.refClassDef' 
Note: no visible binding for global variable '.pointer' 
Note: no visible binding for global variable '.pointer' 
Note: no visible binding for global variable '.pointer' 
>   length(m)
[1] 2
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
> 
Note: no visible binding for global variable '.pointer'