Questions tagged [skfuzzy]
31 questions
3
votes
1 answer
Interpreting an Array of Values Using Skfuzzy
I am using Skfuzzy to interpret two arrays: 1. distances to a stream [dist]; 2. Strahler order[order]. I then want to calculate the consequent (a vulnerability value) for each stream distance and Strahler order pairs using a set of custom…

GEobserver
- 53
- 5
3
votes
0 answers
Objects inside a function are not destroyed after running out of scope, causing memory leak
Generally, I expect that when a local variable goes out of scope, it should be collected from the memory. Here, I experience something different. I tried to run the example given in scikit-fuzzy documentation (here) in a loop, but experience a…

Matt
- 41
- 3
1
vote
1 answer
Change the colormap of existing Matplotlib pyplot (after the plot has been created)?
I am working on a fuzzy control example, which uses the skfuzzy library. Its visualization module is built on top of Matplotlib.
Usually, after constructing a fuzzy variable, with the necessary membership function (either using an auto constructor,…
1
vote
0 answers
Fuzzy Logic: The tipping problem - output never goes past a threshold?
I am new to fuzzy logic with python and have been implementing the skfuzzy library. The first example that I have looked at is the tipping problem, here -> https://pythonhosted.org/scikit-fuzzy/auto_examples/plot_tipping_problem_newapi.html
I…

7- Alison
- 19
- 6
1
vote
1 answer
How to change defuzzification method in Tipping Problem?
I tried the Tipping problem posted on the following website as an example. It works and there is no problem. But I am not sure how to change the defuzzification method in new API. I believe the default method is centroid. How can I check other…

BasicTex
- 89
- 1
- 10
1
vote
0 answers
AND operator in skfuzzy
I have the following three rules
1.If A is medium and B is low then quality is low
2.If A is medium and B is medium then quality is medium
3.If A is medium and B is high then quality is medium
With this link as reference…

FuzzyLogicUser
- 11
- 1
1
vote
2 answers
Untyped global name 'pvc_sim': cannot determine Numba type of
Got error for code below:
@vectorize(["float32(float32, float32, float32, float32)"], target='cuda')
def fuzz_comp(A_row, B_col, X, Y):
for i in range(A_row):
for j in range(B_col):
pvc_sim.input['ipv'] = float(X[i,j])
…

Tariq Javid
- 21
- 5
1
vote
2 answers
How to generate custom membership function Scikit Fuzzy module?
I'm developing a fuzzy system for predicting the increase in price of flight according to the distance of journey and number of active users. Such that, more the number of users higher would be the price.
For that I've defined the Antecents (Inputs)…

Rohit Lal
- 2,791
- 1
- 20
- 36
1
vote
2 answers
Hanging in View method
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…

hw2python
- 11
- 3
0
votes
0 answers
For loop in skfuzzy not returning all results
I am using the skfuzzy module to create a fuzzy logic controller to evaluate three arrays. I have defined my Antecedent/Consequent objects, built my membership functions, created my rules and control system, but when I try and loop across my three…

GEobserver
- 53
- 5
0
votes
1 answer
Assertion error in fuzzy logic enough rules
I have had use case for a fuzzy logic. I want to recommend a product based on needs. However my logic always errors, even though there should be enough rules.
AssertionError Traceback (most recent call last)
File…
user22233107
0
votes
0 answers
How can I use skfuzzy in Django?
I have created a Django project and I want to implement a simple fuzzy logic with three inputs and one output.
However, when I import skfuzzy in Django views and reload the page, I get a Gateway Timeout error after 2 minutes (even without any…

Bernat
- 1
- 2
0
votes
0 answers
Sckikit-Fuzzy and generate dynamic CTRL.Rule()
I am trying to create fuzzy a ctrl.ControlSystemSimulation with scikit-fuzzy package. To do that, I created Antecedents ( Antecedent: Luminosité_intérieure and Antecedent: Luminosité_intérieure), Consequent (Consequent: Ouverture) and memberships…

A.Dumas
- 63
- 1
- 5
0
votes
0 answers
Union of two fuzzy mfs in skfuzzy?
I need to combine two fuzzy membership functions in the same universe in skfuzzy.
I have a trapezoidal membership function [0, 0, 34, 35] and a gaussian membership function (mean=34, s.d=1). How could I get the union of the two in skfuzzy. I've…

tcotts
- 170
- 1
- 10
0
votes
0 answers
NaN as dataframe output of fuzzy model
i preparing a model where the input is "tweets", then i pass those tweets to VADER (to calculate polarity of each word to get a list
finally, I pass it to fuzzy model:
# range input and output
text = ctrl.Antecedent(np.arange(-1, 1.1, 0.1),…

chayma barkaoui
- 46
- 2