Code Monkey home page Code Monkey logo

oncoscope's Introduction

oncoscope ⚕️

en ua

Description 📄

This project was made for creating of Machine Learning Model for Tumor Detection on MRI Images. We are going to use tensorflow and tensorflow.keras libraries for training our model.

Models 🤖

Using my notebooks I have generated two models, they are: tumor_detection.keras and tumor_detection.h5. Both are the same, though with different extensions.

Installation ⚙️

Here is the detailed process of installation:

  1. Clone the repository - git clone https://github.com/pyc4che/oncoscope.git | cd oncoscope
  2. Create the Virtual Environment - python -m venv .venv
  3. Activate the Virtual Environment - source ./.venv/bin/activate
  4. Install required packages using requirements.txt file - python -m pip install -r requirements.txt

After all of this steps you are ready to launch the program, for this type: jupyter notebook. YOur default browser will be opened automatically.

Machine Learning Model 🦾

The only notebook you see is tumor_detection.ipynb the main purpose of this notebook is the training, testing and saving of the model. It works with 100% accuracy !!!

Let's deepen into our Machine Learning process a bit.

Packages 📦

For the Machine Learning process we have to read, make our data preprocessed, train our model and save it. So for this all actions we need the variate of required packages, like:

  1. Pandas - Read our Dataset;
  2. Numpy - Linear Algebra actions;
  3. Seaborn and Matplotlib - Data Visualization;
  4. TensorFlow, TensorFlow.Keras, Scikit-Learn - Data Preprocessing and Model Training;
  5. Some other libraries for different action;

Data Processing 🧪

As dataset I am going to use this kaggle dataset

  1. Dataset Formation - Splitting data into topics and creation of Dataframe
  2. Dataset Visualization - Plotting the Diagrams

As the result we have one diagram:

Dataset Structure dc

Preprocessing 🔨

Well, this is the most interesting part. Now, we are going to train our model and then save it. So let's move on.

This process divides into several steps:

  1. Dataset Splitting - Preparing data for ML manipulations
  2. Trining & Validation - Creating the Image Dataset
  3. Modeling - Training of the Model
  4. Scoring the model - Analyzing the Model Results
  5. Confusion Matrix - Post-Analysis, Visualizing Accuracy
  6. Saving Model - Writing to a File
  • A confusion matrix in machine learning is a table that helps evaluate the performance of a classification algorithm.

Model Training mt

Confusion Matrix cm

The models could be find by path: /output/models/keras.

Thanks, Bye 👋🏻

oncoscope's People

Contributors

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