You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// _eci (estimator improve cost) might be infinity, which means the estimator cost for finding an improvement is positive infinity
105
+
// in that case, we used to set the probability to be a very small number, in some cases it can be zero ( 1 / double.infinity), so that it will be very unlikely to be picked.
106
+
// however, there's a special situation where all the estimators have infinity eci
107
+
// which could happen when all the estimators have been tried, all retrieves perfect loss and no improvement can be made.
108
+
// in which case, all probablities will be zero and in that case, we will never be able to pick any of them.
109
+
// Therefore, we need to make sure non of the probabilities is zero, and we can do that by adding a very small number (double.epsilon) to each of them after inverse.
0 commit comments