Ejemplo n.º 1
0
def german_credit_numeric_logistic_regression():
    """German credit (numeric) logistic regression.

  This requires setting the `german_credit_numeric_path` flag.

  Returns:
    target: TargetDensity.
  """
    spec = logistic_regression.logistic_regression(data.german_credit_numeric)
    return _populate_ground_truth(
        'german_credit_numeric_logistic_regression',
        spec,
    )
Ejemplo n.º 2
0
def german_credit_numeric_with_test_logistic_regression():
    """German credit (numeric) logistic regression, with a test set.

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

  This requires setting the `german_credit_numeric_path` flag.

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