Loading Interval Type-2 Sets

Sun January 12, 2020
type2-fuzzy type2-fuzzy-library fuzzy python IT2FS

Interval Type-2 Fuzzy Sets can be loaded by using one of the following methods:

  1. From a set definition in a string.
  2. From a set definition in a file.

The set definitions myst have the following format:

[0.1,	0.5]/1 + 
[0.2,	0.7]/2 + 
[0.3,	1.0]/3 +
[0.4,	1]/4

The following example illustrated the creation of IT2FS using these methods

from type2fuzzy import IntervalType2FuzzySet
from type2fuzzy import it2_kernikmendel_reduce
import os


# load an it2fs from representation
set_representation= '''[0.1, 0.5]/1 + [0.2, 0.7]/2 + [0.3, 1.0]/3 + [0.4, 1]/4'''

it2fs = IntervalType2FuzzySet.from_representation(set_representation)

print(it2fs)


# load an it2fs from file
it2fs2 = IntervalType2FuzzySet.load_file(os.path.join(os.path.dirname(__file__),'test_it2fs.txt'))

print(it2fs2)

In the latter example, the following file was used.




Paper Implementation - Uncertain rule-based fuzzy logic systems Introduction and new directions-Jerry M. Mendel; Prentice-Hall, PTR, Upper Saddle River, NJ, 2001,    555pp., ISBN 0-13-040969-3. Example 9-4, page 261

October 8, 2022
type2-fuzzy type2-fuzzy-library fuzzy python IT2FS paper-workout

Type Reduction of Interval Type-2 Fuzzy Sets

April 6, 2022
type2-fuzzy type2-fuzzy-library fuzzy python IT2FS

Paper Implementation - C. Wagner and H. Hagras. 'Toward general type-2 fuzzy logic systems based on zSlices.'

A look at C. Wagner and H. Hagras. 'Toward general type-2 fuzzy logic systems based on zSlices.', working of paper examples using T2Fuzz Library
type2-fuzzy paper-workout type2-fuzzy-library fuzzy python
comments powered by Disqus


machine-learning 27 python 21 fuzzy 14 azure-ml 11 hugo_cms 11 linear-regression 10 gradient-descent 9 type2-fuzzy 8 type2-fuzzy-library 8 type1-fuzzy 5 cnc 4 dataset 4 datastore 4 it2fs 4 excel 3 paper-workout 3 r 3 c 2 c-sharp 2 experiment 2 hyperparameter-tuning 2 iot 2 model-optimization 2 programming 2 robotics 2 weiszfeld_algorithm 2 arduino 1 automl 1 classifier 1 computation 1 cost-functions 1 development 1 embedded 1 fuzzy-logic 1 game 1 javascript 1 learning 1 mathjax 1 maths 1 mxchip 1 pandas 1 pipeline 1 random_walk 1 roc 1 tools 1 vscode 1 wsl 1