44
44
import org .numenta .nupic .algorithms .CLAClassifier ;
45
45
import org .numenta .nupic .algorithms .Classification ;
46
46
import org .numenta .nupic .algorithms .SpatialPooler ;
47
- import org .numenta .nupic .algorithms .TemporalMemory ;
47
+ import org .numenta .nupic .algorithms .OldTemporalMemory ;
48
48
import org .numenta .nupic .encoders .DateEncoder ;
49
49
import org .numenta .nupic .encoders .Encoder ;
50
50
import org .numenta .nupic .encoders .EncoderTuple ;
@@ -186,7 +186,7 @@ public class Layer<T> implements Persistable {
186
186
protected HTMSensor <?> sensor ;
187
187
protected MultiEncoder encoder ;
188
188
protected SpatialPooler spatialPooler ;
189
- protected TemporalMemory temporalMemory ;
189
+ protected OldTemporalMemory temporalMemory ;
190
190
private Boolean autoCreateClassifiers ;
191
191
private Anomaly anomalyComputer ;
192
192
@@ -203,11 +203,11 @@ public class Layer<T> implements Persistable {
203
203
protected int [] feedForwardActiveColumns ;
204
204
/** Active column indexes from the {@link SpatialPooler} at time "t" */
205
205
private int [] feedForwardSparseActives ;
206
- /** Predictive {@link Cell}s in the {@link TemporalMemory } at time "t - 1" */
206
+ /** Predictive {@link Cell}s in the {@link OldTemporalMemory } at time "t - 1" */
207
207
private Set <Cell > previousPredictiveCells ;
208
- /** Predictive {@link Cell}s in the {@link TemporalMemory } at time "t" */
208
+ /** Predictive {@link Cell}s in the {@link OldTemporalMemory } at time "t" */
209
209
private Set <Cell > predictiveCells ;
210
- /** Active {@link Cell}s in the {@link TemporalMemory } at time "t" */
210
+ /** Active {@link Cell}s in the {@link OldTemporalMemory } at time "t" */
211
211
private Set <Cell > activeCells ;
212
212
213
213
/** Used to track and document the # of records processed */
@@ -363,12 +363,12 @@ public void setNetwork(Network network) {
363
363
* @param e (optional) The Network API only uses a {@link MultiEncoder} at
364
364
* the top level because of its ability to delegate to child encoders.
365
365
* @param sp (optional) {@link SpatialPooler}
366
- * @param tm (optional) {@link TemporalMemory }
366
+ * @param tm (optional) {@link OldTemporalMemory }
367
367
* @param autoCreateClassifiers (optional) Indicates that the {@link Parameters} object
368
368
* contains the configurations necessary to create the required encoders.
369
369
* @param a (optional) An {@link Anomaly} computer.
370
370
*/
371
- public Layer (Parameters params , MultiEncoder e , SpatialPooler sp , TemporalMemory tm , Boolean autoCreateClassifiers , Anomaly a ) {
371
+ public Layer (Parameters params , MultiEncoder e , SpatialPooler sp , OldTemporalMemory tm , Boolean autoCreateClassifiers , Anomaly a ) {
372
372
373
373
// Make sure we have a valid parameters object
374
374
if (params == null ) {
@@ -549,7 +549,7 @@ public Layer<T> close() {
549
549
550
550
/**
551
551
* Called from {@link FunctionFactory#createSpatialFunc(SpatialPooler)} and from {@link #close()}
552
- * to calculate the size of the input vector given the output source either being a {@link TemporalMemory }
552
+ * to calculate the size of the input vector given the output source either being a {@link OldTemporalMemory }
553
553
* or a {@link SpatialPooler} - from this {@link Region} or a previous {@link Region}.
554
554
*
555
555
* @return the length of the input vector
@@ -590,7 +590,7 @@ int calculateInputWidth() {
590
590
591
591
/**
592
592
* For internal use only. Returns a flag indicating whether this {@link Layer}
593
- * contains a {@link TemporalMemory }
593
+ * contains a {@link OldTemporalMemory }
594
594
* @return
595
595
*/
596
596
boolean hasTM () {
@@ -804,12 +804,12 @@ public Layer<T> add(SpatialPooler sp) {
804
804
}
805
805
806
806
/**
807
- * Adds a {@link TemporalMemory } to this {@code Layer}
807
+ * Adds a {@link OldTemporalMemory } to this {@code Layer}
808
808
*
809
809
* @param tm the added TemporalMemory
810
810
* @return this Layer instance (in fluent-style)
811
811
*/
812
- public Layer <T > add (TemporalMemory tm ) {
812
+ public Layer <T > add (OldTemporalMemory tm ) {
813
813
if (isClosed ) {
814
814
throw new IllegalStateException ("Layer already \" closed\" " );
815
815
}
@@ -1194,7 +1194,7 @@ public int[] getFeedForwardActiveColumns() {
1194
1194
}
1195
1195
1196
1196
/**
1197
- * Returns the {@link Cell}s activated in the {@link TemporalMemory } at time
1197
+ * Returns the {@link Cell}s activated in the {@link OldTemporalMemory } at time
1198
1198
* "t"
1199
1199
*
1200
1200
* @return
@@ -1263,7 +1263,7 @@ public Layer<T> resetRecordNum() {
1263
1263
}
1264
1264
1265
1265
/**
1266
- * Resets the {@link TemporalMemory } if it exists.
1266
+ * Resets the {@link OldTemporalMemory } if it exists.
1267
1267
*/
1268
1268
public void reset () {
1269
1269
if (temporalMemory == null ) {
@@ -1275,7 +1275,7 @@ public void reset() {
1275
1275
1276
1276
/**
1277
1277
* Returns a flag indicating whether this {@code Layer} contains a
1278
- * {@link TemporalMemory }.
1278
+ * {@link OldTemporalMemory }.
1279
1279
*
1280
1280
* @return
1281
1281
*/
@@ -1784,7 +1784,7 @@ private Observable<ManualInput> fillInOrderedSequence(Observable<ManualInput> o)
1784
1784
} else {
1785
1785
o = o .map (factory .createSpatialFunc (spatialPooler ));
1786
1786
}
1787
- } else if (node instanceof TemporalMemory ) {
1787
+ } else if (node instanceof OldTemporalMemory ) {
1788
1788
o = o .map (factory .createTemporalFunc (temporalMemory ));
1789
1789
}
1790
1790
}
@@ -1947,7 +1947,7 @@ protected int[] spatialInput(int[] input) {
1947
1947
}
1948
1948
1949
1949
/**
1950
- * Called internally to invoke the {@link TemporalMemory }
1950
+ * Called internally to invoke the {@link OldTemporalMemory }
1951
1951
*
1952
1952
* @param input the current input vector
1953
1953
* @param mi the current input inference container
@@ -2293,7 +2293,7 @@ public ManualInput call(ManualInput t1) {
2293
2293
};
2294
2294
}
2295
2295
2296
- public Func1 <ManualInput , ManualInput > createTemporalFunc (final TemporalMemory tm ) {
2296
+ public Func1 <ManualInput , ManualInput > createTemporalFunc (final OldTemporalMemory tm ) {
2297
2297
return new Func1 <ManualInput , ManualInput >() {
2298
2298
2299
2299
@ Override
0 commit comments