Skip to content

Commit 78ef2f2

Browse files
try fix windows
1 parent 9bbb2de commit 78ef2f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn_extra/robust/_robust_weighted_estimator_helper.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import sys
1414
from time import time
1515

1616
from libc.math cimport exp, log, sqrt, pow, fabs
17-
from libc.stdint cimport int64_t
17+
from libc.stdint cimport int32_t
1818
cimport numpy as np
1919
from numpy.math cimport INFINITY
2020

@@ -67,7 +67,7 @@ cpdef np.ndarray[floating] _kmeans_loss(np.ndarray[floating, ndim=2, mode='c'] X
6767
np.ndarray[floating, ndim=2] centers = np.zeros([n_classes,
6868
n_features],
6969
dtype = dtype)
70-
np.ndarray[int64_t] num_in_cluster = np.zeros(n_classes, dtype = int)
70+
np.ndarray[int32_t] num_in_cluster = np.zeros(n_classes, dtype = int)
7171
np.ndarray[floating] inertias = np.zeros(n_samples, dtype = dtype)
7272
for i in range(n_samples):
7373
for j in range(n_features):

0 commit comments

Comments
 (0)