Skip to content

Commit aeddd29

Browse files
committed
Add dirty prints to check seeds and numpy max on difference platforms
1 parent 663641c commit aeddd29

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sklearn/linear_model/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ def make_dataset(X, y, sample_weight, random_state=None):
8282
print("Dataset seed %s" % seed)
8383

8484
if X.dtype == np.float32:
85+
print("float 32")
8586
CSRData = CSRDataset32
8687
ArrayData = ArrayDataset32
8788
else:
89+
print("float 64")
8890
CSRData = CSRDataset64
8991
ArrayData = ArrayDataset64
9092

sklearn/linear_model/sgd_fast.pyx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,9 @@ def _plain_sgd(np.ndarray[double, ndim=1, mode='c'] weights,
677677
# do not learn on the validation set
678678
continue
679679

680+
with gil:
681+
print("sample_index %s" % sample_index)
682+
680683
p = w.dot(x_data_ptr, x_ind_ptr, xnnz) + intercept
681684
if learning_rate == OPTIMAL:
682685
eta = 1.0 / (alpha * (optimal_init + t - 1))

0 commit comments

Comments
 (0)