Skip to content

fix: update self.partitions with computed npart in HuarngPartitioner (closes #41)#53

Open
botbikamordehai2-sketch wants to merge 1 commit into
PYFTS:masterfrom
botbikamordehai2-sketch:fix/issue-41-1779955764
Open

fix: update self.partitions with computed npart in HuarngPartitioner (closes #41)#53
botbikamordehai2-sketch wants to merge 1 commit into
PYFTS:masterfrom
botbikamordehai2-sketch:fix/issue-41-1779955764

Conversation

@botbikamordehai2-sketch
Copy link
Copy Markdown

What

The HuarngPartitioner computes the number of partitions (npart) dynamically based on the data range and the empirically determined base interval. However, it never updates self.partitions with this computed value, so self.partitions retains the default value of 10 from the parent class. This causes errors when fitting FTS models that rely on self.partitions to determine the valid range of fuzzy set indices.

Fix

Add self.partitions = npart after computing npart in the build method, so that the partitioner correctly reports the actual number of fuzzy sets it created.

Closes #41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant