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

Module gl

source code

The :mod:`parsimony.functions.nesterov.gl` module contains the loss function and helper functions for overlapping Group lasso, GL, smoothed using Nesterov's technique.

Created on Mon Feb 3 10:46:47 2014

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


Author: Tommy Löfstedt, Edouard Duchesnay

License: BSD 3-clause.

Classes [hide private]
  GroupLassoOverlap
Group L1-L2 function, with overlapping groups.
Functions [hide private]
 
A_from_groups(*args, **kwargs) source code
 
linear_operator_from_groups(num_variables, groups, weights=None, penalty_start=0)
Generates the linear operator for the group lasso Nesterov function from the groups of variables.
source code
Variables [hide private]
  __package__ = 'parsimony.functions.nesterov'
Function Details [hide private]

A_from_groups(*args, **kwargs)

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

linear_operator_from_groups(num_variables, groups, weights=None, penalty_start=0)

source code 
Generates the linear operator for the group lasso Nesterov function
from the groups of variables.

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

groups : A list of lists. The outer list represents the groups and the
        inner lists represent the variables in the groups. E.g. [[1, 2],
        [2, 3]] contains two groups ([1, 2] and [2, 3]) with variable 1 and
        2 in the first group and variables 2 and 3 in the second group.

weights : List. Weights put on the groups. Default is weight 1 for each
        group.

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.