Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgigante committed Feb 9, 2021
1 parent 79be70c commit 6480703
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Python/phate/phate.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class PHATE(BaseEstimator):
non-zero values down the diagonal. This is detected automatically using
`data[0,0]`. You can override this detection with
`knn_dist='precomputed_distance'` or `knn_dist='precomputed_affinity'`.
knn_max : int, optional, default: None
Maximum number of neighbors for which alpha decaying kernel
is computed for each point. For very large datasets, setting `knn_max`
Expand Down Expand Up @@ -319,7 +319,9 @@ def _check_params(self):
ValueError : unacceptable choice of parameters
"""
utils.check_positive(n_components=self.n_components, knn=self.knn)
utils.check_int(n_components=self.n_components, knn=self.knn, n_jobs=self.n_jobs)
utils.check_int(
n_components=self.n_components, knn=self.knn, n_jobs=self.n_jobs
)
utils.check_between(-1, 1, gamma=self.gamma)
utils.check_if_not(None, utils.check_positive, decay=self.decay)
utils.check_if_not(
Expand All @@ -328,7 +330,7 @@ def _check_params(self):
utils.check_int,
n_landmark=self.n_landmark,
n_pca=self.n_pca,
knn_max=self.knn_max
knn_max=self.knn_max,
)
utils.check_if_not("auto", utils.check_positive, utils.check_int, t=self.t)
if not callable(self.knn_dist):
Expand Down Expand Up @@ -467,7 +469,7 @@ def set_params(self, **params):
non-zero values down the diagonal. This is detected automatically
using `data[0,0]`. You can override this detection with
`knn_dist='precomputed_distance'` or `knn_dist='precomputed_affinity'`.
knn_max : int, optional, default: None
Maximum number of neighbors for which alpha decaying kernel
is computed for each point. For very large datasets, setting `knn_max`
Expand Down

0 comments on commit 6480703

Please sign in to comment.