我最近一直在通过一门课程学习 python。除非我使用 view 方法,否则一切都很顺利。有人也遇到这个问题吗?
我什至在https://pythonhosted.org/scikit-fuzzy/auto_examples/plot_tipping_problem_newapi.html#example-plot-tipping-problem-newapi-py 中使用了示例代码。(链接已更新)
import numpy as np
import skfuzzy as fuzz
from skfuzzy import control as ctrl
quality = ctrl.Antecedent(np.arange(0, 11, 1), 'quality')
service = ctrl.Antecedent(np.arange(0, 11, 1), 'service')
tip = ctrl.Consequent(np.arange(0, 26, 1), 'tip')
quality.automf(3)
service.automf(3)
tip['low'] = fuzz.trimf(tip.universe, [0, 0, 13])
tip['medium'] = fuzz.trimf(tip.universe, [0, 13, 25])
tip['high'] = fuzz.trimf(tip.universe, [13, 25, 25])
# HERE COMES MY PROBLEM
quality['average'].view()
每当我查看查询部分时,我得到的只是一个小方框,它应该向我显示图表,但它一直在加载。任何意见是极大的赞赏。谢谢!
倚天杖
米脂
相关分类