Last change
on this file since 161 was 127, checked in by Wouter Pasman, 6 years ago |
#41 ROLL BACK of rev.126 . So this version is equal to rev. 125
|
File size:
607 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.