Update miner.py
Browse files
miner.py
CHANGED
|
@@ -39,7 +39,7 @@ class Miner:
|
|
| 39 |
CORNER_CONFIDENCE = Constants.CORNER_CONFIDENCE
|
| 40 |
GOALKEEPER_POSITION_MARGIN = Constants.GOALKEEPER_POSITION_MARGIN
|
| 41 |
MIN_SAMPLES_FOR_FIT = 16 # Minimum player crops needed before fitting TeamClassifier
|
| 42 |
-
MAX_SAMPLES_FOR_FIT =
|
| 43 |
|
| 44 |
def __init__(self, path_hf_repo: Path) -> None:
|
| 45 |
print("model laoding")
|
|
|
|
| 39 |
CORNER_CONFIDENCE = Constants.CORNER_CONFIDENCE
|
| 40 |
GOALKEEPER_POSITION_MARGIN = Constants.GOALKEEPER_POSITION_MARGIN
|
| 41 |
MIN_SAMPLES_FOR_FIT = 16 # Minimum player crops needed before fitting TeamClassifier
|
| 42 |
+
MAX_SAMPLES_FOR_FIT = 1001 # Maximum samples to avoid overfitting
|
| 43 |
|
| 44 |
def __init__(self, path_hf_repo: Path) -> None:
|
| 45 |
print("model laoding")
|