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
  What is the use of call method and when to use it? everyday1 1 57 Jul-14-2019, 01:02 PM
Last Post: ichabod801
  Method not defined diskt 1 113 Jul-03-2019, 12:55 PM
Last Post: noisefloor
  Method not regocnized Lass86 3 182 Jun-19-2019, 09:03 AM
Last Post: Lass86
  web3 method rembrandt 3 149 Jun-04-2019, 05:43 PM
Last Post: buran
  AssertionError: View function mapping is overwriting an existing endpoint function Zhavi221 7 674 Apr-17-2019, 01:07 PM
Last Post: Zhavi221
  Connecting lists for tree view minasal 5 320 Feb-06-2019, 05:29 AM
Last Post: ichabod801
  PyPDF2 Hanging When Trying to Open Corrupted PDF bmccollum 6 734 Nov-09-2018, 10:40 AM
Last Post: Larz60+
  pathlib hanging bluefrog 2 476 Sep-25-2018, 12:59 PM
Last Post: volcano63
  [geoJSON] View + work with? Winfried 2 404 Aug-25-2018, 11:14 AM
Last Post: Winfried
  [split] help with While method peterd1965 3 604 Jun-20-2018, 05:45 PM
Last Post: volcano63

Forum Jump:


Users browsing this thread: 1 Guest(s)