Пример #1
0
def german_credit_numeric_probit_regression():
    """German credit (numeric) probit regression.

  This requires setting the `german_credit_numeric_path` flag.

  Returns:
    target: TargetDensity.
  """
    spec = probit_regression.probit_regression(data.german_credit_numeric)
    return _populate_ground_truth(
        'german_credit_numeric_probit_regression',
        spec,
    )
Пример #2
0
def german_credit_numeric_with_test_probit_regression():
    """German credit (numeric) probit 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 = probit_regression.probit_regression(
        lambda: data.german_credit_numeric(train_fraction=0.75))
    return _populate_ground_truth(
        'german_credit_numeric_with_test_probit_regression',
        spec,
    )