Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Stomps committed Jan 16, 2023
1 parent f731a56 commit c9cb249
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ def cross_validation(model, X, y, params, n_splits=3,
accs = []
reports = []

if stratified:
if stratified: # pragma: no cover
cv = StratifiedKFold(n_splits=n_splits, random_state=random_state,
shuffle=shuffle)
else:
else: # pragma: no cover
cv = KFold(n_splits=n_splits, random_state=random_state,
shuffle=shuffle)

Expand Down Expand Up @@ -191,7 +191,7 @@ def cross_validation(model, X, y, params, n_splits=3,
return reports


def pca(Lx, Ux, n): # pragma: no cover
def pca(Lx, Ux, n): # pragma: no cover
'''
A function for computing n-component PCA.
Inputs:
Expand Down Expand Up @@ -293,7 +293,7 @@ def plot_pca(principalComponents, Ly, Uy, filename, n=2): # pragma: no cover
fig.savefig(filename)


def plot_cf(testy, predy, title, filename): # pragma: no cover
def plot_cf(testy, predy, title, filename): # pragma: no cover
'''
Uses sklearn metric to compute a confusion matrix for visualization
Inputs:
Expand Down

0 comments on commit c9cb249

Please sign in to comment.