Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
d-schindler committed Apr 23, 2024
1 parent 5807ea6 commit 41ab488
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pygenstability/data_clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ def __init__(

def get_graph(self, X):
"""Construct graph from samples-by-features matrix."""

# if precomputed take X as adjacency matrix
if self.method == "precomputed":
assert (
Expand Down Expand Up @@ -134,7 +133,6 @@ def labels_(self):

def fit(self, X):
"""Construct graph and run PyGenStability for multiscale data clustering."""

# construct graph
self.adjacency_ = csr_matrix(self.get_graph(X))

Expand All @@ -147,7 +145,6 @@ def scale_selection(
self, kernel_size=0.1, window_size=0.1, max_nvi=1, basin_radius=0.01
):
"""Identify optimal scales."""

# transform relative values to absolute values
if kernel_size < 1:
kernel_size = int(kernel_size * self.results_["run_params"]["n_scale"])
Expand Down Expand Up @@ -178,7 +175,6 @@ def plot_robust_partitions(
self, x_coord, y_coord, edge_width=1, node_size=20, cmap="tab20"
):
"""Plot robust partitions."""

for m, partition in enumerate(self.labels_):

# plot
Expand Down Expand Up @@ -215,7 +211,6 @@ def plot_sankey(
scale_index=None,
):
"""Plot Sankey diagram."""

# plot non-trivial optimal scales only
if optimal_scales:
n_partitions = len(self.labels_)
Expand Down

0 comments on commit 41ab488

Please sign in to comment.