setRegression method
Changing in Use Regression Module
The regression module determines how the regression model is learned and how predictions are made based on the eye patches extracted from the tracker module
Implementation
/*
Here are all the regression modules that come by default with WebGazer.js.
ridge - mapping pixels from the detected eyes to locations on the screen.
weightedRidge - with the newest user interactions contributing more to the model.
threadedRidge - a faster implementation of ridge regression that uses threads.
*/
Future<bool> setRegression(String regression) {
return EyeTrackingPlatform.instance.setRegression(regression);
}