JuliaSmoothOptimizers / JuliaSmoothOptimizers/RegularizedProblems.jl

SVM model is not reproducible

Open
#80 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
5
Forks
9
PR merge metrics
No merged PRs in 30d

Description

[xk.txt](https://github.com/user-attachments/files/24646146/xk.txt)

with this file,
```
using DelimitedFiles, RegularizedProblems, MLDatasets, LinearAlgebra, NLPModels
Random.seed!(1234)
model, nls_model, _ = RegularizedProblems.svm_train_model()
xk = vec(readdlm("xk.txt"))

BLAS.set_num_threads(6)
println("value with 6 threads : $(obj(model, xk))")

BLAS.set_num_threads(1)
println("value with 1 thread : $(obj(model, xk))")
```
returns
```
value with 6 threads : 2917.462526583066
value with 1 thread : 2917.4625265830664
```
error like these propagate and eventually make unreproducible results.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.