Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different results using Windows or Linux #18

Open
mariusbommert opened this issue Jan 8, 2020 · 1 comment
Open

Different results using Windows or Linux #18

mariusbommert opened this issue Jan 8, 2020 · 1 comment

Comments

@mariusbommert
Copy link

Hello,

I would like to know why the results using Windows or Linux are different.

library(RSNNS)

set.seed(1)

data = matrix(rnorm(300), ncol = 3)
model = mlp(x = data[1:95, 1:2], y = data[1:95, 3], size = 5)
predict = predict(model, data5[96:100, 1:2])
predict
# Results using Windows:
#           [,1]
# 96  0.02506411
# 97  0.01911207
# 98  0.02082419
# 99  0.01711116
# 100 0.01743222

# Results using Linux:
#           [,1]
# 96  0.02582934
# 97  0.01976289
# 98  0.02150856
# 99  0.01771399
# 100 0.01804006

The R versions and the versions of package RSNNS are the same.

Best regards,
Marius

@cbergmeir
Copy link
Owner

Hi,

good question, to be honest I don't know. Either different random number generators, or different compiler optimizations or similar come to mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants