Skip to content
This repository has been archived by the owner on Oct 18, 2020. It is now read-only.

Commit

Permalink
Experimental data.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremiah Via committed Apr 12, 2012
1 parent bd63012 commit 42678c8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion cast_configs/10x1chain/10x1chain.cast
Expand Up @@ -24,4 +24,4 @@ JAVA MG node9 experiments.Node --start --delay "gaussian 100 10"

INCLUDE ../includes/aucom.cast
INCLUDE ../includes/counter.cast
#INCLUDE ../includes/conductor.cast
INCLUDE ../includes/conductor.cast
4 changes: 2 additions & 2 deletions cast_configs/10x1chain/10x1chain_fault.cast
Expand Up @@ -11,7 +11,7 @@ HOST localhost
SUBARCHITECTURE 10x1.sa
JAVA WM cast.architecture.SubarchitectureWorkingMemory
JAVA TM cast.architecture.AlwaysPositiveTaskManager
JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "2500"
JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "10000"
JAVA MG node1 experiments.Node --start --delay "gaussian 100 10"
JAVA MG node2 experiments.Node --start --delay "gaussian 100 10"
JAVA MG node3 experiments.Node --start --delay "gaussian 100 10"
Expand All @@ -24,4 +24,4 @@ JAVA MG node9 experiments.Node --start --delay "gaussian 100 10"

INCLUDE ../includes/aucom.cast
INCLUDE ../includes/counter.cast
#INCLUDE ../includes/conductor.cast
INCLUDE ../includes/conductor.cast
2 changes: 1 addition & 1 deletion cast_configs/4x4chain/4x4chain_fault.cast
Expand Up @@ -5,7 +5,7 @@ SUBARCHITECTURE 4x4.sa
JAVA WM cast.architecture.SubarchitectureWorkingMemory
JAVA TM cast.architecture.AlwaysPositiveTaskManager

JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "13000"
JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "3000"
JAVA MG node1 experiments.Node --follows "node0" --delay "gaussian 100 10"
JAVA MG node2 experiments.Node --follows "node1" --delay "gaussian 100 10"
JAVA MG node3 experiments.Node --follows "node2" --delay "gaussian 100 10" --end
Expand Down
2 changes: 1 addition & 1 deletion cast_configs/three_chain/three_chain_fault.cast
Expand Up @@ -7,7 +7,7 @@ HOST localhost
SUBARCHITECTURE three.sa
JAVA WM cast.architecture.SubarchitectureWorkingMemory
JAVA TM cast.architecture.AlwaysPositiveTaskManager
JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "2000"
JAVA MG node0 experiments.Node --start --delay "gaussian 100 10" --fault "1000"
JAVA MG node1 experiments.Node --follows node0 --delay "gaussian 100 10"
JAVA MG node2 experiments.Node --follows node1 --delay "gaussian 100 10"
JAVA MG node3 experiments.Node --follows node2 --delay "gaussian 100 10" --end
Expand Down
18 changes: 9 additions & 9 deletions src/main/java/org/bham/app/experiment/CastExperiment.java
Expand Up @@ -159,7 +159,7 @@ public void process() {
}


errorTime = cast.getObservation(error).getTimestamp();
errorTime = 0;//cast.getObservation(error).getTimestamp();
faultDetector.stop();
cast.disconnect();
} catch (ActionFailedException e) {
Expand Down Expand Up @@ -258,20 +258,20 @@ public void modelTrainerStatusChanged(StatusChangedEvent evt) {
*/
private T2GramDetector createDetector(T2GramModelI model) {
// load the fault detector
MeanVarianceResult r = new MeanVarianceResult(0.0, 0.0);
try {
r = (MeanVarianceResult) new Replay(observation, model).call();
} catch (Exception e) {
e.printStackTrace();
}
// MeanVarianceResult r = new MeanVarianceResult(0.0, 0.0);
// try {
// r = (MeanVarianceResult) new Replay(observation, model).call();
// } catch (Exception e) {
// e.printStackTrace();
// }

T2GramDetector detector = new T2GramDetector();
detector.setModel(model);


// Create a new classifier with a mean that is a s
detector.setClassificator(new StatisticalAnomalyClassifier(r.getMean(), r.getVariance()));
detector.setSlidingWindow(new SlidingWindow(800, 400));
detector.setClassificator(new StatisticalAnomalyClassifier(0.2, 0.001));//new StatisticalAnomalyClassifier(r.getMean(), r.getVariance()));
detector.setSlidingWindow(new SlidingWindow(200, 100));

System.out.printf("Classifier: %s", detector.getClassificator().getAttributes());
return detector;
Expand Down

0 comments on commit 42678c8

Please sign in to comment.