Last change
on this file since 126 was 126, checked in by Aron Hammond, 6 years ago |
Added function to calculate opposition to MultiLateralAnalysis.java
Moved code to add RLBOA listeners to RLBOAUtils is misc package
Added input for strategyParameters to SessionPanel (gui)
!! close SessionInfo after tournament; this caused /tmp/ to fill up with GeniusData files
Our own package:
- Added opponents and strategies that are mentioned in the report
- Change class hierarchy, agents can now extend from RLBOAagentBilateral to inherit RL functionality.
- States extend from AbstractState
|
File size:
583 bytes
|
Line | |
---|
1 | package agents.anac.y2013.MetaAgent;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 |
|
---|
5 | import agents.anac.y2013.MetaAgent.agentsData.AgentData;
|
---|
6 | import agents.anac.y2013.MetaAgent.parser.cart.TreeParser;
|
---|
7 | import agents.anac.y2013.MetaAgent.parser.cart.tree.Node;
|
---|
8 | public class Parser {
|
---|
9 |
|
---|
10 | /**
|
---|
11 | * @param args
|
---|
12 | */
|
---|
13 | public enum Type{
|
---|
14 | CART,CARTCLASS,LINREG,LOGREG ,NN,NNCLASS
|
---|
15 | }
|
---|
16 |
|
---|
17 | public static double getMean(AgentData agent,HashMap<String, Double> values){
|
---|
18 | TreeParser p=new TreeParser(agent);
|
---|
19 | Node n=p.Parse();
|
---|
20 | // System.out.println(n);
|
---|
21 | Node ans=n.getBestNode(values);
|
---|
22 | return ans.get_mean();
|
---|
23 | }
|
---|
24 |
|
---|
25 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.