GithubHelp home page GithubHelp logo

prometheussx / cancer_data_classification_logisticregression Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 76 KB

Creating a logistic regression algorithm without using a library and making cancer classification with this algorithm model (Kaggle Explained)

Home Page: https://www.kaggle.com/code/erdemtaha/detection-cancer-with-logistic-regression

Python 100.00%
cancer cancer-classification classification classification-algorithm deep-learning kaggle logistic-regression logistics machine-learning machine-learning-algorithms

cancer_data_classification_logisticregression's Introduction

๐Ÿฆ  Cancer Data Classification With Logistic Regression

๐Ÿ† Test accuracy: 96.49%

๐Ÿ“‘ Project Summary

In this project, I have used logistic regression to classify the cancers we have as benign or malignant.
No machine learning libraries were used in this project pytorch sckitlearn etc.

โš™๏ธ Data information

My data consists of 569 cancer cells and 30 characteristics of each cell.

๐Ÿ“ˆ Plot of Cost and Number of Iterations

We examine how much or how little error the model we obtained with the graphical design of the cost and Number of Iterations ratios makes. As can be seen here, the margin of error of the model is very, very low.

Ekran gรถrรผntรผsรผ 2023-03-20 235346

๐Ÿ—‚ Result cost values and accuracy values

0.692977 at cost We have reached 0.152266 cost value after 290 updates. As a result of this situation, the model has reached the number of turns we want and has reached the test accuracy: 96.49122807017544 %, proving that it is a healthy model. As noticed, as the accuracy value approached 100, the cost value started to decrease less.

For example:

Cost after iteration 260: 0.158155

Cost after iteration 270: 0.156091

Cost after iteration 280: 0.154131

Cost after iteration 290: 0.152266

From round 260 to round 290 there was only an average decrease of 0.006 This shows that the error rate decreases to very minimal values as the accuracy rate increases, as seen in the graph. In this case, the training is finished and the result is considered sufficient because further training does not make a great contribution to the model.

๐Ÿ”— Kaggle Link

https://www.kaggle.com/code/erdemtaha/detection-cancer-with-logistic-regression/settings?scriptVersionId=123550989

๐Ÿงพ General note

The values used in the project, such as lerning_rate and num_iterations, were determined according to the accuracy and graph type of the results.

Ekran gรถrรผntรผsรผ 2023-03-20 235844

cancer_data_classification_logisticregression's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.