docstr: Checks that you get finite values given unconstrained samples.
  
  We check `unnormalized_log_prob` as well as the values of the sample
  transformations.
docstr_tok: ["Checks","that","you","get","finite","values","given","unconstrained","samples",".","We","check","`","unnormalized_log_prob","`","as","well","as","the","values","of","the","sample","transformations","."]
code: def testGermanCredit(self):
      """Checks that you get finite values given unconstrained samples.
  
      We check `unnormalized_log_prob` as well as the values of the sample
      transformations.
      """
      model = sparse_logistic_regression.GermanCreditNumericSparseLogisticRegression(
          positive_constraint_fn=self.positive_constraint_fn,
      )
      self.validate_log_prob_and_transforms(
          model,
          sample_transformation_shapes=dict(
              identity={
                  "global_scale": [],
                  "local_scales": [25],
                  "unscaled_weights": [25],
              },
          ),
          check_ground_truth_mean_standard_error=True,
          check_ground_truth_mean=True,
          check_ground_truth_standard_deviation=True,
      )
  
file_path: probability/spinoffs/inference_gym/inference_gym/targets/sparse_logistic_regression_test.py
imports: import functools
  from absl.testing import parameterized
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from inference_gym.internal import test_util
  from inference_gym.targets import sparse_logistic_regression
label_desc: Use image node_id 4 for calling the _SparseLogisticRegressionTest obj's underlying member method code with example usage: obj.testGermanCredit() without return types