|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||
java.lang.Objectcoser.algorithm.TestCostConstraintReductionGA
public class TestCostConstraintReductionGA extends java.lang.Object
Project: The cost-sensitive rough sets project.
Summary: Reduction using genetic algorithms.
Author: Fan Min minfanphd@163.com and Jiabin Liu
Copyright: The source code and all documents are open and free. PLEASE keep
this header while revising the program.
Organization: Lab of Granular Computing,
Zhangzhou Normal University, Fujian 363000, China.
Progress: Almost done.
Written time: September 11, 2011.
Last modify time: April 26, 2012.
| 构造函数 和 描述 |
|---|
TestCostConstraintReductionGA()
|
| 修饰符 和 类型 | 方法 和 描述 |
|---|---|
static java.lang.String |
batchTestCostConstraintReductionGA(double paraLambdaUpperBound,
double paraLambdaLowerBound,
double paraLambdaStepLength,
double paraBudgetFacotr,
int paraNumberOfChromosomes,
int paraNumberOfGeneration,
int paraExperiments,
boolean paraShowDetail)
Run the genetic algorithm paraExperiments times. |
static java.lang.String |
batchTestCostConstraintReductionGAComparison(double paraLambdaUpperBound,
double paraLambdaLowerBound,
double paraLambdaStepLength,
double paraBudgetFacotr,
int paraNumberOfChromosomes,
int paraNumberOfGeneration,
int paraExperiments,
boolean paraShowDetail)
Two algorithms, namely the greedy algorithm using the lambda weighted approach, and the genetic algorithm, are compared. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public TestCostConstraintReductionGA()
| 方法详细信息 |
|---|
public static java.lang.String batchTestCostConstraintReductionGA(double paraLambdaUpperBound,
double paraLambdaLowerBound,
double paraLambdaStepLength,
double paraBudgetFacotr,
int paraNumberOfChromosomes,
int paraNumberOfGeneration,
int paraExperiments,
boolean paraShowDetail)
throws java.lang.Exception
paraLambdaUpperBound - the upper bound of lambda, non-positive.paraLambdaLowerBound - the lower bound of lambda.paraLambdaStepLength - the step length of labda. For example, if the upper and lower
bounds are -0.5 and -2 respectively, and the step length is
0.5, then the lambda will have values -0.5, -1.0, -1.5, and
-2.0. Fan suggests to set the lower bound to -2.1 since the
computation of double values are not accurate.paraNumberOfChromosomes - the number of chromosome.paraNumberOfGeneration - the max generation.paraExperiments - the number of experiments to undertake. Each time the dataset
have different test-cost settings.paraShowDetail - show the detail of the program running. Only valid if
paraExperiments is not greater than 50.java.lang.Exception - if something wrong happens.
public static java.lang.String batchTestCostConstraintReductionGAComparison(double paraLambdaUpperBound,
double paraLambdaLowerBound,
double paraLambdaStepLength,
double paraBudgetFacotr,
int paraNumberOfChromosomes,
int paraNumberOfGeneration,
int paraExperiments,
boolean paraShowDetail)
throws java.lang.Exception
paraLambdaUpperBound - the upper bound of lambda, non-positive.paraLambdaLowerBound - the lower bound of lambda.paraLambdaStepLength - the step length of labda. For example, if the upper and lower
bounds are -0.5 and -2 respectively, and the step length is
0.5, then the lambda will have values -0.5, -1.0, -1.5, and
-2.0. Fan suggests to set the lower bound to -2.1 since the
computation of double values are not accurate.paraNumberOfChromosomes - the number of chromosome.paraNumberOfGeneration - the max generation.paraExperiments - the number of experiments to undertake. Each time the dataset
have different test-cost settings.paraShowDetail - show the detail of the program running. Only valid if
paraExperiments is not greater than 50.java.lang.Exception - if something wrong happens.
|
|||||||||
| 上一个类 下一个类 | 框架 无框架 | ||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | ||||||||