当前位置: 首页>>代码示例>>Java>>正文


Java EqualTypeCondition类代码示例

本文整理汇总了Java中com.rapidminer.parameter.conditions.EqualTypeCondition的典型用法代码示例。如果您正苦于以下问题:Java EqualTypeCondition类的具体用法?Java EqualTypeCondition怎么用?Java EqualTypeCondition使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EqualTypeCondition类属于com.rapidminer.parameter.conditions包,在下文中一共展示了EqualTypeCondition类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();
	types.add(new ParameterTypeCategory(PARAMETER_CLASSIFICATION_STRATEGIES,
			"What strategy should be used for multi class classifications?", STRATEGIES, ONE_AGAINST_ALL, false));

	ParameterTypeDouble type = new ParameterTypeDouble(PARAMETER_RANDOM_CODE_MULTIPLICATOR,
			"A multiplicator regulating the codeword length in random code modus.", 1.0d, Double.POSITIVE_INFINITY,
			2.0d, false);
	type.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_CLASSIFICATION_STRATEGIES, STRATEGIES, true,
			EXHAUSTIVE_CODE, RANDOM_CODE));
	types.add(type);

	types.addAll(RandomGenerator.getRandomGeneratorParameters(this));

	return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:Binary2MultiClassLearner.java

示例2: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
/** Returns a list with all parameter types of this model. */
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();
	types.add(new ParameterTypeCategory(PARAMETER_NORMALIZATION_METHOD, "Select the normalization method.",
			NORMALIZATION_METHODS, 0));
	int i = 0;
	for (NormalizationMethod method : METHODS) {
		for (ParameterType type : method.getParameterTypes(this)) {
			type.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_NORMALIZATION_METHOD,
					NORMALIZATION_METHODS, true, new int[] { i }));
			types.add(type);
		}
		i++;
	}
	return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:18,代码来源:Normalization.java

示例3: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> parameterTypes = super.getParameterTypes();

	parameterTypes.add(new ParameterTypeCategory(PARAMETER_SOURCE_TYPE,
			"Choose wether to open a file, a URL or a repository entry.", SOURCE_TYPES, SOURCE_TYPE_FILE, true));

	ParameterTypeFile parameterTypeFile = new ParameterTypeFile(PARAMETER_FILENAME, "File to open", null, true, false);
	parameterTypeFile.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_SOURCE_TYPE, SOURCE_TYPES,
			true, SOURCE_TYPE_FILE));
	parameterTypes.add(parameterTypeFile);

	ParameterTypeString parameterTypeUrl = new ParameterTypeString(PARAMETER_URL, "URL to open", true, false);
	parameterTypeUrl.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_SOURCE_TYPE, SOURCE_TYPES, true,
			SOURCE_TYPE_URL));
	parameterTypes.add(parameterTypeUrl);

	ParameterTypeRepositoryLocation parameterTypeRepositoryLocation = new ParameterTypeRepositoryLocation(
			PARAMETER_REPOSITORY_LOCATION, "repository entry to open", true);
	parameterTypeRepositoryLocation.setExpert(false);
	parameterTypeRepositoryLocation.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_SOURCE_TYPE,
			SOURCE_TYPES, true, SOURCE_TYPE_REPOSITORY));
	parameterTypes.add(parameterTypeRepositoryLocation);

	return parameterTypes;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:27,代码来源:LoadFileOperator.java

示例4: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
    List<ParameterType> list = super.getParameterTypes();
    ParameterType type = new ParameterTypeCategory(PCAParams.DimensionalityReduction(),
            "Indicates which type of dimensionality reduction should be applied", PCAParams.ReductionMethods(), PCAParams.FixedNumberId());
    type.setExpert(false);
    list.add(type);

    type = new ParameterTypeDouble(PCAParams.VarianceThreshold(),
            "Keep the all components with a cumulative variance smaller than the given threshold.", 0, 1, 0.95);
    type.setExpert(false);
    type.registerDependencyCondition(new EqualTypeCondition(this, PCAParams.DimensionalityReduction(), PCAParams.ReductionMethods(), true,
            PCAParams.KeepVarianceId()));
    list.add(type);

    type = new ParameterTypeInt(PCAParams.NumberOfComponents(), "Keep this number of components.", 1, Integer.MAX_VALUE,
            1);
    type.setExpert(false);
    type.registerDependencyCondition(new EqualTypeCondition(this, PCAParams.DimensionalityReduction(), PCAParams.ReductionMethods(), true,
            PCAParams.FixedNumberId()));
    list.add(type);
    return list;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:24,代码来源:SVDReductionOp.java

