Skip to content
Open
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
2 changes: 1 addition & 1 deletion xverse/transformer/_binning.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def train(self, X, y):
ser, bins = pd.qcut(X, max_bins, retbins=True)
bins_X = pd.DataFrame({"X": X, "Y": y, "Bins": ser})
bins_X_grouped = bins_X.groupby('Bins', as_index=True)
r, p = stats.spearmanr(bins_X_grouped.mean().X, bins_X_grouped.mean().y) #spearman operation
r, p = stats.spearmanr(bins_X_grouped.mean().X, bins_X_grouped.mean().Y) #spearman operation
max_bins = max_bins - 1
except Exception as e:
max_bins = max_bins - 1
Expand Down