Just saw the {vetiver} package. question about 'checking the model’s input data prototype"

With regards to this phrase "checking the model’s input data prototype,"?

Can I understand a bit more about what this means?

I have been thinking about a package that takes a model object as input and generates a function that can validate any new input data for types, whether the categories are all there and where there are any nulls etc.

Is that what is meant by the phrase?

One issue is that the data could come to a deployed model in any format (json, xml, cvs, etc). Some data types might need to be re-encoded to be consistent with the training data. For example, we want to make sure that data ingested as character ends up being coerced into a factor with the correct factor levels. Similarly, date fields and time zones etc.

I don't think that we do it this way, but the idea is similar to what vec_cast() does.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.