Closed cbrnr closed 1 year ago
Those warnings occur for analysis windows where there are no heartbeats (or just heartbeats with equal distances, voiding some statistical measures), in which case the resulting feature value is nan
. We should be able to avoid them by removing those windows from NN
before calculating the features (and just directly set the respective entries in the feature matrix to np.nan
). Features with value nan
are masked in prepare_data_keras
, so this does not influence the classification.
Alternatively, we could also catch (and silence) those warnings if there is nothing to warn about. Which solution would you prefer?
Avoiding the warnings turned out to be very cumbersome, so I made the changes to ignore them in #142.
When running
examples/classifiers/wrn_gru_mesa.py
, I noticed several warnings duringextract_features()
:Are these warnings problematic? Should we take a closer look and try to fix them? Or if they are OK, how do they influence the results (is a feature
nan
e.g. when a division by zero occurs)?