Bottom Page

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!
buran wrote Feb-15-2019, 08:37 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  PyPDF2 Hanging When Trying to Open Corrupted PDF bmccollum 6 1,140 Nov-09-2018, 10:40 AM
Last Post: Larz60+
  pathlib hanging bluefrog 2 574 Sep-25-2018, 12:59 PM
Last Post: volcano63
  Is my pi sleeping or hanging up? marciokoko 5 2,928 Jan-17-2017, 01:09 AM
Last Post: marciokoko

Forum Jump:


Users browsing this thread: 1 Guest(s)