Skip to content

Comments

Refactor gaze prediction pipeline and add Euclidean accuracy metric#52

Merged
jvJUCA merged 2 commits intoruxailab:mainfrom
midaa1:gaze-refactor
Feb 11, 2026
Merged

Refactor gaze prediction pipeline and add Euclidean accuracy metric#52
jvJUCA merged 2 commits intoruxailab:mainfrom
midaa1:gaze-refactor

Conversation

@midaa1
Copy link
Contributor

@midaa1 midaa1 commented Feb 5, 2026

Description

This PR addresses the issues described in #51 by refactoring the gaze prediction pipeline and improving evaluation metrics.

What’s Changed

  • Refactored the ML training and prediction workflow to improve structure and correctness

  • Fixed scaling logic to prevent train/test data leakage

  • Centralized model training logic to remove duplication

  • Added a new Euclidean (pixel-based) accuracy metric via func_total_accuracy

  • Improved evaluation clarity by separating axis-based precision from spatial accuracy

Why This Matters

  • Prevents subtle evaluation bugs caused by data leakage

  • Makes model performance easier to interpret and compare

  • Provides a metric that reflects real gaze error in screen space

  • Improves code maintainability and extensibility

Related Issue

Fixes #51

Copy link
Member

@jvJUCA jvJUCA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvements, your changes will be merged!

@jvJUCA jvJUCA merged commit 18f4e5f into ruxailab:main Feb 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor gaze prediction pipeline and improve data normalization & evaluation

2 participants