Skip to content

Commit

Permalink
removing ordered stuff until richard is done
Browse files Browse the repository at this point in the history
  • Loading branch information
lizlouise1335 committed Jul 18, 2023
1 parent 1bc3377 commit 6d3566f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 deletions synthetic_data/dataset_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@ def convert_data_to_df(
return dataframe


def get_ordered_column(start: int = 0, num_rows: int = 1, **kwarg) -> np.array:
"""
Generate an array of ordered integers.
:param start: integer that the ordered list should start at
:type str_len_min: int, optional
:param num_rows: the number of rows in np array generated
:type num_rows: int, optional
:return: np array of ordered integers
"""
return np.arange(start, start + num_rows)


def generate_dataset_by_class(
rng: Generator,
columns_to_generate: Optional[List[dict]] = None,
Expand All @@ -82,7 +68,6 @@ def generate_dataset_by_class(
"integer": random_integers,
"float": random_floats,
"categorical": random_categorical,
"ordered": get_ordered_column,
"text": random_text,
"datetime": random_datetimes,
"string": random_string,
Expand All @@ -94,7 +79,6 @@ def generate_dataset_by_class(
dict(generator="integer"),
dict(generator="float"),
dict(generator="categorical"),
dict(generator="ordered"),
dict(generator="text"),
dict(generator="string"),
]
Expand Down
1 change: 0 additions & 1 deletion tests/test_dataset_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def test_generate_dataset_with_none_columns(self):
"integer",
"float",
"categorical",
"ordered",
"text",
"string",
]
Expand Down

0 comments on commit 6d3566f

Please sign in to comment.