A more common way of speeding up a machine learning algorithm is by using Principal Component Analysis (PCA). If your learning algorithm is too slow because the input dimension is too high, then using PCA to speed it up can be a reasonable choice.

“PCA using Python (scikit-learn)” by Michael Galarnyk https://towardsdatascience.com/pca-using-python-scikit-learn-e653f8989e60