Closed bl1zzardx closed 7 months ago
Dear @bl1zzardx, thanks for reporting this issue and for the detailed description; and sorry for the delay. I'm able to reproduce these errors on my system (after adjusting the paths in the DaphneDSL script above).
Your DaphneDSL script looks good to me and should work. However, there seems to be a bug unrelated to decision trees and random forests.
As a quick fix, please don't use your function read_csv
, but inline it manually by replacing the lines
x_valid = read_csv("/mnt/daphne_work/ifat_semiconductors/data/x_valid.csv");
y_valid = read_csv("/mnt/daphne_work/ifat_semiconductors/data/y_valid.csv");
by
x_valid = readMatrix("/mnt/daphne_work/ifat_semiconductors/data/x_valid.csv")[1:, 1:];
y_valid = readMatrix("/mnt/daphne_work/ifat_semiconductors/data/y_valid.csv")[1:, 1:];
which is essentially what read_csv
does (apart from the print
, but that does not cause the problem, as far as I can tell).
With this change, the script runs smoothly for dt = 1, 2, 3 on my system and reports an accuracy of approximately 97% in all three cases.
For some background: After a quick investigation, it looks to me like there is a bug related to shape inference and the specialization of user-defined functions. The problem can be triggered with much simpler scripts, as I found out now. I will create a separate issue for it and we will fix this bug.
hi, that solved the problem, thank you!
Hi,
I just tried to run the randomForest / decisionTree algorithms for my project and encountered a couple of different errors, depending on the parameterization used. I am using the latest daphne container available on dockerhub.
encountered issues:
To recreate the problem, you would have to download x_valid.csv and y_valid.csv from here and load it based on your setup. I include the respective csv.meta files here, you'd have to remove the .json ending to use them: