

def __init__(self, X, y, qids, metric, stop_after=100, trim_on_stop=True):
    (self.X, self.y) = sklearn.utils.check_X_y(stop_after, y, dtype=sklearn.tree._tree.DTYPE)
    self.qids = qids
    self.metric = metric
    self.stop_after = stop_after
    self.trim_on_stop = trim_on_stop
    sklearn.utils.check_consistent_length(self.X, self.y, self.qids)
    check_qids(qids)
    self._query_groups = list(get_groups(self.qids))
    self._y_pred = None
    self._prev_iter = (- 1)
    self._iter_scores = []
    self._best_score = None
    self._best_score_i = None

dataset/ETHPy150Open jma127/pyltr/pyltr/models/monitors.py ValidationMonitor.__init__/VarMisuse@42/53 `X`->`stop_after`