docstr: Results generated with:
      data = sm.datasets.spector.load()
      data.exog = sm.add_constant(data.exog, prepend=True)
      alpha = 3 * np.array([0, 1, 1, 1])
      res2 = sm.Logit(data.endog, data.exog).fit_regularized(
          method="l1", alpha=alpha, disp=0, trim_mode='size',
          size_trim_tol=1e-5, acc=1e-10, maxiter=1000)
docstr_tok: ["Results","generated","with",":","data","=","sm.datasets.spector.load","(",")","data.exog","=","sm.add_constant","(","data.exog",",","prepend=True",")","alpha","=","3","*","np.array","(","[","0",",","1",",","1",",","1","]",")","res2","=","sm.Logit","(","data.endog",",","data.exog",")",".fit_regularized","(","method=","''","l1","''",",","alpha=alpha",",","disp=0",",","trim_mode='size","'",",","size_trim_tol=1e-5",",","acc=1e-10",",","maxiter=1000",")"]
code: def logit():
      """
      Results generated with:
          data = sm.datasets.spector.load()
          data.exog = sm.add_constant(data.exog, prepend=True)
          alpha = 3 * np.array([0, 1, 1, 1])
          res2 = sm.Logit(data.endog, data.exog).fit_regularized(
              method="l1", alpha=alpha, disp=0, trim_mode='size',
              size_trim_tol=1e-5, acc=1e-10, maxiter=1000)
      """
      obj = Namespace()
      nan = np.nan
      obj.params = [-4.10271595, 0.0, 0.15493781, 0.0]
      obj.conf_int = [
          [-9.15205122, 0.94661932],
          [nan, nan],
          [-0.06539482, 0.37527044],
          [nan, nan],
      ]
      obj.bse = [2.5762388, nan, 0.11241668, nan]
      obj.nnz_params = 2
      obj.aic = 42.091439368583671
      obj.bic = 45.022911174183122
      obj.cov_params = [
          [6.63700638, nan, -0.28636261, nan],
          [nan, nan, nan, nan],
          [-0.28636261, nan, 0.01263751, nan],
          [nan, nan, nan, nan],
      ]
      return obj
  
imports: import os
  import numpy
label_desc: Use image node_id 2 for calling the DiscreteL1 obj's underlying member method code with example usage: obj.logit() and returns: obj