-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error for certain scatter plots #4
Comments
I can't reproduce the error but do get the warning here. I think the warning makes sense but should most likely be supressed. Does the triangulation make sense in cases like this where one variable really is discrete? |
Hm, maybe it just happens on my machine then? It occurs for me when running calc_scags_wide on the features from feasts rather than tsfeatures. In any case I think the calc_scags_wide function should still return results for everything else if it fails for one (or a few) combinations of variables, rather than exiting with an error (though the error message is super useful to understand what is going on!). Could you (or someone else) check if you can run this code? (It seems to me the same issue I get with the anscombe data as well) library(feasts) Plotting the two features that cause the error for me would be: |
this should be fixed now |
Nope, it fixed the problem with Anscombe but still exists for the birdsong example |
problem is in sc_convex:
|
and skinny:
|
This is fixed now. Would be good for someone to check it. |
The individual functions seem to all work now, but I still get errors when going through the wrapper function, e.g.
And of course also when going via calc_scags_wide |
Most issues have been fixed, but I still get an error with the feats_birdsong data for combinations with only two unique points (so only two points after removing duplicates), this happens for ndiffs vs kpss_pvalue. Maybe the solution could be to remove duplicates as the first thing in the original_and_robust function and return NULL if there are less than three points left, then check that we still have >= 3 points again after outlier removal. By returning NULL from this function we currently record all scagnostics values as NA in the result. |
Sometimes the triangulation (?) throws errors, maybe to do with discreetness? Simple example is
calc_scags(anscombe$x1, anscombe$x4)
Fehler in tri.mesh(X) : NA/NaN/Inf in externem Funktionsaufruf (arg 3)
Zusätzlich: Warnmeldungen:
1: In tri.mesh(X) : success: collinearities reduced through jitter
2: In tri.mesh(X) : dataset started with 3 colinear points, jitter added!
But I saw the same error with more complex scatter plots too.
This will throw the calc_scags_wide function, so maybe catch and return NA instead?
The text was updated successfully, but these errors were encountered: