htm-community / nupic.visualizations

Web application for interactive graphs, anomaly highlighting and online monitoring.
MIT License
17 stars 11 forks source link

Data with resets (legal nonmonotonic timestamps) incorrect rendering #70

Open breznak opened 8 years ago

breznak commented 8 years ago

Problem: For example OPF files have a reset field which annotates a new sequence starts. It is perfectly legal for the new sequence to have a different/older timestamp than the previous sequence. This is detected as non-monotonicity in time and causes the graph to be incorrectly rendered.

Solution:

Note:

breznak commented 8 years ago

Thoughts @jefffohl @rhyolight ?

rhyolight commented 8 years ago

@breznak said:

It is perfectly legal for the new sequence to have a different/older timestamp than the previous sequence.

@scottpurdy Is this true?

scottpurdy commented 8 years ago

What code are we talking about here? In the OPF, it is perfectly valid to have resets and older timestamps afterward. But what graph are we talking about?

breznak commented 8 years ago

@scottpurdy just visualization specific problem here. For DyGraphs we need functions (one fn value at given time), OPF with resets does not ensure that, so we should represent the data differently, not plotted as function of time, but as fn of iteration number(step).

scottpurdy commented 8 years ago

Ahh got it. Yes that sounds right. We should use the record number for the x-axis and timestamps just as labels.

rhyolight commented 8 years ago

Thanks @scottpurdy

breznak commented 8 years ago

Reopening for discussion if we should :