Skip to content

Commit b04162f

Browse files
committed
clean up imports
1 parent b2a156b commit b04162f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

sandbox/rdpg_sweep.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@
22
import datetime
33
import time
44

5-
import matplotlib as mpl
65
import matplotlib.pyplot as plt
76
import numpy as np
87
import pandas as pd
98
import seaborn as sns
9+
from graspologic.embed import AdjacencySpectralEmbed
1010
from pkg.data import load_split_connectome
1111
from pkg.io import OUT_PATH
1212
from pkg.io import glue as default_glue
1313
from pkg.io import savefig
14-
from pkg.match import GraphMatchSolver
15-
from pkg.plot import matched_stripplot, method_palette, set_theme
14+
from pkg.plot import set_theme
1615
from pkg.utils import get_hemisphere_indices
17-
from scipy.stats import wilcoxon
18-
from sklearn.covariance import log_likelihood
19-
from tqdm import tqdm
16+
2017

2118
FILENAME = "rdpg_sweep"
2219

@@ -42,9 +39,6 @@ def gluefig(name, fig, **kwargs):
4239
rng = np.random.default_rng(8888)
4340
#%%
4441

45-
from graspologic.embed import AdjacencySpectralEmbed
46-
from graspologic.utils import binarize
47-
4842
dataset = "maggot_subset"
4943
adj, nodes = load_split_connectome(dataset, weights=False)
5044

@@ -79,7 +73,7 @@ def compute_log_likelihood(adj, P):
7973
return log_likelihood
8074

8175

82-
pad = 1 / (len(left_adj)**3)
76+
pad = 1 / (len(left_adj) ** 3)
8377

8478
rows = []
8579
for rank in np.arange(1, max_rank):

0 commit comments

Comments
 (0)