Skip to content
Open

Fixes #542

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion ddmc/figures/figureM5.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def makeFigure():
hue_loadings_title="p < 0.01",
)

print(is_tumor)
plot_p_signal_across_clusters_and_binary_feature(
is_tumor, centers, "is_tumor", axes[3]
)
Expand Down
4 changes: 2 additions & 2 deletions ddmc/logistic_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def plot_roc(
mean_fpr = np.linspace(0, 1, 100)

for _, (train, test) in enumerate(cv.split(X, y)):
classifier.fit(X[train], y[train])
viz = RocCurveDisplay.from_estimator(classifier, X[test], y[test])
classifier.fit(X.iloc[train], y.iloc[train])
viz = RocCurveDisplay.from_estimator(classifier, X.iloc[test], y.iloc[test])
plt.close()
interp_tpr = np.interp(mean_fpr, viz.fpr, viz.tpr)
interp_tpr[0] = 0.0
Expand Down
Loading