Skip to content
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

add hotgym data for NuPIC example #69

Merged
merged 16 commits into from
Jan 12, 2016

Conversation

breznak
Copy link
Member

@breznak breznak commented Jan 11, 2016

  • @rhyolight here is the full example file from hotgym
  • the windowing seems to cause problems, I'd suggest disabling for now until we need it in online monitoring PR (eg anomalies don't highlight with it, probably should add UI control so users can choose, as the hotgym example gets truncated too, ...)
  • fixed the "fixed 2 rows skipped in header" for non-OPF files
  • fix/workaround problem with OPF files having a reset field (causes nonmonotonic timestamps)

Fixes #10
Fixes #70

// buffer size (in rows/items) used for DyGraph streaming, default 10000
// each batch existing values are dropped, new WINDOW_SIZE is painted. Graph will "move to the right".
// -1 : data never dropped, just append. Graph will "shrink".
WINDOW_SIZE : 10000,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is BUFFER_SIZE now.

@breznak
Copy link
Member Author

breznak commented Jan 12, 2016

@jefffohl this is ready for your review. Functionality is complete. Resolves a couple of issues.
But if you have already a PR in progress, this can wait, or I'll help you resolving the merge conflicts..

@breznak
Copy link
Member Author

breznak commented Jan 12, 2016

@rhyolight this branch is ready to test, if you wanna give it a shot.

@breznak breznak added this to the v1.0 milestone Jan 12, 2016
@rhyolight
Copy link
Contributor

@breznak where exactly did you get that data file? The predictions look bad.

@rhyolight
Copy link
Contributor

Chart looks good to me 👍

@breznak
Copy link
Member Author

breznak commented Jan 12, 2016

where exactly did you get that data file? The predictions look bad.

Thanks. [discussed on chat, the file is from "official nupic" hotgym example.]

@jefffohl
Copy link
Member

Thanks @breznak - can you explain how windowing is causing problems?

@breznak
Copy link
Member Author

breznak commented Jan 12, 2016

@jefffohl

can you explain how windowing is causing problems?

it is not, actually. I've tried to cross that out in the PR description, the problem was caused by the reset fields, which is fixed as a part of the PR.

@@ -221,19 +231,17 @@ angular.module('app').controller('appCtrl', ['$scope', '$http', '$timeout', 'app
worker: false, // multithreaded, !but does NOT work with other libs in app.js or streaming
comments: "#",
chunk: function(chunk, parser) {
if (!firstChunkComplete) {
streamParser = parser;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason I was putting this here was to avoid assigning parser to streamParser this over and over again. I don't know how expensive it is to keep assigning the same thing over and over though - probably less than doing the check for firstChunkComplete? If you want to remove firstChunkComplete you can. Note that it is initialized above.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it depends on the interpreter etc, but it seems like it's nothing compared to nothing:
https://stackoverflow.com/questions/4043455/which-costs-more-while-looping-assignment-or-an-if-statement
For which I'd prefer the simpler approach.

@jefffohl
Copy link
Member

👍 Looks good @breznak. Thanks!

One thing that really needs updates is the notifications system. We have a lot of user feedback to show now that tell the user how the app is interpreting the data. I am starting to think we need a scrolling console or something similar in the UI. Having all the alerts pile up the way they are now is not working well. We should probably have that addressed before release v1.0

jefffohl added a commit that referenced this pull request Jan 12, 2016
add hotgym data for NuPIC example
@jefffohl jefffohl merged commit 32eaaae into htm-community:master Jan 12, 2016
@breznak breznak mentioned this pull request Jan 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants