Skip to content

SVM model is not reproducible #80

Description

@MaxenceGollier

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions