Changeset 324
- Timestamp:
- 12/16/11 10:17:25 (13 years ago)
- Location:
- trunk/EventBenchConsole/src/de/ugoe/cs/eventbench
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/AbstractTrainCommand.java
r246 r324 81 81 return; 82 82 } 83 Collection<List< Event<?>>> sequences = (Collection<List<Event<?>>>) dataObject;83 Collection<List<? extends Event<?>>> sequences = (Collection<List<? extends Event<?>>>) dataObject; 84 84 85 85 TrieBasedModel model = createModel(); -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/commands/CMDupdateModel.java
r240 r324 52 52 return; 53 53 } 54 Collection<List< Event<?>>> sequences = (Collection<List<Event<?>>>) dataObject;54 Collection<List<? extends Event<?>>> sequences = (Collection<List<? extends Event<?>>>) dataObject; 55 55 56 56 dataObject = GlobalDataContainer.getInstance().getData(modelname); -
trunk/EventBenchConsole/src/de/ugoe/cs/eventbench/efg/EFGModelGenerator.java
r227 r324 44 44 EFG efg = (EFG) IO.readObjFromFile(efgFileName, EFG.class); 45 45 46 Collection<List< Event<?>>> subsequences = generateEdgeSequences(efg);46 Collection<List<? extends Event<?>>> subsequences = generateEdgeSequences(efg); 47 47 FirstOrderMarkovModel model = new FirstOrderMarkovModel(new Random()); 48 48 model.train(subsequences); … … 63 63 EFG efg = (EFG) IO.readObjFromFile(efgFileName, EFG.class); 64 64 65 Collection<List< Event<?>>> subsequences = generateEdgeSequences(efg);65 Collection<List<? extends Event<?>>> subsequences = generateEdgeSequences(efg); 66 66 DeterministicFiniteAutomaton model = new DeterministicFiniteAutomaton( 67 67 new Random()); … … 81 81 * @return edge sequence set 82 82 */ 83 private Collection<List< Event<?>>> generateEdgeSequences(EFG efg) {83 private Collection<List<? extends Event<?>>> generateEdgeSequences(EFG efg) { 84 84 List<Event<?>> events = createEvents(efg); 85 85 /* … … 89 89 */ 90 90 EventGraphType efgGraph = efg.getEventGraph(); 91 Collection<List< Event<?>>> subsequences = new LinkedList<List<Event<?>>>();91 Collection<List<? extends Event<?>>> subsequences = new LinkedList<List<? extends Event<?>>>(); 92 92 93 93 int efgSize = events.size();
Note: See TracChangeset
for help on using the changeset viewer.