Rule-based model is an example of usingour human knowledge to solve a problem. You could also use boolean logic, fuzzy logic, or make decision based on statistcs or myriad other ways that humans do to solve problems.
Rule-based model is very useful to solve the cold start problem, where data is not available.
In H1st framework, a human rule model can be implemented by subclassing the h1.Model class and implementing only the predict() function. Basically, it’s a just a model with no training (though training is not forbidden and is sometimes is useful for human models too).
This particular simple model “predicts” if each given value in a stream is an even number or not.