I m biulding a model using skfuzzy, python library, but in my problem i have crisp and fuzzy variables, how can i include this crisp variables in my calculation? for exemple: i have a age variable, this is fuzzy, but i have a smoke variable, that is crisp because the answer is "yes" or "no" only, how can i add this in the model? I have tried to biuld a variable, but i did not have sucess cause i did not find a way to do this in skfuzzy.
import skfuzzy as fuzz
from skfuzzy import control as ctrl
idade = ctrl.Antecedent(np.arange(0, 101, 1), 'idade')
idade['muito jovem'] = fuzz.trapmf(idade.universe, [0, 0, 13, 20])
idade['jovem'] = fuzz.trapmf(idade.universe, [15, 22, 28, 35])
idade['moderado'] = fuzz.trapmf(idade.universe, [30, 37, 48, 55])
idade['avan?ado'] = fuzz.trapmf(idade.universe, [50, 57, 73, 80])
idade['muito avan?ado'] = fuzz.trapmf(idade.universe, [75, 82, 97, 100])
#idade.view()```
question from:
https://stackoverflow.com/questions/66056466/how-do-i-use-crisp-variables-in-skfuzzy-python-library 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…