Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jundongl committed Mar 4, 2016
1 parent 0699c10 commit ca72133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skfeature/utility/data_discretization.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def data_discretization(X, n_bins):

# discretize X
n_samples, n_features = X.shape
X_discretized = np.zeros(n_samples, n_features)
X_discretized = np.zeros((n_samples, n_features))
bins = np.linspace(0, 1, n_bins)
for i in range(n_features):
X_discretized[:, i] = np.digitize(X_normalized[:, i], bins)
Expand Down

0 comments on commit ca72133

Please sign in to comment.