Skip to content

Commit 068dcac

Browse files
PEP257 D104 D05 #195
1 parent f344ddd commit 068dcac

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

instance_selection/utils/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""Instance Selection Utils.
2+
3+
Methods that are useful for multiple algorithms implemented in the instance
4+
selection library.
5+
"""
16
from ._transformer import transform, transform_original_complete, \
27
delete_multiple_element
38

instance_selection/utils/_transformer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def transform(samples, y):
55
"""
6-
Transform pandas DataFrame to Sklearn Bunch
6+
Transform pandas DataFrame to Sklearn Bunch.
77
88
It takes a pandas dataframe and a pandas series, converts them to numpy
99
arrays, and returns a Bunch object with the data and target attributes
@@ -20,7 +20,7 @@ def transform(samples, y):
2020

2121
def transform_original_complete(original, original_y, complete, complete_y):
2222
"""
23-
It takes in two sets of data, and returns two sets of data
23+
It takes in two sets of data, and returns two sets of data.
2424
2525
:param original: the original data
2626
:param original_y: the original labels
@@ -33,7 +33,7 @@ def transform_original_complete(original, original_y, complete, complete_y):
3333

3434
def delete_multiple_element(list_object, indices, reverse=True):
3535
"""
36-
It deletes multiple elements from a list, given a list of indices
36+
It deletes multiple elements from a list, given a list of indices.
3737
3838
:param list_object: The list object you want to delete elements from
3939
:param indices: a list of indices to be deleted

0 commit comments

Comments
 (0)