plot.sjSDM_cv: Plot elastic net tuning

View source: R/sjSDM_cv.R

plot.sjSDM_cvR Documentation

Plot elastic net tuning

Description

Plot elastic net tuning

Usage

## S3 method for class 'sjSDM_cv'
plot(x, y, perf = c("logLik", "AUC", "AUC_macro"), resolution = 6, k = 3, ...)

Arguments

x

a model fitted by sjSDM_cv

y

unused argument

perf

performance measurement to plot

resolution

resolution of grid

k

number of knots for the gm

...

Additional arguments to pass to plot()

Value

Named vector of optimized regularization parameters.

Without space:

lambda_cov

Regularization strength in the bioticStruct object.

alpha_cov

Weigthing between L1 and L2 in the bioticStruct object.

lambda_coef

Regularization strength in the linear or DNN object.

alpha_coef

Weigthing between L1 and L2 in the linear or DNN object.

With space:

lambda_cov

Regularization strength in the bioticStruct object.

alpha_cov

Weigthing between L1 and L2 in the bioticStruct object.

lambda_coef

Regularization strength in the linear or DNN object.

alpha_coef

Weigthing between L1 and L2 in the linear or DNN object.

lambda_spatial

Regularization strength in the linear or DNN object for the spatial component.

alpha_spatial

Weigthing between L1 and L2 in thelinear or DNN object for the spatial component.


sjSDM documentation built on Sept. 11, 2024, 7:18 p.m.