seldonian.models.custom_text_model.CustomTextModel¶
- class CustomTextModel¶
Bases:
SeldonianModel
- __init__()¶
A demo class used for illustrating models for the custom regime
- __repr__()¶
Return repr(self).
Methods
- predict(theta, data)¶
Data are lists of lists of characters Returns dot product of theta with each row of numerical representation of data. autograd doesn’t like np.dot for some reason
- Parameters:
theta – The parameter weights
data – A list of samples, where in this case samples are lists of length three with each element a single character