示例5: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
    List<ParameterType> list = super.getParameterTypes();
    ParameterType type = new ParameterTypeCategory(PCAParams.DimensionalityReduction(),
            "Indicates which type of dimensionality reduction should be applied", PCAParams.ReductionMethods(), 1);
    type.setExpert(false);
    list.add(type);

    type = new ParameterTypeDouble(PCAParams.VarianceThreshold(),
            "Keep the all components with a cumulative variance smaller than the given threshold.", 0, 1, 0.95);
    type.setExpert(false);
    type.registerDependencyCondition(new EqualTypeCondition(this, PCAParams.DimensionalityReduction(), PCAParams.ReductionMethods(), true,
            PCAParams.KeepVarianceId()));
    list.add(type);

    type = new ParameterTypeInt(PCAParams.NumberOfComponents(), "Keep this number of components.", 1, Integer.MAX_VALUE,
            1);
    type.setExpert(false);
    type.registerDependencyCondition(new EqualTypeCondition(this, PCAParams.DimensionalityReduction(), PCAParams.ReductionMethods(), true,
            PCAParams.FixedNumberId()));
    list.add(type);
    return list;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:24,代码来源:PCAOp.java

示例6: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();
	ParameterType type = new ParameterTypeCategory(
			PARAMETER_TRANSFORMATION_METHOD,
			"Type of transformation to use on the labels (log, exp, transform to mean 0 and variance 1, rank, or none).",
			TransformedRegressionModel.METHODS, TransformedRegressionModel.LOG);
	type.setExpert(false);
	types.add(type);
	type = new ParameterTypeBoolean(PARAMETER_Z_SCALE,
			"If checked the values will be normalized to mean 0 and standard deviation 1.", false);
	type.setExpert(true);
	types.add(type);
	type = new ParameterTypeBoolean(PARAMETER_INTERPOLATE_RANK,
			"If checked and predicted rank is not an integer, it will be interpolated.", true);
	type.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_TRANSFORMATION_METHOD,
			TransformedRegressionModel.METHODS, false, TransformedRegressionModel.RANK));
	type.setExpert(true);
	types.add(type);
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:22,代码来源:TransformedRegression.java

示例7: getParameterTypesForNumericals

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
/**
 * This method provides the parameters to choose only from numerical measures.
 */
