Esempio n. 1
0
def german_credit_numeric_sparse_logistic_regression():
    """German credit (numeric) sparse logistic regression.

  This requires setting the `german_credit_numeric_path` flag.

  Returns:
    target: TargetDensity.
  """
    spec = sparse_logistic_regression.sparse_logistic_regression(
        data.german_credit_numeric)
    return _populate_ground_truth(
        'german_credit_numeric_sparse_logistic_regression',
        spec,
    )
Esempio n. 2
0
def german_credit_numeric_with_test_sparse_logistic_regression():
    """German credit (numeric) sparse logistic regression, with a test set.

  This uses a 75/25 split of the data. This requires setting the
  `german_credit_numeric_path` flag.

  Returns:
    target: TargetDensity.
  """
    spec = sparse_logistic_regression.sparse_logistic_regression(
        lambda: data.german_credit_numeric(train_fraction=0.75))
    return _populate_ground_truth(
        'german_credit_numeric_with_test_sparse_logistic_regression',
        spec,
    )