Spaces:
Running
on
Zero
Running
on
Zero
Update scoring_calculation_system.py
Browse files- scoring_calculation_system.py +21 -21
scoring_calculation_system.py
CHANGED
@@ -486,13 +486,13 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
486 |
},
|
487 |
"Medium": {
|
488 |
"apartment": {
|
489 |
-
"no_yard": 0.
|
490 |
-
"shared_yard": 0.
|
491 |
-
"private_yard": 0.
|
492 |
},
|
493 |
"house_small": {
|
494 |
-
"no_yard": 0.
|
495 |
-
"shared_yard": 0.
|
496 |
"private_yard": 0.90
|
497 |
},
|
498 |
"house_large": {
|
@@ -503,14 +503,14 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
503 |
},
|
504 |
"Large": {
|
505 |
"apartment": {
|
506 |
-
"no_yard": 0.
|
507 |
-
"shared_yard": 0.
|
508 |
-
"private_yard": 0.
|
509 |
},
|
510 |
"house_small": {
|
511 |
-
"no_yard": 0.
|
512 |
-
"shared_yard": 0.
|
513 |
-
"private_yard": 0.
|
514 |
},
|
515 |
"house_large": {
|
516 |
"no_yard": 0.85,
|
@@ -520,14 +520,14 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
520 |
},
|
521 |
"Giant": {
|
522 |
"apartment": {
|
523 |
-
"no_yard": 0.
|
524 |
-
"shared_yard": 0.
|
525 |
-
"private_yard": 0.
|
526 |
},
|
527 |
"house_small": {
|
528 |
-
"no_yard": 0.
|
529 |
-
"shared_yard": 0.
|
530 |
-
"private_yard": 0.
|
531 |
},
|
532 |
"house_large": {
|
533 |
"no_yard": 0.80,
|
@@ -544,9 +544,9 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
544 |
# ιειζ±ε°η©Ίιθ©εηε½±ιΏ
|
545 |
exercise_impact = {
|
546 |
"Very High": {
|
547 |
-
"apartment": -0.
|
548 |
-
"house_small": -0.
|
549 |
-
"house_large":
|
550 |
},
|
551 |
"High": {
|
552 |
"apartment": -0.25,
|
@@ -559,7 +559,7 @@ def calculate_compatibility_score(breed_info: dict, user_prefs: UserPreferences)
|
|
559 |
"house_large": 0
|
560 |
},
|
561 |
"Low": {
|
562 |
-
"apartment": 0.10,
|
563 |
"house_small": 0.05,
|
564 |
"house_large": 0
|
565 |
}
|
|
|
486 |
},
|
487 |
"Medium": {
|
488 |
"apartment": {
|
489 |
+
"no_yard": 0.75,
|
490 |
+
"shared_yard": 0.85,
|
491 |
+
"private_yard": 0.90
|
492 |
},
|
493 |
"house_small": {
|
494 |
+
"no_yard": 0.80,
|
495 |
+
"shared_yard": 0.90,
|
496 |
"private_yard": 0.90
|
497 |
},
|
498 |
"house_large": {
|
|
|
503 |
},
|
504 |
"Large": {
|
505 |
"apartment": {
|
506 |
+
"no_yard": 0.65,
|
507 |
+
"shared_yard": 0.75,
|
508 |
+
"private_yard": 0.85
|
509 |
},
|
510 |
"house_small": {
|
511 |
+
"no_yard": 0.70,
|
512 |
+
"shared_yard": 0.80,
|
513 |
+
"private_yard": 0.90
|
514 |
},
|
515 |
"house_large": {
|
516 |
"no_yard": 0.85,
|
|
|
520 |
},
|
521 |
"Giant": {
|
522 |
"apartment": {
|
523 |
+
"no_yard": 0.60,
|
524 |
+
"shared_yard": 0.70,
|
525 |
+
"private_yard": 0.80
|
526 |
},
|
527 |
"house_small": {
|
528 |
+
"no_yard": 0.65,
|
529 |
+
"shared_yard": 0.75,
|
530 |
+
"private_yard": 0.85
|
531 |
},
|
532 |
"house_large": {
|
533 |
"no_yard": 0.80,
|
|
|
544 |
# ιειζ±ε°η©Ίιθ©εηε½±ιΏ
|
545 |
exercise_impact = {
|
546 |
"Very High": {
|
547 |
+
"apartment": -0.10,
|
548 |
+
"house_small": -0.05,
|
549 |
+
"house_large": 0
|
550 |
},
|
551 |
"High": {
|
552 |
"apartment": -0.25,
|
|
|
559 |
"house_large": 0
|
560 |
},
|
561 |
"Low": {
|
562 |
+
"apartment": 0.10,
|
563 |
"house_small": 0.05,
|
564 |
"house_large": 0
|
565 |
}
|