{"cells":[{"metadata":{},"cell_type":"markdown","source":"If you like this kernel please consider upvoting it and the associated datasets:\n- https://www.kaggle.com/abhishek/mlframework\n- https://www.kaggle.com/abhishek/catfeats-model/"},{"metadata":{"trusted":true},"cell_type":"code","source":"!pip install -U scikit-learn==0.22 > /dev/null","execution_count":null,"outputs":[]},{"metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","trusted":true},"cell_type":"code","source":"import sys\nsys.path.insert(0, \"../input/\")\nfrom mlframework.predict import predict","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"sub = predict(test_data_path=\"../input/cat-in-the-dat-ii/test.csv\",\n              model_type=\"randomforest\",\n              model_path=\"../input/catfeats-model/\")","execution_count":null,"outputs":[]},{"metadata":{"trusted":true},"cell_type":"code","source":"sub.loc[:, \"id\"] = sub.loc[:, \"id\"].astype(int)\nsub.to_csv(\"submission.csv\", index=False)","execution_count":null,"outputs":[]}],"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat":4,"nbformat_minor":1}