forked from numenta/nupic.core-legacy
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Connections: apply synapsesCompetition() in adaptSegment() #584
Open
breznak
wants to merge
10
commits into
master
Choose a base branch
from
sp_syn_competition
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7394e27
Connections:destroySynapse fixup, use find
breznak 37a0d98
SP: allow synapse pruning in adaptSegment
breznak fd58f25
Connections:adaptSegment use synapsesCompetition
breznak 9a1bbf9
Connections: introduce Random rng_ member
breznak b2cc6c4
Revert "Connections: introduce Random rng_ member"
breznak dad10c0
update syn competition bounds
breznak c30ab38
Merge branch 'master_community' into sp_syn_competition
breznak 85805f0
Merge branch 'master_community' into sp_syn_competition
breznak bbe17a9
Merge branch 'master_community' into sp_syn_competition
breznak 99dfa19
Merge branch 'master_community' into sp_syn_competition
breznak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -469,7 +469,7 @@ class Connections : public Serializable | |
* @param increment Change in permanence for synapses with active presynapses. | ||
* @param decrement Change in permanence for synapses with inactive presynapses. | ||
* @param pruneZeroSynapses (default false) If set, synapses that reach minPermanence(aka. "zero") | ||
* are removed. This is used in TemporalMemory. | ||
* are removed. This is used in TemporalMemory and SpatialPooler. | ||
* @param segmentThreshold (optional) (default 0) Minimum number of connected synapses for a segment | ||
* to be considered active. @see raisePermenencesToThreshold(). Equivalent to `SP.stimulusThreshold`. | ||
* If `pruneZeroSynapses` is used and synapses are removed, if the amount of synapses drops below | ||
|
@@ -523,7 +523,7 @@ class Connections : public Serializable | |
*/ | ||
void synapseCompetition( const Segment segment, | ||
const SynapseIdx minimumSynapses, | ||
const SynapseIdx maximumSynapses); | ||
const SynapseIdx maximumSynapses); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TODO
|
||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -710,7 +710,7 @@ Real SpatialPooler::avgConnectedSpanForColumnND_(const UInt column) const { | |
void SpatialPooler::adaptSynapses_(const SDR &input, | ||
const SDR &active) { | ||
for(const auto &column : active.getSparse()) { | ||
connections_.adaptSegment(column, input, synPermActiveInc_, synPermInactiveDec_); | ||
connections_.adaptSegment(column, input, synPermActiveInc_, synPermInactiveDec_, true); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SP also does prune synapses (like TM)
|
||
connections_.raisePermanencesToThreshold( column, stimulusThreshold_ ); | ||
} | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the only big remaining issue - how to choose good values for these?
Any tips @ctrl-z-9000-times ?