fuzzifier
.IF premise (antecedent), THEN conclusion
(consequent)
. Seerulebase
.inference
.defuzzifier
.Since it may be difficult to obtain information from human experts in the form required, an alternative and effective way to acquire the knowledge is to generate the fuzzy IF-THEN rules automatically from the input data. In general, when modeling an FRBS, there are two important processes which should be conducted, namely structure identification and parameter estimation. Structure identification is a process to find appropriate fuzzy IF-THEN rules and to determine the overall number of rules. Parameter estimation is applied to tune the parameters on the consequent and/or antecedent parts of the fuzzy IF-THEN rules. Many approaches have been proposed in order to perform this modeling such as a table-lookup scheme, heuristic procedures, neuro-fuzzy techniques, clustering methods, genetic algorithms, least squares methods, gradient descent, etc. In this package, the following approaches to generate fuzzy IF-THEN rules have been implemented:
WM
andfrbs.eng
.GFS
andfrbs.eng
.HyFIS
andfrbs.eng
.ANFIS
andfrbs.eng
.frcs
andfrcs.eng
.DENFIS
andDENFIS.eng
.SBC
andSBC.test
.DM
andfrbs.eng
.HGD
andfrbs.eng
.MSGFS
andMSGFS.test
.frbs.learn
, which is the
central function of the package. However, in the
documentation of each of the internal learning functions,
we give some theoretical background and references to the
original literature.Usage of the package:
If you have problems using the package, find a bug, or have suggestions, please contact the package maintainer by email, instead of writing to the general R lists or to other internet forums and mailing lists.
The main functions of the package are the following:
frbs.learn
allows to generate the model by creating fuzzy IF-THEN
rules or cluster centers from training data. The
different algorithms mentioned above are all accessible
through this function. The outcome of the function is anfrbs-object
.frbs.gen
, which can be used to build a
model manually without using a learning method.predict
is to
obtain predicted values according to the testing data and
the model (analogous to thepredict
function that
is implemented in many other R packages).summary.frbs
andplotMF
to show a summary about anfrbs-object
, and to plot the shapes of the
membership functions. To get started with the package, the user can have a look
at the examples included in the documentation of the
functions frbs.learn
for generating models
and predict
for the prediction phase.
Also, there are many demos that ship with the package. To get a list of them, type:
demo()
Then, to start a demo, type
demo(
. All the demos are present
as R scripts in the package sources in the "demo"
subdirectory.
Currently, there are the following demos available:
Regression using the Gas Furnance dataset:
demo(WM.GasFur)
, demo(SBC.GasFur)
,
demo(ANFIS.GasFur)
,
demo(HGD.GasFur)
, demo(DENFIS.GasFur)
,
demo(HyFIS.GasFur)
,
demo(GFS.GasFur)
, demo(DM.GasFur)
,
demo(MSGFS.GasFur)
Regression using the Mackey-Glass dataset:
demo(WM.MG1000)
, demo(SBC.MG1000)
,
demo(ANFIS.MG1000)
,
demo(HGD.MG1000)
, demo(DENFIS.MG1000)
,
demo(HyFIS.MG1000)
,
demo(GFS.MG1000)
, demo(DM.MG1000)
,
demo(MSGFS.MG1000)
Classification using the Iris dataset:
demo(WM.Iris)
, demo(SBC.Iris)
,
demo(ANFIS.Iris)
,
demo(HGD.Iris)
, demo(DENFIS.Iris)
,
demo(HyFIS.Iris)
,
demo(GFS.Iris)
, demo(DM.Iris)
,
demo(MSGFS.Iris)
, demo(frcs.Iris)
The Gas Furnance data and Mackey-Glass data are included
in the package, please see frbsData
. The
Iris data is the standard Iris dataset that ships with R.
Also have a look at the package webpage
C.C. Lee, "Fuzzy Logic in control systems: Fuzzy Logic controller part II",IEEE Trans. Syst., Man, Cybern., vol. 20, no.2, pp. 419 - 435 (1990).
D. Dubois and H. Prade, "Fuzzy Sets and Systems: Theory and Applications," New York: Academic (1980).
L.A. Zadeh, "Fuzzy sets", Information and Control, vol. 8, pp. 338 - 353 (1965).
Mamdani, E. H., & Assilian, S., "An experiment in linguistic synthesis with a fuzzy logic controller," International Journal of Man Machine Studies, 7(1), pp. 1 - 13 (1975).
M. Sugeno and G. T. Kang, "Structure identification of fuzzy model," Fuzzy Sets Syst., vol. 28, pp. 15 - 33 (1988).
Takagi, T., Sugeno, M., "Fuzzy identification of systems and its application to modelling and control", IEEE Transactions on Systems, Man and Cybernetics 15(1), pp. 116 - 132 (1985).
W. Pedrycz, "Fuzzy Control and Fuzzy Systems," New York: Wiley (1989).
frbs.learn
and predict
for
the learning and prediction stage, respectively.