Skip to content

Fuzzyfication with Huarng Partitioner not woking (with fix for this) #41

@Th0m4sR

Description

@Th0m4sR

My Huarng partitioner constists of 130 Fuzzy Sets and when I try to fit a model it says the item has to be between 0 and 10.
That is, the number of partitions within the partitioner is always set to 10 by default in all partitioners.

I wanted to fit a Chen model by using

partitioner = Huarng.HuarngPartitioner(data=train, mf=mf.trimf)
model = chen.ConventionalFTS(partitioner=partitioner)
model.fit(train)

and received the described error.

The issue can be fixed by adding:
self.partitions=npart
after line 39 in Huarng.py before the for loop.

This fixed this issue for me and it adapts the correct number of partitions.

Kind regards,
Th0m4sR

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions