cvFromInterpolsvd: cross-validation from interpolsvd_em algorithm

Description Usage Arguments Value Author(s) Examples

Description

It aims to compare

The three tuneable (hyper)parameters are :

ncomp
nsmo
nembed

Usage

1
2
3
cvFromInterpolsvd(x, comp_max = 4, nembed = 2, nsmo = 81,
  method = "splines", niter = 5, min_keep_frac = 0.1, seed = 123,
  brow = F)

Arguments

x

the numeric matrix of SSN with days in rows and stations in columns for which we want to compute the cross-validation based on inteprolsvd_em()

comp_max

Maximum number of component we want to test

method

Controls the method used for interpolation. Thus either "smooth_gauss" or "splines" is allowed so far.

niter

The number of iterations of the algorithm.

min_keep_frac

Real between 0 and 1 controlling the station that has the highest number of NA. This will determine the number of fynthetic gaps

seed

Controls the seed of the random index sampling pf the synthetic gaps

Value

A grid of 2 ggplot representing the error and the cross-validation error with respect to the number of components retained from the SVD. And a list containing the following elements:

y.filled
errorByComp
CVerrorByComp

Author(s)

Antoine Pissoort, antoine.pissoort@student.uclouvain.be

Examples

1
2
3
4
5
6
library(ValUSunSSN)
data("data.mat2.fin")
y <- data.mat2.fin

y_obsToNA <- cvFromInterpolsvd(x = y, comp_max = 10,
                              niter = 30, min_keep_frac = 0.2)

proto4426/ValUSunSSN documentation built on May 26, 2019, 10:31 a.m.