forked from MrBly/WalnutiQ
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ResetModelParameters.java
28 lines (25 loc) · 1.18 KB
/
ResetModelParameters.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package model.MARK_II.parameters;
import model.MARK_II.Column;
import model.MARK_II.Segment;
import model.MARK_II.SpatialPooler;
import model.MARK_II.Synapse;
/**
* @author Quinn Liu ([email protected])
* @version April 30, 2013
*/
public class ResetModelParameters {
public static void reset(double PERMANENCE_INCREASE,
double PERMANENCE_DECREASE, double MINIMAL_CONNECTED_PERMANENCE,
double INITIAL_PERMANENCE,
double PERCENT_ACTIVE_SYNAPSES_THRESHOLD,
double EXPONENTIAL_MOVING_AVERAGE_AlPHA,
double MINIMUM_COLUMN_FIRING_RATE) {
Synapse.PERMANENCE_INCREASE = PERMANENCE_INCREASE;
Synapse.PERMANENCE_DECREASE = PERMANENCE_DECREASE;
Synapse.MINIMAL_CONNECTED_PERMANENCE = MINIMAL_CONNECTED_PERMANENCE;
Synapse.INITIAL_PERMANENCE = INITIAL_PERMANENCE;
Segment.PERCENT_ACTIVE_SYNAPSES_THRESHOLD = PERCENT_ACTIVE_SYNAPSES_THRESHOLD;
Column.EXPONENTIAL_MOVING_AVERAGE_AlPHA = (float) EXPONENTIAL_MOVING_AVERAGE_AlPHA;
SpatialPooler.MINIMUM_COLUMN_FIRING_RATE = (float) MINIMUM_COLUMN_FIRING_RATE;
}
}