Some variables that we may be interested in modelling, can take both discrete and continuous values.
For example, let's say we want to model the time until the next customer arrives in our shop on a given day, based on various factors like time of day, marketing efforts, and so on. Our shop's opening times are between 10am and 6pm.
At any given time in the day, the time until the next customer arrives can either be a number (e.g. seconds until they arrive) bounded between 0 and the time until the shop closes, or we may not get another customer on that day at all.
In an ML family programming language we might roughly model this data type like so:
type TimeToNextCustomer = NoCustomer | LogSeconds Float -- Using logs, so that the float can be unconstrained
What practical strategies can be used to build a predictive model for such an approach?
One option could be to reframe the task to predict something else. For example, "Number of customers in the rest of the day". However, this may not be appropriate in all cases.
Another option could be to model the distribution of Time To Next Customer, and use a custom loss function to evaluate cases near to the end of the day (no customers) more approprately; however, I am struggling to think through how this might work.