A non-transitory machine-readable memory medium on which are stored commands for training a data-based point in time determination model for ascertaining an opening point in time or closing point in time of an injection valve of an internal combustion engine, based on a sensor signal, the commands, when executed by a computer, causing the computer to perform the following steps:
- providing a set of training data sets from a measurement of the internal combustion engine by scanning the sensor signal of a sensor of the injection valve on a test stand, the training data sets assigning a time indication of the opening point in time or of the closing point in time to an evaluation point time series;
- assigning a respective difficulty value to each training data set of the training data sets, the difficulty values each specifying a consistency of the time indications for the training data set;
- classifying the training data sets into a number of difficulty classes corresponding to their respective difficulty value;
- ascertaining new training data sets as a function of the training data sets assigned to each of the difficulty classes;
- and
- training the data-based point in time determination model with a set of the new training data sets.