April 2017
Beginner to intermediate
358 pages
9h 30m
English
Transformers have two key functions:
Both fit() and transform() functions should take the same data type as input, but transform() can return data of a different type while fit() always returns self.
We are going to create a trivial transformer to show the API in action. The transformer will take a NumPy array as input, and discretize it based on the mean. Any value higher than the mean (of the training data) will be given the value 1 and any value lower or equal to the mean will be given the value 0.
We did ...
Read now
Unlock full access