July 2017
Intermediate to advanced
382 pages
9h 13m
English
Bootstrapping can be implemented with the following procedure:
In [15]: knn = cv2.ml.KNearest_create() ... knn.setDefaultK(1)
In [16]: idx_boot = np.random.choice(len(X), size=len(X), ... replace=True) ... X_boot = X[idx_boot, ...Read now
Unlock full access