本文整理匯總了Java中com.rapidminer.example.NominalStatistics類的典型用法代碼示例。如果您正苦於以下問題:Java NominalStatistics類的具體用法?Java NominalStatistics怎麽用?Java NominalStatistics使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NominalStatistics類屬於com.rapidminer.example包,在下文中一共展示了NominalStatistics類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: ViewAttribute
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
super(name, valueType);
this.model = model;
this.mapping = mapping;
this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);
this.isDateTime = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE_TIME)
|| Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE);
this.parent = parent;
if (isNominal) {
registerStatistics(new NominalStatistics());
registerStatistics(new UnknownStatistics());
} else {
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
}
示例2: ViewAttribute
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
super(name, valueType);
this.model = model;
this.mapping = mapping;
this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);
this.parent = parent;
if (isNominal) {
registerStatistics(new NominalStatistics());
registerStatistics(new UnknownStatistics());
} else {
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
}
示例3: ViewAttribute
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
public ViewAttribute(ViewModel model, Attribute parent, String name, int valueType, NominalMapping mapping) {
super(name, valueType);
this.model = model;
this.mapping = mapping;
this.isNominal = mapping != null && Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NOMINAL);
this.isNumerical = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.NUMERICAL);
this.isDateTime = Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE_TIME) || Ontology.ATTRIBUTE_VALUE_TYPE.isA(valueType, Ontology.DATE);
this.parent = parent;
if (isNominal) {
registerStatistics(new NominalStatistics());
registerStatistics(new UnknownStatistics());
} else {
registerStatistics(new NumericalStatistics());
registerStatistics(new WeightedNumericalStatistics());
registerStatistics(new MinMaxStatistics());
registerStatistics(new UnknownStatistics());
}
}
示例4: XMLSerialization
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
private XMLSerialization(ClassLoader classLoader) {
try {
Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
Class generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
Constructor constructor = xStreamClass.getConstructor(new Class[] { generalDriverClass });
Class driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
xStream = (com.thoughtworks.xstream.XStream) constructor.newInstance(driverClass.newInstance());
xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);
// define default aliases here
addAlias("IOContainer", IOContainer.class);
addAlias("PolynominalAttribute", PolynominalAttribute.class);
addAlias("BinominalAttribute", BinominalAttribute.class);
addAlias("NumericalAttribute", NumericalAttribute.class);
addAlias("PolynominalMapping", PolynominalMapping.class);
addAlias("BinominalMapping", BinominalMapping.class);
addAlias("NumericalStatistics", NumericalStatistics.class);
addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
addAlias("NominalStatistics", NominalStatistics.class);
addAlias("UnknownStatistics", UnknownStatistics.class);
addAlias("SimpleAttributes", SimpleAttributes.class);
addAlias("AttributeRole", AttributeRole.class);
xStream.setClassLoader(classLoader);
defineXMLAliasPairs();
} catch (Throwable e) {
// TODO: Why are we catching Throwables?
// LogService.getRoot().log(Level.WARNING,
// "Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!",
// e);
LogService.getRoot().log(
Level.WARNING,
I18N.getMessage(LogService.getRoot().getResourceBundle(),
"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error", e), e);
}
}
示例5: XMLSerialization
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
private XMLSerialization(ClassLoader classLoader) {
try {
Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
Class<?> generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
Constructor<?> constructor = xStreamClass.getConstructor(generalDriverClass);
Class<?> driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
xStream = (com.thoughtworks.xstream.XStream) constructor.newInstance(driverClass.newInstance());
xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);
// define default aliases here
addAlias("IOContainer", IOContainer.class);
addAlias("PolynominalAttribute", PolynominalAttribute.class);
addAlias("BinominalAttribute", BinominalAttribute.class);
addAlias("NumericalAttribute", NumericalAttribute.class);
addAlias("PolynominalMapping", PolynominalMapping.class);
addAlias("BinominalMapping", BinominalMapping.class);
addAlias("NumericalStatistics", NumericalStatistics.class);
addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
addAlias("NominalStatistics", NominalStatistics.class);
addAlias("UnknownStatistics", UnknownStatistics.class);
addAlias("SimpleAttributes", SimpleAttributes.class);
addAlias("AttributeRole", AttributeRole.class);
xStream.setClassLoader(classLoader);
defineXMLAliasPairs();
} catch (Throwable e) {
// TODO: Why are we catching Throwables?
LogService.getRoot().log(Level.WARNING, I18N.getMessage(LogService.getRoot().getResourceBundle(),
"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error", e), e);
}
}
示例6: XMLSerialization
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
private XMLSerialization(ClassLoader classLoader) {
try {
Class<?> xStreamClass = Class.forName("com.thoughtworks.xstream.XStream");
Class generalDriverClass = Class.forName("com.thoughtworks.xstream.io.HierarchicalStreamDriver");
Constructor constructor = xStreamClass.getConstructor(new Class[] { generalDriverClass });
Class driverClass = Class.forName("com.thoughtworks.xstream.io.xml.XppDriver");
xStream = (com.thoughtworks.xstream.XStream)constructor.newInstance(driverClass.newInstance());
xStream.setMode(com.thoughtworks.xstream.XStream.ID_REFERENCES);
// define default aliases here
addAlias("IOContainer", IOContainer.class);
addAlias("PolynominalAttribute", PolynominalAttribute.class);
addAlias("BinominalAttribute", BinominalAttribute.class);
addAlias("NumericalAttribute", NumericalAttribute.class);
addAlias("PolynominalMapping", PolynominalMapping.class);
addAlias("BinominalMapping", BinominalMapping.class);
addAlias("NumericalStatistics", NumericalStatistics.class);
addAlias("WeightedNumericalStatistics", WeightedNumericalStatistics.class);
addAlias("NominalStatistics", NominalStatistics.class);
addAlias("UnknownStatistics", UnknownStatistics.class);
addAlias("SimpleAttributes", SimpleAttributes.class);
addAlias("AttributeRole", AttributeRole.class);
xStream.setClassLoader(classLoader);
defineXMLAliasPairs();
} catch (Throwable e) {
// TODO: Why are we catching Throwables?
//LogService.getRoot().log(Level.WARNING, "Cannot initialize XML serialization. Probably the libraries 'xstream.jar' and 'xpp.jar' were not provided. XML serialization will not work!", e);
LogService.getRoot().log(Level.WARNING,
I18N.getMessage(LogService.getRoot().getResourceBundle(),
"com.rapidminer.tools.XMLSerialization.writing_initializing_xml_serialization_error",
e),
e);
}
}
示例7: NominalAttribute
import com.rapidminer.example.NominalStatistics; //導入依賴的package包/類
protected NominalAttribute(String name, int valueType) {
super(name, valueType);
registerStatistics(new NominalStatistics());
registerStatistics(new UnknownStatistics());
}