public static List<ParameterType> getParameterTypesForNumericals(ParameterHandler handler) {
	List<ParameterType> list = new LinkedList<ParameterType>();
	ParameterType type = new ParameterTypeCategory(PARAMETER_NUMERICAL_MEASURE, "Select measure",
			MEASURE_ARRAYS[NUMERICAL_MEASURES_TYPE], 0);
	list.add(type);
	if (!(handler instanceof Operator)) {
		return list;
	}
	Operator operator = (Operator) handler;
	for (ParameterType kernelType : Kernel.getParameters(operator)) {
		kernelType.registerDependencyCondition(new EqualTypeCondition(operator, PARAMETER_NUMERICAL_MEASURE,
				MEASURE_ARRAYS[NUMERICAL_MEASURES_TYPE], false, KERNEL_IN_NUMERICAL));
		kernelType.setExpert(true);
		list.add(kernelType);
	}
	return list;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:21,代码来源:DistanceMeasures.java

示例8: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
public List<ParameterType> getParameterTypes() {
    List types = super.getParameterTypes();
    Iterator type = types.iterator();

    while(type.hasNext()) {
        ParameterType t = (ParameterType)type.next();
        t.setHidden(true);
    }

    types.add(FileInputPortHandler.makeFileParameterType(this, "database_file", "The file containing the Access database which should be read from.", new PortProvider() {
        public Port getPort() {
            return AccessDataReader.this.fileInputPort;
        }
    }, true, new String[]{"mdb", "accdb"}));
    types.add(new ParameterTypeString("username", "The username for the Access database.", true, false));
    ParameterTypePassword type1 = new ParameterTypePassword("password", "The password for the Access database.");
    type1.setExpert(false);
    types.add(type1);
    ParameterTypeCategory type2 = new ParameterTypeCategory("define_query", "Specifies whether the database query should be defined directly, through a file or implicitely by a given table name.", DatabaseHandler.QUERY_MODES, 2);
    type2.setExpert(false);
    types.add(type2);
    ParameterTypeSQLQuery type3 = new ParameterTypeSQLQuery("query", "An SQL query.");
    type3.registerDependencyCondition(new EqualTypeCondition(this, "define_query", DatabaseHandler.QUERY_MODES, true, new int[]{0}));
    type3.setExpert(false);
    types.add(type3);
    ParameterTypeFile type4 = new ParameterTypeFile("query_file", "A file containing an SQL query.", (String)null, true);
    type4.registerDependencyCondition(new EqualTypeCondition(this, "define_query", DatabaseHandler.QUERY_MODES, true, new int[]{1}));
    type4.setExpert(false);
    types.add(type4);
    ParameterTypeDatabaseTable type5 = new ParameterTypeDatabaseTable("table_name", "The name of a single table within the Access database which should be read.");
    type5.registerDependencyCondition(new EqualTypeCondition(this, "define_query", DatabaseHandler.QUERY_MODES, true, new int[]{2}));
    type5.setExpert(false);
    types.add(type5);
    return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:36,代码来源:AccessDataReader.java

示例9: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> parameterTypes = super.getParameterTypes();

	parameterTypes
			.add(new ParameterTypeCategory(PARAMETER_DESTINATION_TYPE,
					"Choose wether to open a file, a URL or a repository entry.", DESTINATION_TYPES,
					DESTINATION_TYPE_FILE, true));

	ParameterTypeFile parameterTypeFile = new ParameterTypeFile(PARAMETER_FILENAME, "File to save to.", null, true,
			false);
	parameterTypeFile.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE,
			DESTINATION_TYPES, true, DESTINATION_TYPE_FILE));
	parameterTypes.add(parameterTypeFile);

	ParameterTypeRepositoryLocation parameterTypeRepositoryLocation = new ParameterTypeRepositoryLocation(
			PARAMETER_REPOSITORY_LOCATION, "Repository entry to open. This must point to a blob.", true, false, false,
			true, true, true);
	parameterTypeRepositoryLocation.setExpert(false);
	parameterTypeRepositoryLocation.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE,
			DESTINATION_TYPES, true, DESTINATION_TYPE_REPOSITORY));
	parameterTypes.add(parameterTypeRepositoryLocation);

	ParameterType mimeType = new ParameterTypeStringCategory(PARAMETER_MIME_TYPE,
			"If saved to the repository, this specifies the mime type to assign to the blob.", MIME_TYPES,
			MIME_TYPE_OCTESTSTREAM);
	mimeType.setExpert(true);
	mimeType.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE, DESTINATION_TYPES,
			false, DESTINATION_TYPE_REPOSITORY));
	parameterTypes.add(mimeType);

	return parameterTypes;

}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:35,代码来源:WriteFileOperator.java

