Python: Combinations of Values On and Off

In my continued exploration of Kaggle’s Spooky Authors competition, I wanted to run a GridSearch turning on and off different classifiers to work out the best combination.
I, therefore, needed to generate combinations of 1s and 0s enabling different classifiers.

Link: https://dzone.com/articles/python-combinations-of-values-on-and-off?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev