Skip to content

Commit

Permalink
test: test datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
liamj2311 committed Sep 26, 2024
1 parent 0780e55 commit 9785ff5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/core/test_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import pandas as pd

from aequitas.core.datasets import create_metric, create_regression_dataset
from aequitas.core.datasets import create_metric

from test import (
generate_binary_label_dataframe,
Expand Down Expand Up @@ -207,7 +207,9 @@ def test_dataset_creation_with_scores_via_factory(self):

class TestRegressionDataset(AbstractMetricTestCase):
def test_regression_dataset_creation_via_factory(self):
ds = create_regression_dataset( # parameters of aequitas.DatasetWithRegressionMetrics init
ds = create_dataset(
"regression",
# parameters of aequitas.DatasetWithRegressionMetrics init
unprivileged_groups=[{'color': 'b'}],
privileged_groups=[{'color': 'r'}],
# parameters of aequitas.StructuredDataset init
Expand Down

0 comments on commit 9785ff5

Please sign in to comment.