class_docstr: A class for representing a scalar-value penalty.
  
  Parameters
  ----------
  weights : array_like
      A vector of weights that determines the weight of the penalty
      for each parameter.
  
  Notes
  -----
  The class has a member called `alpha` that scales the weights.
class_docstr_tok: ["A","class","for","representing","a","scalar-value","penalty",".","Parameters","--","--","--","--","--","weights",":","array_like","A","vector","of","weights","that","determines","the","weight","of","the","penalty","for","each","parameter",".","Notes","--","--","-","The","class","has","a","member","called","`","alpha","`","that","scales","the","weights","."]
code: def __init__(self, weights=1.0):
      self.weights = weights
      self.alpha = 1.0
  
imports: import numpy
label_desc: Use image node_id 1 to create a new Penalty object  with example: obj = Penalty(weights)