Skip to content

This MATLAB package enables to efficiently compute leave-one-out cross validation error for linear regression with two regularization terms: L_1 and total-variation. The computation is based on an analytical approximation, which enables to avoid re-optimization and to reduce much computational time.

Notifications You must be signed in to change notification settings

T-Obuchi/AcceleratedCVon2DTVLR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

AcceleratedCVon2DTVLR

Approximate cross-validation for linear regression penalized by terms of L1 and two-dimensional total variation.

This is free software, you can redistribute it and/or modify it under the terms of the GNU General Public License, version 3 or above. See LICENSE.txt for details.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

DESCRIPTION

Using the estimated explanatory variables x given the measument matrix A and the measurement result y, this program computes and returns an approximate leave-one-out error (LOOE) and its standard error for linear regression penalized by L1 norm and two-dimensional total variation (TV).

USAGE

   [LOOE,ERR] = LOOEapprox_2DTV(x,y,A,Nx,Ny,lambda_T,delta,theta)

Inputs:

  • x: Estimated explanatory variables (N=Nx*Ny dimensional vector). A two-dimensional (2D) image is expected in common cases.
  • y: Measurement result (M dimensional vector)
  • A: Measurement matrix (M*N dimensional matrix)
  • Nx: One side length of x in 2D.
  • Ny: Another side length of x in 2D.
  • lambda_T: Regularization weight of TV
  • delta: Softening constant of TV. Default value is 10^(-4).
  • theta: Threshold to determine clusters induced by TV. Default value is 10^(-12).

Outputs:

  • LOOE: Approximate value of the leave-one-out error
  • ERR: Approximate standard error of the leave-one-out error

For more details, type help LOOEapprox_2DTV.

REFERENCE

Tomoyuki Obuchi, Shiro Ikeda, Kazunori Akiyama, and Yoshiyuki Kabashima: "Accelerating cross-validation with total variation and its application to super-resolution imaging", arXiv: 1611.07197

About

This MATLAB package enables to efficiently compute leave-one-out cross validation error for linear regression with two regularization terms: L_1 and total-variation. The computation is based on an analytical approximation, which enables to avoid re-optimization and to reduce much computational time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages