Step 3: Applying ML on Titanic » Data Is Utopia
In this part we are going to apply Machine Learning Models on the famous Titanic dataset. So, first things first, we need to import the packages we are going to use in this section, which are the great Pandas and the awesome SciKit Learn. For efficiency reasons, we do not load the whole scikit-learn, instead we are load the function we just need in our work. As a practice, I separate with line the function based on their jobs, also I sort them, for example train_test_split and accuracy_score are not similar to LogisticRegression, so I separated them. Getting back to our work those are all the functions/classes we are going to use for applying machine learning on the titanic dataset.
Dec-18-2019, 02:44:26 GMT
- Technology: