Spaces:
Running
Running
Update scoring_calculation_system.py
Browse files
scoring_calculation_system.py
CHANGED
@@ -33,33 +33,23 @@ import random
|
|
33 |
@dataclass
|
34 |
class UserPreferences:
|
35 |
"""使用者偏好設定的資料結構,整合基本條件與進階評估參數"""
|
36 |
-
# 基礎居住條件
|
37 |
living_space: str # "apartment", "house_small", "house_large"
|
38 |
yard_access: str # "no_yard", "shared_yard", "private_yard"
|
39 |
-
living_floor: int = 1 # 居住樓層,對公寓住戶特別重要
|
40 |
-
|
41 |
-
# 運動相關參數
|
42 |
exercise_time: int # 每日運動時間(分鐘)
|
43 |
exercise_type: str # "light_walks", "moderate_activity", "active_training"
|
44 |
-
exercise_intensity: str = "moderate" # "low", "moderate", "high"
|
45 |
-
|
46 |
-
# 照護能力與時間
|
47 |
grooming_commitment: str # "low", "medium", "high"
|
48 |
experience_level: str # "beginner", "intermediate", "advanced"
|
49 |
time_availability: str # "limited", "moderate", "flexible"
|
50 |
-
home_alone_time: int = 4 # 每日獨處時間(小時)
|
51 |
-
|
52 |
-
# 家庭環境
|
53 |
has_children: bool
|
54 |
children_age: str # "toddler", "school_age", "teenager"
|
55 |
-
other_pets: bool
|
56 |
-
|
57 |
-
# 環境適應性
|
58 |
noise_tolerance: str # "low", "medium", "high"
|
59 |
space_for_play: bool
|
|
|
60 |
climate: str # "cold", "moderate", "hot"
|
61 |
-
|
62 |
-
#
|
|
|
|
|
63 |
health_sensitivity: str = "medium" # "low", "medium", "high"
|
64 |
barking_acceptance: str = None # 如果未指定,默認使用 noise_tolerance
|
65 |
lifestyle_activity: str = "moderate" # "sedentary", "moderate", "active"
|
|
|
33 |
@dataclass
|
34 |
class UserPreferences:
|
35 |
"""使用者偏好設定的資料結構,整合基本條件與進階評估參數"""
|
|
|
36 |
living_space: str # "apartment", "house_small", "house_large"
|
37 |
yard_access: str # "no_yard", "shared_yard", "private_yard"
|
|
|
|
|
|
|
38 |
exercise_time: int # 每日運動時間(分鐘)
|
39 |
exercise_type: str # "light_walks", "moderate_activity", "active_training"
|
|
|
|
|
|
|
40 |
grooming_commitment: str # "low", "medium", "high"
|
41 |
experience_level: str # "beginner", "intermediate", "advanced"
|
42 |
time_availability: str # "limited", "moderate", "flexible"
|
|
|
|
|
|
|
43 |
has_children: bool
|
44 |
children_age: str # "toddler", "school_age", "teenager"
|
|
|
|
|
|
|
45 |
noise_tolerance: str # "low", "medium", "high"
|
46 |
space_for_play: bool
|
47 |
+
other_pets: bool
|
48 |
climate: str # "cold", "moderate", "hot"
|
49 |
+
|
50 |
+
living_floor: int = 1 # 居住樓層,對公寓住戶特別重要
|
51 |
+
exercise_intensity: str = "moderate" # "low", "moderate", "high"
|
52 |
+
home_alone_time: int = 4 # 每日獨處時間(小時)
|
53 |
health_sensitivity: str = "medium" # "low", "medium", "high"
|
54 |
barking_acceptance: str = None # 如果未指定,默認使用 noise_tolerance
|
55 |
lifestyle_activity: str = "moderate" # "sedentary", "moderate", "active"
|