January 2018
Beginner to intermediate
316 pages
7h 14m
English
Now, we can move on to the machine learning pipelines that will be used to create our facial recognition models:
# let's split our dataset into training and testing
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.25, random_state=1)# instantiate the PCA module pca = PCA(n_components=200, whiten=True) # create a pipeline called preprocessing that will scale data and ...
Read now
Unlock full access