Skip to content

Commit 0268f66

Browse files
committed
changed data for machine learnin example
1 parent f811f3a commit 0268f66

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/machine_learning/logistic_regression.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env python
22

33
#######################################################
4-
# Copyright (c) 2019, ArrayFire
4+
# Copyright (c) 2024, ArrayFire
55
# All rights reserved.
66
#
77
# This file is distributed under 3-clause BSD license.
@@ -107,7 +107,7 @@ def benchmark_logistic_regression(train_feats, train_targets, test_feats):
107107
t0 = time.time()
108108
Weights = train(train_feats, train_targets, 0.1, 1.0, 0.01, 1000)
109109
af.eval(Weights)
110-
af.sync(-1)
110+
af.sync()
111111
t1 = time.time()
112112
dt = t1 - t0
113113
print('Training time: {0:4.4f} s'.format(dt))
@@ -117,7 +117,7 @@ def benchmark_logistic_regression(train_feats, train_targets, test_feats):
117117
for i in range(iters):
118118
test_outputs = predict_prob(test_feats, Weights)
119119
af.eval(test_outputs)
120-
af.sync(-1)
120+
af.sync()
121121
t1 = time.time()
122122
dt = t1 - t0
123123
print('Prediction time: {0:4.4f} s'.format(dt / iters))

0 commit comments

Comments
 (0)