Java Reference
In-Depth Information
27.
case ATTRINDEX :
28.
lFunctionNameShort "AI";
29.
lBuildSettings createAttributeImportanceSettings(
30.
(String) mTargetNameAttr.getSelectedItem(),
31.
((Integer) mMaxAttributeCount.getValue()).intValue());
32.
break;
We extract the user selected target attribute name from the associ-
ated member variable pointing to a combo box and also the maxi-
mum number of attributes that should be returned by the attribute
importance model.
33.
case CLUSTERINGINDEX :
34.
lFunctionNameShort "Clu";
35.
Integer lNbCluster (Integer) mClusterNumber.getValue();
36.
lBuildSettings createClusteringSettings(
37.
lNbCluster.intValue());
38.
break;
We extract the value selected by the user as the maximum number
of clusters desired for the clustering model.
39.
case ASSOCINDEX :
40.
lFunctionNameShort "Ass";
41.
int lMaxRule
42.
Integer.valueOf(mMaxRuleLengthTextField.getText())
43.
.intValue();
44.
double lMinConfidence
45.
Double.valueOf(mMinConfidenceTextField.getText())
46.
.doubleValue();
47.
double lMinSupport
48.
Double.valueOf(mMinSupportTextField.getText())
49.
.doubleValue();
50.
lBuildSettings createAssociationSettings(
51.
lMaxRule, lMinConfidence, lMinSupport);
52.
break;
Association requires a minimum of three values to be set in their
associated build settings.
53.
default :
54.
throw new IllegalStateException("Wrong Pane Index");
55.
}
Search WWH ::




Custom Search