|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.maxent.iis.Experiments
This class represents the training samples. It can return statistics of them, for example the frequency of each x or y in the training data.
Field Summary | |
protected int[] |
maxY
|
protected static int |
number
number is the number of Experiments |
protected int[] |
px
px[x] holds the number of times the history x appeared in training data py[y] holds the number of times the outcome y appeared in training data |
protected static int[][] |
pxy
pxy[x][y]=# times (x,y) occurred in training |
protected int[] |
py
|
static int[][] |
vArray
vArray has dimensions [numTraining][2] and holds the x and y for each training sample. |
static int |
xSize
|
static int |
ySize
|
Constructor Summary | |
Experiments()
|
|
Experiments(int[][] vArray)
|
|
Experiments(int[][] vArray,
int ySize)
|
|
Experiments(String filename)
The filename has format: |
Method Summary | |
void |
add(Experiment m)
|
int[] |
get(int index)
|
int |
getMaxY(int x)
|
int |
getNumber()
|
static void |
main(String[] args)
|
void |
print()
|
void |
print(PrintFile pf)
|
void |
ptield()
|
void |
ptield(int ySize)
When we want a pregiven number of classes. |
double |
ptieldX(int x)
|
static double |
ptieldXY(int x,
int y)
|
double |
ptieldY(int y)
|
void |
read(String filename)
|
void |
save(String filename)
|
void |
setMaxY(int[] maxY)
|
static int |
size()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static int[][] vArray
protected static int number
protected int[] px
protected int[] py
protected int[] maxY
protected static int[][] pxy
public static int xSize
public static int ySize
Constructor Detail |
public Experiments()
public Experiments(int[][] vArray)
public Experiments(int[][] vArray, int ySize)
public Experiments(String filename)
Method Detail |
public int getNumber()
public void add(Experiment m)
public void ptield()
public void setMaxY(int[] maxY)
public int getMaxY(int x)
public void ptield(int ySize)
public double ptieldX(int x)
public double ptieldY(int y)
public static double ptieldXY(int x, int y)
public int[] get(int index)
public static int size()
public void print()
public void print(PrintFile pf)
public void save(String filename)
public void read(String filename)
public String toString()
toString
in class Object
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |