Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hanging in View method
#1
Hello,

I've been recently learning python through a course. Everything works smoothly except when I use view method. Anybody having this problem as well?

I even used a sample code in https://pythonhosted.org/scikit-fuzzy/au...-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()
Any advice is greatly appreciated. Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  python script is hanging while calling a procedure in database prasanthi417 4 442 Jan-17-2024, 02:33 PM
Last Post: deanhystad
  PyPDF2 Hanging When Trying to Open Corrupted PDF bmccollum 6 8,622 Nov-09-2018, 10:40 AM
Last Post: Larz60+
  pathlib hanging bluefrog 2 3,087 Sep-25-2018, 12:59 PM
Last Post: volcano63
  Is my pi sleeping or hanging up? marciokoko 5 7,251 Jan-17-2017, 01:09 AM
Last Post: marciokoko

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020