Open aristotelis96 opened 1 year ago
Thanks, I can confirm this. Sadly, there is even a test components_read.daphne
, which is just not integrated into the test suite. I'll dig into this a bit further.
I also ran into this and I believe I have a fix for this (the "returned an unknown result type" error). I'll pull that out of my wip into a separate commit later today and let you have a look at it :eyes:
I didn't start looking into this yet, so please go ahead!
I noticed that pca.daph
does not seem to work either, it crashes with segmentation fault. Unfortunately I was not able to get a more useful error message.
PCA example that used to work before 2fc8a9e:
bin/daphne scripts/algorithms/pca.daph X=\"data/wine.csv\" K=2 center=true scale=false Xout=\"outX.csv\" Mout=\"outM.csv\"
I fixed the pca.daph
issue (see #637). The original issue with components_read.daph
is still pending as the cure that I have for this problem is not working in all cases I tested.
Setup
scripts/algorithms/components.daph
generates a random matrix and runs the connected components algorithm.Instead of generating a matrix, we can also use an existing matrix which can be read using the
readMatrix
operation. We only need to comment-out the random-generated input and use thereadMatrix
op:Example
Issue
However this causes daphne to crash with seg fault:
By re-running multiple times I was able to get a more helpful error (once every ~50 tries):
Notes
readMatrix
version of connected components, when this is fixed.diff==0
and instead you need to iterate over a specified amount of iterations: