You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When doing the same simple RF classifier training on an Intel Xeon and on Mac M2, metrics are different (and of course trees are also different).
importydf# Yggdrasil Decision Forestsimportpandasaspd# We use Pandas to load small datasets# Download a classification dataset and load it as a Pandas DataFrame.ds_path="https://raw.githubusercontent.com/google/yggdrasil-decision-forests/main/yggdrasil_decision_forests/test_data/dataset"train_ds=pd.read_csv(f"{ds_path}/adult_train.csv")
test_ds=pd.read_csv(f"{ds_path}/adult_test.csv")
model=ydf.RandomForestLearner(label="income",
task=ydf.Task.CLASSIFICATION).train(train_ds)
evaluation=model.evaluate(test_ds)
print(evaluation)
Accuracy is :
Intel: 0.866005
M2 Max : 0.866107
The other metrics and the threes are also different.
The same problem happened on Scikit-Learn and XGBoost when setting some hyper parameters using random number generation. It acts like if the random sequence is not the same between Intel and ARM.
But it does not happened with LightGBM that is the only one enabling perfect reproducibility no matter the CPU.
The text was updated successfully, but these errors were encountered:
When doing the same simple RF classifier training on an Intel Xeon and on Mac M2, metrics are different (and of course trees are also different).
Accuracy is :
The other metrics and the threes are also different.
The same problem happened on Scikit-Learn and XGBoost when setting some hyper parameters using random number generation. It acts like if the random sequence is not the same between Intel and ARM.
But it does not happened with LightGBM that is the only one enabling perfect reproducibility no matter the CPU.
The text was updated successfully, but these errors were encountered: