This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop all containers | |
docker stop `docker ps -qa` | |
# Remove all containers | |
docker rm `docker ps -qa` | |
# Remove all images | |
docker rmi -f `docker images -qa ` | |
# Remove all volumes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def PolynomialFeatures_labeled(input_df,power): | |
'''Basically this is a cover for the sklearn preprocessing function. | |
The problem with that function is if you give it a labeled dataframe, it ouputs an unlabeled dataframe with potentially | |
a whole bunch of unlabeled columns. | |
Inputs: | |
input_df = Your labeled pandas dataframe (list of x's not raised to any power) | |
power = what order polynomial you want variables up to. (use the same power as you want entered into pp.PolynomialFeatures(power) directly) | |
Ouput: |