Description Usage Arguments Details Value Author(s) See Also Examples
The parallel version of fugeR.run using snowfall.
1 2 3 4 5 6 |
data |
[NULL] Data frame to be used for training (only numeric values are supported). |
labels |
[NULL] Labels of |
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 |
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.
res
, A data.frame of size rep
containing the performance of each fuzzy system on
training and validation set.
Alexandre Bujard, HEIG-VD, Jul'2012
fugeR.run
fugeR.predict
fugeR.summary
fugeR.save
fugeR.load
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.