We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdd832 commit ac9c2e4Copy full SHA for ac9c2e4
src/htm/algorithms/TemporalMemory.cpp
@@ -36,7 +36,7 @@
36
#include <iterator>
37
#include <string>
38
#include <vector>
39
-#include <unordered_set>
+#include <set>
40
41
42
#include <htm/algorithms/TemporalMemory.hpp>
@@ -604,8 +604,8 @@ SDR TemporalMemory::getPredictiveCells() const {
604
correctDims.push_back(static_cast<CellIdx>(getCellsPerColumn()));
605
SDR predictive(correctDims);
606
607
- std::unordered_set<CellIdx> uniqueCells;
608
- uniqueCells.reserve(activeSegments_.size());
+ std::set<CellIdx> uniqueCells;
+ //uniqueCells.reserve(activeSegments_.size());
609
610
for (const auto segment : activeSegments_) {
611
const CellIdx cell = connections.cellForSegment(segment);
0 commit comments