docstr: ...Test of ProxElasticNet
          
docstr_tok: ["...","Test","of","ProxElasticNet"]
code: def test_ProxElasticNet(self):
      """...Test of ProxElasticNet"""
      coeffs = self.coeffs.copy().astype(self.dtype)
  
      l_enet = 3e-2
      ratio = 0.3
      t = 1.7
      prox_enet = ProxElasticNet(l_enet, ratio=ratio).astype(self.dtype)
      prox_l1 = ProxL1(ratio * l_enet).astype(self.dtype)
      prox_l2 = ProxL2Sq((1 - ratio) * l_enet).astype(self.dtype)
  
      self.assertAlmostEqual(
          prox_enet.value(coeffs),
          prox_l1.value(coeffs) + prox_l2.value(coeffs),
          delta=self.delta,
      )
  
      out = coeffs.copy()
      prox_l1.call(out, t, out)
      prox_l2.call(out, t, out)
      assert_almost_equal(
          prox_enet.call(coeffs, step=t), out, decimal=10
      )
  
      prox_enet = ProxElasticNet(
          l_enet, ratio=ratio, positive=True
      ).astype(self.dtype)
      prox_l1 = ProxL1(ratio * l_enet, positive=True).astype(self.dtype)
      prox_l2 = ProxL2Sq((1 - ratio) * l_enet, positive=True).astype(
          self.dtype
      )
  
      self.assertAlmostEqual(
          prox_enet.value(coeffs),
          prox_l1.value(coeffs) + prox_l2.value(coeffs),
          delta=self.delta,
      )
  
      out = coeffs.copy()
      prox_l1.call(out, t, out)
      prox_l2.call(out, t, out)
      assert_almost_equal(
          prox_enet.call(coeffs, step=t), out, decimal=10
      )
  
file_path: tick/tick/prox/tests/prox_elasticnet_test.py
imports: import unittest
  from numpy.testing import assert_almost_equal
  from tick.prox import ProxElasticNet, ProxL1, ProxL2Sq
  from tick.prox.tests.prox import TestProx
label_desc: Use image node_id 1 for calling the ProxElasticNetTest obj's underlying member method code with example usage: obj.test_ProxElasticNet() without return types