Skip to content

Commit 8ab0504

Browse files
committed
linting
1 parent 38589bf commit 8ab0504

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/resistnet/MLPE.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def objective(rho):
2727

2828
bounds = [(0.0001, 0.4999)]
2929
result = minimize(objective, self.rho, bounds=bounds,
30-
method='L-BFGS-B')
30+
method='L-BFGS-B')
3131
self.rho = result.x[0]
3232
return self.rho
3333

@@ -127,4 +127,4 @@ def MLPE(Y, X, scale=True):
127127
# # var_fixed = np.var(result.fittedvalues)
128128
# # var_random = result.cov_re.iloc[0, 0]
129129
# # var_residual = result.scale
130-
# # marginal_r2 = var_fixed / (var_fixed + var_random + var_residual)
130+
# # marginal_r2 = var_fixed / (var_fixed + var_random + var_residual)

src/resistnet/MLPE_R.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,3 @@
9292
# if i + 1 in list(id.iloc[j]):
9393
# zz[i, j] = 1
9494
# return zz
95-

src/resistnet/model_optimisation_ga.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
# fixShape=False, min_weight=0.0, max_shape=None,
134134
# max_hof_size=100, tournsize=10, awsum=0.95, only_keep=True,
135135
# use_full=False, fixed_params=None,
136-
# out=None, plot=True, verbose=True, report_all=False,
136+
# out=None, plot=True, verbose=True, report_all=False,
137137
# threads=1):
138138
# """
139139
# Runs the genetic algorithm for optimizing the ResistNet model.

0 commit comments

Comments
 (0)