Increase the min calibration points to 7 instead of 2 to avoid overfitting#109
Open
midaa1 wants to merge 1 commit intoruxailab:mainfrom
Open
Increase the min calibration points to 7 instead of 2 to avoid overfitting#109midaa1 wants to merge 1 commit intoruxailab:mainfrom
midaa1 wants to merge 1 commit intoruxailab:mainfrom
Conversation
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces a minimum threshold for calibration points to ensure that the gaze prediction models are trained on a sufficient number of samples.
Previously, calibration could proceed with too few points, leading to unstable models and unreliable evaluation results.
Problem
Calibration with very few points can result in overfitting and noisy predictions.
Model performance becomes highly sensitive to outliers when the sample size is too small.
Evaluation metrics are not meaningful with insufficient calibration data.
What Changed
Enforced a minimum of 7 calibration points before training is allowed.
Improved overall robustness and consistency of gaze prediction results by increasing the number of samples per point to 100.
Rule of Thumb
As a general rule of thumb in regression-based calibration tasks:
A minimum of 5–10 well-distributed calibration points is required to obtain a stable mapping.
Setting the minimum to 7 points provides a reasonable balance between usability and statistical reliability.
This ensures:
Better generalization
More stable model coefficients
More meaningful evaluation metrics