We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Code in question:
for cell in cells: segments = tm.connections.segmentsForCell(cell) for segment in segments: synapses = tm.connections.synapsesForSegment(segment) for synapse in synapses: current_permanence = tm.connections.permanenceForSynapse(synapse) print(f"Synapse {synapse}: {current_permanence}") tm.connections.updateSynapsePermanence(synapse, 1) permanence = tm.connections.permanenceForSynapse(synapse) print(f"permanence change: {current_permanence} -> {permanence}")
Output:
Synapse 9: 0.10000000149011612 Updating Synapse 9: Current Permanence: 0.1 New Permanence: 1 permanence change: 0.10000000149011612 -> 0.10000000149011612
Expected behavior: The permanence for each synapse should = 1 after updateSynapsePermanence(synapse, 1) is called.
Actual behavior: The permanence = initialPermanence.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Code in question:
Output:
Expected behavior:
The permanence for each synapse should = 1 after updateSynapsePermanence(synapse, 1) is called.
Actual behavior:
The permanence = initialPermanence.
The text was updated successfully, but these errors were encountered: