Package parsimony :: Package functions :: Package nesterov :: Module l1
[hide private]
[frames] | no frames]

Module l1

source code

The :mod:`parsimony.functions.nesterov.L1` module contains the loss function for the L1 penalty, smoothed using Nesterov's technique.

Created on Mon Feb 3 17:00:56 2014

Copyright (c) 2013-2014, CEA/DSV/I2BM/Neurospin. All rights reserved.


Author: Tommy Löfstedt, Vincent Guillemot, Edouard Duchesnay and Fouad Hadj-Selem

License: BSD 3-clause.

Classes [hide private]
  L1
The proximal operator of the smoothed L1 function
Functions [hide private]
 
A_from_variables(*args, **kwargs) source code
 
linear_operator_from_variables(num_variables, penalty_start=0)
Generates the linear operator for the L1 Nesterov function from number of variables.
source code
Variables [hide private]
  __package__ = 'parsimony.functions.nesterov'
Function Details [hide private]

A_from_variables(*args, **kwargs)

source code 
Decorators:
  • @utils.deprecated("linear_operator_from_variables")

linear_operator_from_variables(num_variables, penalty_start=0)

source code 
Generates the linear operator for the L1 Nesterov function from number
of variables.

Parameters:
----------
num_variables : Positive integer. The total number of variables, including
        the intercept variable(s).

penalty_start : Non-negative integer. The number of variables to exempt
        from penalisation. Equivalently, the first index to be penalised.
        Default is 0, all variables are included.