示例10: registerDependency

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
private static Collection<ParameterType> registerDependency(Collection<ParameterType> sourceTypeList, int selectedValue,
		Operator handler) {
	for (ParameterType type : sourceTypeList) {
		type.registerDependencyCondition(new EqualTypeCondition(handler, PARAMETER_NUMERICAL_MEASURE,
				MEASURE_ARRAYS[NUMERICAL_MEASURES_TYPE], false, selectedValue));
		type.registerDependencyCondition(new EqualTypeCondition(handler, PARAMETER_MEASURE_TYPES, MEASURE_TYPES, false,
				NUMERICAL_MEASURES_TYPE));
	}
	return sourceTypeList;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:11,代码来源:DistanceMeasures.java

示例11: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
public List<ParameterType> getParameterTypes() {
    List<ParameterType> types = new ArrayList<>();

    String[] sources = new String[]{SourceSwitchParams.local(), SourceSwitchParams.remote()};

    ParameterTypeCategory sourceCategory = new ParameterTypeCategory(SourceSwitchParams.source(), "source type", sources, 0);
    sourceCategory.setExpert(false);
    sourceCategory.setOptional(false);
    types.add(sourceCategory);

    ParameterTypeFile localPath = new ParameterTypeFileUpload(SourceSwitchParams.localPath(), "local path", "csv", false);
    localPath.setExpert(false);
    localPath.registerDependencyCondition(new EqualTypeCondition(this, SourceSwitchParams.source(), sources, false, new int[]{0}));
    localPath.setOptional(true);
    types.add(localPath);

    types.addAll(super.getParameterTypes());

    ParameterTypeString remotePath = new ParameterTypeString(SourceSwitchParams.remotePath(), "hdfs path", true);
    remotePath.setExpert(false);
    remotePath.registerDependencyCondition(new EqualTypeCondition(this, SourceSwitchParams.source(), sources, false, new int[]{1}));
    remotePath.setOptional(true);
    types.add(remotePath);

    types.addAll(super.getParameterTypes());

    return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:29,代码来源:SourceSwitchBase.java

示例12: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = new ArrayList<>();
	ParameterType type = new ParameterTypeCategory(SelectFeatureParams.WeightRelation(),
			"Selects only weights which fulfill this relation.", WEIGHT_RELATIONS, GREATER);
	type.setExpert(false);
	types.add(type);

	type = new ParameterTypeDouble(SelectFeatureParams.Weight(),
			"The selected relation will be evaluated against this value.",
			Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY, 1.0d);
	type.registerDependencyCondition(new EqualTypeCondition(
			this, SelectFeatureParams.WeightRelation(), WEIGHT_RELATIONS, true, GREATER));
	type.setExpert(false);
	types.add(type);


	type = new ParameterTypeInt(
			SelectFeatureParams.K(),
			"Number k of attributes to be selected. For example 'top k' with k = 5 will return an exampleset containing only the 5 highest weighted attributes.",
			1, Integer.MAX_VALUE, 10);
	type.registerDependencyCondition(new EqualTypeCondition(this, SelectFeatureParams.WeightRelation(), WEIGHT_RELATIONS, true,
			TOPK));
	type.setExpert(false);
	types.add(type);

	type = new ParameterTypeDouble(
			SelectFeatureParams.P(),
			"Percentage of attributes to be selected. For example 'top p%' with p = 15 will return an exampleset containing only attributes which are part of the 15% of the highest weighted attributes.",
			0.0d, 1.0d, 0.5d);
	type.registerDependencyCondition(new EqualTypeCondition(this, SelectFeatureParams.WeightRelation(), WEIGHT_RELATIONS, true,
			TOPPPERCENT));
	type.setExpert(false);
	types.add(type);


	return types;
}
 
开发者ID:transwarpio,项目名称:rapidminer,代码行数:39,代码来源:AttributeWeightSelectionOp.java

示例13: addDistMeasureParams

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
private void addDistMeasureParams(List<ParameterType> types) {
	List<ParameterType> measureParams = DistanceMeasures.getParameterTypesForNumAndDiv(this);
	ParameterType param = measureParams.get(0);
	param.registerDependencyCondition(new AboveOperatorVersionCondition(this, BEFORE_MEASURE_PARAM));
	param.setDefaultValue(DistanceMeasures.DIVERGENCES_TYPE - DistanceMeasures.NUMERICAL_MEASURES_TYPE);
	param.registerDependencyCondition(
			new EqualTypeCondition(this, PARAMETER_INITIALIZATION_DISTRIBUTION, INIT_DISTRIBUTION, false, K_MEANS));
	measureParams.get(2).setDefaultValue(6);
	measureParams.forEach(p -> p.setExpert(true));
	types.addAll(measureParams);
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:12,代码来源:EMClusterer.java

示例14: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
/**
 * This is a copy of the linear regression parameters, because we can't just copy them because of the dependencies
 */
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> types = super.getParameterTypes();

	String[] availableSelectionMethods = SELECTION_METHODS.keySet().toArray(new String[0]);
	types.add(new ParameterTypeCategory(PARAMETER_FEATURE_SELECTION,
			"The feature selection method used during regression.", availableSelectionMethods, M5_PRIME));

	// adding parameter of methods
	int i = 0;
	for (Entry<String, Class<? extends LinearRegressionMethod>> entry : SELECTION_METHODS.entrySet()) {
		try {
			LinearRegressionMethod method = entry.getValue().newInstance();
			for (ParameterType methodType : method.getParameterTypes()) {
				types.add(methodType);
				methodType.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_FEATURE_SELECTION,
						availableSelectionMethods, true, i));
			}
		} catch (InstantiationException | IllegalAccessException e) { // can't do anything about this
		}
		i++;
	}

	types.add(new ParameterTypeBoolean(PARAMETER_ELIMINATE_COLINEAR_FEATURES,
			"Indicates if the algorithm should try to delete colinear features during the regression.", true));
	ParameterType type = new ParameterTypeDouble(PARAMETER_MIN_TOLERANCE,
			"The minimum tolerance for the removal of colinear features.", 0.0d, 1.0d, 0.05d);
	type.registerDependencyCondition(new BooleanParameterCondition(this, PARAMETER_ELIMINATE_COLINEAR_FEATURES, true,
			true));
	types.add(type);

	types.add(new ParameterTypeBoolean(PARAMETER_USE_BIAS, "Indicates if an intercept value should be calculated.", true));
	types.add(new ParameterTypeDouble(
			PARAMETER_RIDGE,
			"The ridge parameter used for ridge regression. A value of zero switches to ordinary least squares estimate.",
			0.0d, Double.POSITIVE_INFINITY, 1.0E-8));
	return types;
}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:42,代码来源:SeeminglyUnrelatedRegressionOperator.java

