-
Notifications
You must be signed in to change notification settings - Fork 0
/
CANTExperiment.java
executable file
·57 lines (44 loc) · 1.25 KB
/
CANTExperiment.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import java.io.*;
import java.util.*;
public class CANTExperiment {
public int trainingLength = -1;
boolean inTest = false;
public CANTExperiment () {}
public boolean getInTest(){return inTest;}
public static CANTNet getNet(String otherNetName) {
Enumeration eNum = CANT23.nets.elements();
CANTNet net = (CANTNet)eNum.nextElement();
String netName = net.getName();
while (netName.compareTo(otherNetName) != 0)
{
net = (CANTNet)eNum.nextElement();
netName = net.getName();
}
return (net);
}
public boolean experimentDone (int Step) {
return (false);
}
public void switchToTest () {}
public void measure(int currentStep) {}
public int selectPattern (int curPattern, int numPatterns, CANTNet net) {
curPattern++;
curPattern %= numPatterns;
return (curPattern);
}
public boolean isEndEpoch(int Cycle) {
return (false);
}
public void endEpoch() {
Enumeration eNum = CANT23.nets.elements();
CANTNet net;
do {
net = (CANTNet)eNum.nextElement();
net.clear();
}
while (eNum.hasMoreElements());
}
public void printExpName () {
System.out.println("base experiment");
}
}