Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

KeyError in complete-opf-example.py #3883

Open
RootChenLQ opened this issue Oct 30, 2019 · 1 comment
Open

KeyError in complete-opf-example.py #3883

RootChenLQ opened this issue Oct 30, 2019 · 1 comment

Comments

@RootChenLQ
Copy link

RootChenLQ commented Oct 30, 2019

There is nan value in multistepBucketLikelihoods, when I use my own dataset, and set _NUM_RECORDS as 6000. The error is listed as below.

multistepBucketLikelihoods = {1: {499: 1.0}, 5: {499: nan, 501: 0.0}}
File "D:\ProgramData\PythonWorkspace\nupic\docs\examples\opf\test.py", line 52, in runHotgym fiveStepConfidence = allPredictions[5][fiveStep]
File "D:\ProgramData\PythonWorkspace\nupic\docs\examples\opf\test.py", line 65, in <module>
    results = runHotgym(_NUM_RECORDS)

Thank you for your Help.

@rhyolight
Copy link
Member

It may be that your data set is missing some data?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants