Changeset 10 for trunk/EventBenchConsole
- Timestamp:
- 04/13/11 14:15:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDtrainPPM.java
r8 r10 15 15 @Override 16 16 public void help() { 17 Console.println("Usage: trainPPM <modelName> ");17 Console.println("Usage: trainPPM <modelName> <order>"); 18 18 } 19 19 … … 22 22 public void run(List<Object> parameters) { 23 23 String modelname; 24 int order; 24 25 try { 25 26 modelname = (String) parameters.get(0); 27 order = Integer.parseInt((String) parameters.get(1)); 26 28 } catch (Exception e) { 27 29 throw new InvalidParameterException(); … … 35 37 if( sequences.size()>0 ) { 36 38 if( sequences.get(0).get(0) instanceof Event ) { 37 PredictionByPartialMatch model = new PredictionByPartialMatch( new Random());39 PredictionByPartialMatch model = new PredictionByPartialMatch(order, new Random()); 38 40 model.train(sequences); 39 41 if( GlobalDataContainer.getInstance().addData(modelname, model) ) {
Note: See TracChangeset
for help on using the changeset viewer.