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

two_gram_model_test.py #22

Open
chhenning opened this issue Jan 17, 2018 · 0 comments
Open

two_gram_model_test.py #22

chhenning opened this issue Jan 17, 2018 · 0 comments

Comments

@chhenning
Copy link
Owner

..E..s
======================================================================
ERROR: testCategoryPredictions (__main__.TwoGramModelTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "two_gram_model_test.py", line 144, in testCategoryPredictions
    results = twoGramModel.run(inputRecord)
  File "D:\nupic\src\python\python3\nupic\frameworks\opf\two_gram_model.py", line 71, in run
    inputFieldEncodings = self._encoder.encodeEachField(inputRecord)
  File "D:\nupic\src\python\python3\nupic\encoders\multi.py", line 127, in encodeEachField
    encodings.append(encoder.encode(getattr(inputRecord, name)))
  File "D:\nupic\src\python\python3\nupic\encoders\base.py", line 150, in encode
    self.encodeIntoArray(inputData, output)
  File "D:\nupic\src\python\python3\nupic\encoders\sdr_category.py", line 240, in encodeIntoArray
    index = self.getBucketIndices(input)[0]
  File "D:\nupic\src\python\python3\nupic\encoders\sdr_category.py", line 232, in getBucketIndices
    return self.getScalars(input)
  File "D:\nupic\src\python\python3\nupic\encoders\sdr_category.py", line 218, in getScalars
    self._addCategory(input)
  File "D:\nupic\src\python\python3\nupic\encoders\sdr_category.py", line 170, in _addCategory
    newrep = self._newRep()
  File "D:\nupic\src\python\python3\nupic\encoders\sdr_category.py", line 198, in _newRep
    "%d attempts" % (self.ncategories, maxAttempts))
RuntimeError: Error, could not find unique pattern 1 after 1000 attempts

----------------------------------------------------------------------
Ran 6 tests in 0.146s

FAILED (errors=1, skipped=1)

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

No branches or pull requests

1 participant