fugeR.sfRun: The parallel version of fugeR...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The parallel version of fugeR.run using snowfall.

Usage

1
2
3
4
5
6
fugeR.sfRun(data, labels, maxRules=4,
    maxVarPerRule=3, labelsMf=2, population=200,
    elitism=NA, mutation=0.01, generation=100,
    sensiW=1, speciW=1, accuW=0, threshold=0.5,
    rmseW=0.2, verbose=FALSE, path, rep=300,
    parallel=FALSE, cpus=1)

Arguments

data

[NULL] Data frame to be used for training (only numeric values are supported).

labels

[NULL] Labels of data (only numeric values are supported).

maxRules

[4] Maximum number of rule.

maxVarPerRule

[3] Maximum number of input variable per rule.

labelsMf

[2] Number of singleton for output variable membership function.

population

[200] The population size.

elitism

[NA] The number of chromosomes that are kept into the next generation. By default is about 20% of the population size.

mutation

[0.01] The chance that a gene in the chromosome mutates.

generation

[100] The number of generation made by the genetic algorithm.

sensiW

[1.0] The weight of the sensitivity in the fitness function.

speciW

[1.0] The weight of the specificity in the fitness function.

accuW

[0.0] The weight of the accuracy in the fitness function.

threshold

[0.5] The threshold to apply in order to calculate sensitivity, specificity and accuracy.

rmseW

[0.2] The weight of the "root mean square error" between labels and values predicted by the fuzzy system.

verbose

[FALSE] If true the algorithm will be more verbose. By default False.

path

[NULL] THe path where to save the fuzzy systems.

rep

[300] Number fuzzy system to find.

parallel

[TRUE] Logical value indicating if the function can run in parralel

cpus

[1] number of cpus that can be used

Details

The parallel version of fugeR.run. Will launch fugeR.run a number of times given as argument. This function use snowfall package in order to take benefit of mutli-core computers.

fugeR.sfRun sould be used when you want to repeat an experience many times.
This is usefull when you are searching the good parameters (maxRules, macVarPerRule) for a problem. fugeR.sfRun will launch fugeR.run and test the obtained system. It automatically resamples the data using bootstrapping method.
For example if the argument rep has the value 1000 and the number of sample in data is 100. FugeR.sfRun resample the data with replacement with the size of the resample equal to 100 (the size of the original data set) this constitute the training set, the samples that were not picked are taken to create the validation set. FugeR.run is then called with the training set and the obtained fuzzy systems is tested on the validation set. If rep value was 1000, this operation is repeated 1000 times.
FugeR.sfRun saves every systems in the directory specified by path and return a resume of the performance obtained by each system on their training and validation set.

Value

res, A data.frame of size rep containing the performance of each fuzzy system on training and validation set.

Author(s)

Alexandre Bujard, HEIG-VD, Jul'2012

See Also

fugeR.run fugeR.predictfugeR.summary fugeR.save fugeR.load

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
##
##
## Not run: 
expResume <- fugeR.sfRun (
In,
Out,
generation=100,
population=200,
elitism=40,
verbose=TRUE,
threshold=0.5,
sensiW=1.0,
speciW=1.0,
accuW=0.0,
rmseW=1.0,
maxRules=10,
maxVarPerRule=2,
labelsMf=2,
path=\'./exp\',
rep=100,
parallel=TRUE,
cpus=2
)

## End(Not run)

fugeR documentation built on May 1, 2019, 9:51 p.m.