public class Iris
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Type.Tuple |
R4
Type 'R4' is 4
CTS , i.e., R4,
that is sepal and petal, length and width. |
static Type.Tuple |
R4Species
Type 'R4Species' is a 5-tuple of
dimensions and
Species . |
static Type.Enum |
Species
The
Enum Type 'Species' is
'Iris-setosa | Iris-versicolor | Iris-virginica'. |
Constructor and Description |
---|
Iris() |
Modifier and Type | Method and Description |
---|---|
static void |
compare(java.lang.String caption,
Estimator baseEst,
Mixture.Est mxEst,
Vector ds4,
Vector ds5)
Compare a no-mixture 'baseEst'-imated Model to a
'mxEst'-imated Mixture model on data-set 'ds4'
(the full 'ds5' data-set is only for cross-tabulation).
|
static void |
display(Model m,
Vector ds)
Print out a summary of Model 'm', its 1st and 2nd-part
message lengths and its performance on data-set 'ds'.
|
static Model |
exercise(java.lang.String caption,
Estimator e,
Vector ds)
|
static Vector |
getData(java.lang.String filename)
Get the Iris data-set from the named file using
Vector.csv(boolean, boolean, char, la.la.Type.Tuple, int, java.io.InputStream) . |
static void |
main(java.lang.String[] argv)
Run
MML-analysis of the Iris data (Iris.csv),
including a Mixture -Model and
a (decision-) classification-Tree . |
static java.lang.String |
x2S(double x)
Return just a few significant digits of x;
uses
Util .x2String(x) . |
public static Type.Enum Species
Enum
Type 'Species' is
'Iris-setosa | Iris-versicolor | Iris-virginica'.public static Type.Tuple R4
CTS
, i.e., R4,
that is sepal and petal, length and width.public static Type.Tuple R4Species
dimensions
and
Species
.public static java.lang.String x2S(double x)
Util
.x2String(x)
.public static Vector getData(java.lang.String filename)
Vector.csv(boolean, boolean, char, la.la.Type.Tuple, int, java.io.InputStream)
.
There are five columns (see variables
) -- petal and
sepal, length and width, and the Species
.public static void display(Model m, Vector ds)
public static void compare(java.lang.String caption, Estimator baseEst, Mixture.Est mxEst, Vector ds4, Vector ds5)
public static void main(java.lang.String[] argv)
MML-analysis
of the Iris data (Iris.csv),
including a Mixture
-Model and
a (decision-) classification-Tree
.