Skip to content

Commit c15054a

Browse files
committed
Merge pull request scikit-learn#2775 from stefan-w/python-3-fix
python 3 compatibility fix
2 parents ab52527 + 8f1dd32 commit c15054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/gaussian_process/gaussian_process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def l1_cross_distances(X):
4848
"""
4949
X = array2d(X)
5050
n_samples, n_features = X.shape
51-
n_nonzero_cross_dist = n_samples * (n_samples - 1) / 2
51+
n_nonzero_cross_dist = n_samples * (n_samples - 1) // 2
5252
ij = np.zeros((n_nonzero_cross_dist, 2), dtype=np.int)
5353
D = np.zeros((n_nonzero_cross_dist, n_features))
5454
ll_1 = 0

0 commit comments

Comments
 (0)