Are features limited to certain types?



In this exercise, it introduced some features of a movie dataset that were of type integer and boolean. Are features limited to certain types like numbers or boolean?


No, features can essentially be any type, such as integers, booleans, and even string values. For instance, another feature that is added to the movies dataset might be the movie titles, which would be string values.

When choosing features, however, it is important that there is a way to compare them and determine how similar they are, preferably in a quantifiable way. If you are including string values as a feature, then you may need to implement a way to find out how similar two string values are, so that the result is quantifiable. You might do this by finding the difference of the character values for two strings, counting how many characters two strings have in common, or some other method.