High performance, easy-to-use, and scalable machine learning (ML) package, including linear model (LR), factorization machines (FM), and field-aware factorization machines (FFM) for Python and CLI interface.
Hi, creating models with the same seed in the same program generates different training loss and predictions.
import xlearn as xl
for i in range(10):
model = xl.FMModel(task="reg", seed=1, nthread=1, opt="adagrad")
model.fit("data.csv")
print(i, model.predict("data.csv")[:5].tolist())
The results are consistent between each run, but not consistent in the same run.
I also tried with model.fit("data.csv", is_lock_free=False) since the docs mention lock-free training can be non-deterministic, but it didn't change the results.
Hi, creating models with the same seed in the same program generates different training loss and predictions.
The results are consistent between each run, but not consistent in the same run.
Here's the CSV file if it helps to reproduce: https://gist.github.com/ankane/1604be5a95aa9536b87daa7e7c643023