Delete an unnecessary variable "data"
This commit is contained in:
parent
78e63aaa63
commit
e9d5f7629f
@ -18,7 +18,7 @@ all_methods = [Grid.GridPartitioner, Entropy.EntropyPartitioner, FCM.FCMPartitio
|
|||||||
mfs = [Membership.trimf, Membership.gaussmf, Membership.trapmf]
|
mfs = [Membership.trimf, Membership.gaussmf, Membership.trapmf]
|
||||||
|
|
||||||
|
|
||||||
def plot_sets(data, sets: dict, titles : list, size=[12, 10], save=False, file=None, axis=None):
|
def plot_sets(sets: dict, titles : list, size=[12, 10], save=False, file=None, axis=None):
|
||||||
"""
|
"""
|
||||||
Plot all fuzzy sets in a Partitioner
|
Plot all fuzzy sets in a Partitioner
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ def plot_sets(data, sets: dict, titles : list, size=[12, 10], save=False, file=N
|
|||||||
Util.show_and_save_image(fig, file, save)
|
Util.show_and_save_image(fig, file, save)
|
||||||
|
|
||||||
|
|
||||||
def plot_partitioners(data, objs, tam=[12, 10], save=False, file=None, axis=None):
|
def plot_partitioners(objs, tam=[12, 10], save=False, file=None, axis=None):
|
||||||
sets = [k.sets for k in objs]
|
sets = [k.sets for k in objs]
|
||||||
titles = [k.name for k in objs]
|
titles = [k.name for k in objs]
|
||||||
plot_sets(sets, titles, tam, save, file, axis)
|
plot_sets(sets, titles, tam, save, file, axis)
|
||||||
|
Loading…
Reference in New Issue
Block a user