DawnC commited on
Commit
49360e3
1 Parent(s): 823105a

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. scoring_calculation_system.py +2 -2
scoring_calculation_system.py CHANGED
@@ -1773,7 +1773,7 @@ def calculate_breed_compatibility_score(scores: dict, user_prefs: UserPreference
1773
  if extremities['space'][0] == 'restricted':
1774
  if extremities['exercise'][0] in ['high', 'extremely_high']:
1775
  adjustments['space'] = 1.3
1776
- adjustments['exercise'] = 2.0
1777
  else:
1778
  adjustments['space'] = 1.6
1779
  adjustments['noise'] = 1.5
@@ -2089,7 +2089,7 @@ def calculate_breed_compatibility_score(scores: dict, user_prefs: UserPreference
2089
  # 重新定義關鍵指標閾值,提供更寬容的評分標準
2090
  critical_thresholds = {
2091
  'space': 0.35,
2092
- 'exercise': 0.4,
2093
  'experience': 0.5,
2094
  'noise': 0.5
2095
  }
 
1773
  if extremities['space'][0] == 'restricted':
1774
  if extremities['exercise'][0] in ['high', 'extremely_high']:
1775
  adjustments['space'] = 1.3
1776
+ adjustments['exercise'] = 2.3
1777
  else:
1778
  adjustments['space'] = 1.6
1779
  adjustments['noise'] = 1.5
 
2089
  # 重新定義關鍵指標閾值,提供更寬容的評分標準
2090
  critical_thresholds = {
2091
  'space': 0.35,
2092
+ 'exercise': 0.35,
2093
  'experience': 0.5,
2094
  'noise': 0.5
2095
  }