Skip to content

Commit cc2e1df

Browse files
Removed blank lines to make it OK w/PEP8 #207
1 parent f84c594 commit cc2e1df

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed

instance_selection/_MSS.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def _enemy_distance(dat, tar):
8383
:return: A list of lists, where each list contains a sample, its class,
8484
and its distance to its nearest enemy.
8585
"""
86-
8786
solution = []
8887
for sample, x_class in zip(dat, tar):
8988
distance = sys.maxsize

semisupervised/DensityPeaks.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ def _fit_stdpnf(self):
468468
Self Training based on Density Peaks and a parameter-free noise
469469
filter.
470470
"""
471-
472471
self.__discover_structure()
473472

474473
nan, lambda_param = self.__nan_search()

semisupervised/ensemble/_RESSEL.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def fit(self, labeled, unlabeled, base_estimator, estimator_params=None):
8080
:param estimator_params: dict of params to pass to the estimator.
8181
:return: the ensemble in case is needed.
8282
"""
83-
8483
self._validate_params(base_estimator, labeled, unlabeled)
8584

8685
self._init_ensemble(base_estimator, estimator_params)
@@ -218,7 +217,6 @@ def _robust_self_training(self, iteration, l_i, u_i, oob_i, d_class_i):
218217
:param d_class_i: the proportion of samples to be selected from each
219218
class
220219
"""
221-
222220
y_pred = self.ensemble[iteration].predict(oob_i.iloc[:, :-1])
223221
best_error_i = f1_score(
224222
y_true=np.ravel(oob_i.iloc[:, -1:]),

0 commit comments

Comments
 (0)