DawnC commited on
Commit
f0f81f7
β€’
1 Parent(s): 069d426

Update scoring_calculation_system.py

Browse files
Files changed (1) hide show
  1. 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.35,
490
- "shared_yard": 0.45,
491
- "private_yard": 0.55
492
  },
493
  "house_small": {
494
- "no_yard": 0.75,
495
- "shared_yard": 0.85,
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.45,
507
- "shared_yard": 0.55,
508
- "private_yard": 0.65
509
  },
510
  "house_small": {
511
- "no_yard": 0.55,
512
- "shared_yard": 0.65,
513
- "private_yard": 0.75
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.40,
524
- "shared_yard": 0.50,
525
- "private_yard": 0.60
526
  },
527
  "house_small": {
528
- "no_yard": 0.40,
529
- "shared_yard": 0.50,
530
- "private_yard": 0.60
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.15, # ι«˜ι‹ε‹•ιœ€ζ±‚εœ¨ε…¬ε―“η’°ε’ƒζ›΄ε—ι™
548
- "house_small": -0.10,
549
- "house_large": -0.05
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
  }