本文整理汇总了Java中com.rapidminer.operator.ports.metadata.ExampleSetUnionRule类的典型用法代码示例。如果您正苦于以下问题:Java ExampleSetUnionRule类的具体用法?Java ExampleSetUnionRule怎么用?Java ExampleSetUnionRule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ExampleSetUnionRule类属于com.rapidminer.operator.ports.metadata包,在下文中一共展示了ExampleSetUnionRule类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractExampleSetJoin
import com.rapidminer.operator.ports.metadata.ExampleSetUnionRule; //导入依赖的package包/类
public AbstractExampleSetJoin(OperatorDescription description) {
super(description);
getTransformer().addRule(new ExampleSetUnionRule(leftInput, rightInput, joinOutput, "_from_ES2") {
@Override
protected String getPrefix() {
return getParameterAsBoolean(PARAMETER_REMOVE_DOUBLE_ATTRIBUTES) ? null : "_from_ES2";
}
@Override
protected ExampleSetMetaData modifyMetaData(ExampleSetMetaData leftEMD, ExampleSetMetaData rightEMD) {
List<AttributeMetaData> joinedAttributesMetaData = getUnionAttributesMetaData(leftEMD, rightEMD);
ExampleSetMetaData joinedEMD = new ExampleSetMetaData();
joinedEMD.addAllAttributes(joinedAttributesMetaData);
return joinedEMD;
}
});
}
示例2: AbstractExampleSetJoin
import com.rapidminer.operator.ports.metadata.ExampleSetUnionRule; //导入依赖的package包/类
public AbstractExampleSetJoin(OperatorDescription description) {
super(description);
getTransformer().addRule(new ExampleSetUnionRule(leftInput, rightInput, joinOutput, "_from_ES2") {
@Override
protected String getPrefix() {
return getParameterAsBoolean(PARAMETER_REMOVE_DOUBLE_ATTRIBUTES) ? null : "_from_ES2";
}
@Override
protected ExampleSetMetaData modifyMetaData(ExampleSetMetaData leftEMD, ExampleSetMetaData rightEMD) {
List<AttributeMetaData> joinedAttributesMetaData = getUnionAttributesMetaData(leftEMD, rightEMD);
ExampleSetMetaData joinedEMD = new ExampleSetMetaData();
joinedEMD.addAllAttributes(joinedAttributesMetaData);
return joinedEMD;
}
});
}
示例3: ExampleSetUnion
import com.rapidminer.operator.ports.metadata.ExampleSetUnionRule; //导入依赖的package包/类
public ExampleSetUnion(OperatorDescription description) {
super(description);
// exampleSet1Input.addPrecondition(new ExampleSetPrecondition(exampleSet1Input, -1,
// Attributes.ID_NAME));
// exampleSet2Input.addPrecondition(new ExampleSetPrecondition(exampleSet2Input, -1,
// Attributes.ID_NAME));
getTransformer().addRule(new ExampleSetUnionRule(exampleSet1Input, exampleSet2Input, unionOutput, null));
}
示例4: ExampleSetUnion
import com.rapidminer.operator.ports.metadata.ExampleSetUnionRule; //导入依赖的package包/类
public ExampleSetUnion(OperatorDescription description) {
super(description);
// exampleSet1Input.addPrecondition(new ExampleSetPrecondition(exampleSet1Input, -1, Attributes.ID_NAME));
// exampleSet2Input.addPrecondition(new ExampleSetPrecondition(exampleSet2Input, -1, Attributes.ID_NAME));
getTransformer().addRule(new ExampleSetUnionRule(exampleSet1Input, exampleSet2Input, unionOutput, null));
}