The given python code gives the data modeling and consists the following methods used: 1) Up sampling 2) Down sampling 3) Gridsearch for the selection of optimal combination of parameters 4) Application of Random Forest classifier 5) Dimensionality reduction using PCA