0% found this document useful (0 votes)
32 views12 pages

Examples PDF

This document contains two examples of using fuzzy logic and ANFIS modeling. The first example involves classifying three types of iris plants using four attributes about sepals and petals. The second example predicts gas mileage for vehicles using six input attributes about cylinders, size, power, weight, acceleration and year, training an ANFIS model to perform nonlinear regression analysis. Steps shown include selecting relevant inputs, generating membership functions, setting rules, and training the ANFIS model to minimize errors.

Uploaded by

OzgeHkn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views12 pages

Examples PDF

This document contains two examples of using fuzzy logic and ANFIS modeling. The first example involves classifying three types of iris plants using four attributes about sepals and petals. The second example predicts gas mileage for vehicles using six input attributes about cylinders, size, power, weight, acceleration and year, training an ANFIS model to perform nonlinear regression analysis. Steps shown include selecting relevant inputs, generating membership functions, setting rules, and training the ANFIS model to minimize errors.

Uploaded by

OzgeHkn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

Ex.

1
Classification of iris data sets.
The data set contains 3 classes of 50 instances each, where each

class refers to a type of iris plant.


The data base contains the following attributes:
1.
2.
3.
4.

sepal length in cm
sepal width in cm
petal length in cm
petal width in cm

class:
1.
2.
3.

Iris Setosa
Iris Versicolour
Iris Virginica

Classification
Working with the Fuzzy Logic Toolbox
4 input
1 output
3 membership function trimf
Defuzzification-Centroid

Draw the appropriate membership


functions

Set the rules

Results

Setosa

Versicolor

Virginica

Ex. 2
Typical nonlinear regression problem
Gas Mileage Prediction using data from previously

recorded observations
Six input attributes :
no. of cylinders,
displacement,
% horsepower,
weight,
acceleration,
and model year

ANFIS (Adaptive Neuro-

Fuzzy Inference System)

Matlab -> fuzzy logic tool box -> Gas Mileage Prediction

example

Input Selection
exhsrch function ->

performs exhaustive
search

Figure 1: Every input

variable's influence on
fuel consumption

Figure 2: All two input variable combinations and their

influence on fuel consumption

Figure 3: All three input variable combinations and their

influence on fuel consumption

Training ANFIS Model


genfis1 function ->

generates a initial FIS

Figure 4: ANFIS training

and checking errors

You might also like