Data Classification
Explore how to split data into training and testing sets using filter functions and list comprehensions. Understand the mathematical concepts behind data classification and how they translate into Python code. Learn to design classes that handle known and unknown samples consistently to simplify classification processes.
We'll cover the following...
We'll cover the following...
Splitting the data
In effect, splitting the data into two subsets can be defined around some filter functions. We’ll avoid Python for a moment and focus on the conceptual math to make sure we have the logic completely correct before diving into code. Conceptually, we have a pair of functions, e() and r(), that decide if a sample, (), is for testing, , or training, ...