本文整理汇总了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());
}