示例15: getParameterTypes

import com.rapidminer.parameter.conditions.EqualTypeCondition; //导入依赖的package包/类
@Override
public List<ParameterType> getParameterTypes() {
	List<ParameterType> parameterTypes = super.getParameterTypes();

	parameterTypes
			.add(new ParameterTypeCategory(PARAMETER_DESTINATION_TYPE,
					"Choose whether to open a file, a URL or a repository entry.", DESTINATION_TYPES,
					DESTINATION_TYPE_FILE, true));

	ParameterTypeFile parameterTypeFile = new ParameterTypeFile(PARAMETER_FILENAME, "File to save to.", null, true,
			false);
	parameterTypeFile.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE,
			DESTINATION_TYPES, true, DESTINATION_TYPE_FILE));
	parameterTypes.add(parameterTypeFile);

	ParameterTypeRepositoryLocation parameterTypeRepositoryLocation = new ParameterTypeRepositoryLocation(
			PARAMETER_REPOSITORY_LOCATION, "Repository entry to open. This must point to a blob.", true, false, false,
			true, true, true);
	parameterTypeRepositoryLocation.setExpert(false);
	parameterTypeRepositoryLocation.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE,
			DESTINATION_TYPES, true, DESTINATION_TYPE_REPOSITORY));
	parameterTypes.add(parameterTypeRepositoryLocation);

	ParameterType mimeType = new ParameterTypeStringCategory(PARAMETER_MIME_TYPE,
			"If saved to the repository, this specifies the mime type to assign to the blob.", MIME_TYPES,
			MIME_TYPE_OCTESTSTREAM);
	mimeType.setExpert(true);
	mimeType.registerDependencyCondition(new EqualTypeCondition(this, PARAMETER_DESTINATION_TYPE, DESTINATION_TYPES,
			false, DESTINATION_TYPE_REPOSITORY));
	parameterTypes.add(mimeType);

	return parameterTypes;

}
 
开发者ID:rapidminer,项目名称:rapidminer-studio,代码行数:35,代码来源:WriteFileOperator.java


注:本文中的com.rapidminer.parameter.conditions.EqualTypeCondition类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。