add more parameters
This commit is contained in:
parent
c269aeaec0
commit
6b1d7fb1bc
16
main.py
16
main.py
@ -5,6 +5,10 @@ import scrap as sc
|
||||
|
||||
prevPlace = ctrl.Antecedent(np.arange(0, 17, 1), 'Previous place')
|
||||
teamValue = ctrl.Antecedent(np.arange(0, 51, 1), 'Team value')
|
||||
currentPlace = ctrl.Antecedent(np.arange(0, 17, 1), 'Current place')
|
||||
points = ctrl.Antecedent(np.arange(0, 51, 1), 'Points')
|
||||
goals = ctrl.Antecedent(np.arange(-25, 25, 1), 'Goals')
|
||||
|
||||
place = ctrl.Consequent(np.arange(0, 100, 1), 'Probability of winning')
|
||||
|
||||
# prevPlace.automf(3)
|
||||
@ -18,6 +22,18 @@ teamValue['Low'] = fuzz.trimf(teamValue.universe, [0,0,10])
|
||||
teamValue['Medium'] = fuzz.trimf(teamValue.universe, [8,15,25])
|
||||
teamValue['High'] = fuzz.trimf(teamValue.universe, [22,50,50])
|
||||
|
||||
currentPlace['Low'] = fuzz.trimf(prevPlace.universe, [10,16,16])
|
||||
currentPlace['Medium'] = fuzz.trimf(prevPlace.universe, [4,8,12])
|
||||
currentPlace['High'] = fuzz.trimf(prevPlace.universe, [0,0,6])
|
||||
|
||||
points['Low'] = fuzz.trimf(teamValue.universe, [0,0,10])
|
||||
points['Medium'] = fuzz.trimf(teamValue.universe, [8,15,25])
|
||||
points['High'] = fuzz.trimf(teamValue.universe, [22,50,50])
|
||||
|
||||
goals['Low'] = fuzz.trimf(teamValue.universe, [-25,-25,-5])
|
||||
goals['Medium'] = fuzz.trimf(teamValue.universe, [-5,0,5])
|
||||
goals['High'] = fuzz.trimf(teamValue.universe, [5,25,25])
|
||||
|
||||
prevPlace.view()
|
||||
teamValue.view()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user