Giter Site home page Giter Site logo

comparing-and-optimizing-ml-classifiers-for-tumor-database-of-sklearn's Introduction

This machine learning project composes of seven parts where I compared and optimized different classifiers such as KNN, decision tree, random forest, Naive Bayes and many more for Tumor database of Sklearn that you can find in the below link :

https://scikit-learn.org/stable/modules/generated/sklearn.datasets.load_breast_cancer.html

Part 1 - KNN

In the first part we optimized the K Nearest Neighbor when K = 3, 5, 7, 9, 11 and 13. The highest accuracy was printed for the best K optimization as shown below.

Part 2 - Decision Tree

In the second part we designed a Decision Tree Classifier and optimized its hyperparameter, depth with values of 3, 4, 5 and 6.

Part 3 - classifiers Comparison

In the third part we compared all the classifiers which are Nearest Neighbors, Linear and RBF SVM, Gaussian Process,Decision Tree, Random Forest,Neural Net,AdaBoost,Naive Bayes and QDA. We plotted the final results as demosntrated below. We also printed the highest accuracy for the best model.

Part 4 - classifiers Scores

In this part we compared all classifiers using confusion matrix, accuracy, precision, recall, ROC, AUC and Complexity based on time.

Part 5 - Random Forest

In this part we designed and optimized a Random Forest classifier by tunning the hyperparameter number of estimators.

Part 6 - Ensemble classifier

In this part we designed an ensemble classifier to produce a better performance than the standalone classifiers. The standalone classifiers used were Random Forest, KNN and Ada Boost.

Part 7 - User Input

Lastly, we developed a program to accept from the user the features and give the prediction for all the classifiers including the ensemble classifier as shown below.

comparing-and-optimizing-ml-classifiers-for-tumor-database-of-sklearn's People

Contributors

lemrabottismail avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.