Skip to content

Commit 45ca532

Browse files
committed
Minors
1 parent 3d2bb5b commit 45ca532

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

NoiseFiltersPy/Injector.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(self, attributes, labels, rate: float = 0.1) -> None:
2626
else:
2727
self._attrs = attributes
2828

29-
if not isinstance(attributes, pd.DataFrame):
29+
if not isinstance(labels, pd.DataFrame):
3030
self._labels = pd.DataFrame(labels)
3131
else:
3232
self._labels = labels

analysis/compare_filters.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def calculate_filter_f1(dataset, filter, injector, rate = 0.1):
4040
remainder = "passthrough"
4141
)
4242
attrs = ct.fit_transform(attrs)
43+
attrs = np.array(attrs)
4344

4445
injector = injector(attrs, target, rate)
4546
injector.generate()

0 commit comments

Comments
 (0)