Loading Interval Type-2 Sets

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.

Type2Fuzzy Library Implementation: Mendel, Jerry M., and RI Bob John. 'Type-2 fuzzy sets made simple.'

October 27, 2021
type2_fuzzy type2_fuzzy_library fuzzy python

Introduction to type-2 fuzzy sets

October 15, 2021
type_2_fuzzy fuzzy set

Simple Python implementation of the Weiszfeld algorithm

March 14, 2021
machine_learning python weiszfeld_algorithm
comments powered by Disqus
hugo_cms 11 fuzzy 10 python 9 machine_learning 5 type2_fuzzy_library 5 cnc 4 type1_fuzzy 4 type2_fuzzy 4 r 3 excel 2 iot 2 it2fs 2 weiszfeld_algorithm 2 arduino 1 classifier 1 development 1 game 1 javascript 1 learning 1 mathjax 1 maths 1 mxchip 1 pandas 1 random_walk 1 robot 1 roc 1 set 1 tools 1 type_2_fuzzy 1 vscode 1 wsl 1