Giter Club home page Giter Club logo

nicolepingz / machine-learning-approaches-for-biomarker-identification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ramanchahal98/machine-learning-approaches-for-biomarker-identification

0.0 0.0 0.0 249 KB

A Machine learning approach for the identification of biomarkers in osteoarthritis, although methodology is generic enough to applied for other biomedical data. Dataset is provided by CHECK (Cohort Hip & Cohort Knee) In total 8 Machine Learning models are attached using feature selectors RFE and Relief, with classifiers Random Forest (RF), Logistic Regression (LR), Support Vector Classifier (SVC) and Xgboost (Xgb)

Python 100.00%

machine-learning-approaches-for-biomarker-identification's Introduction

Machine-Learning-Approaches-for-Biomarker-Identification

A Machine learning approach for the identification of biomarkers in osteoarthritis, although methodology is generic enough to applied for other biomedical data. Dataset is provided by CHECK (Cohort Hip & Cohort Knee) - https://easy.dans.knaw.nl/ui/datasets/id/easy-dataset:62981. In total 8 Machine Learning models are attached using feature selectors RFE and Relief, with classifiers Random Forest (RF), Logistic Regression (LR), Support Vector Classifier (SVC) and Xgboost (Xgb). Python 3.8

These are split into 8 experiments named:

  1. Experiment_RFE_RF
  2. Experiment_Relief_RF
  3. Experiment_RFE_LR
  4. Experiment_Relief_LR
  5. Experiment_RFE_SVC
  6. Experiment_Relief_SVC
  7. Experiment_RFE_Xgb
  8. Experiment_Relief_Xgb

--- Installation ---

Packages used and how to install in Linux (using pip):

numpy: >> pip install numpy pandas: >> pip install pandas sklearn: >> pip install sklearn xgboost: >> pip install xgboost matplotlib: >> pip install matplotlib seaborn: >> pip install seaborn

--- Usage ---

To use these models with the data provided (see https://easy.dans.knaw.nl/ui/datasets/id/easy-dataset:62981) - or another biomedical dataset, you need to change the loading location where the data is loaded, and the target column:

data = pd.read_csv("data location here")

target = "target"

Data locations will need to be changed by user a total of 5 times. These are the 1. data location just mentioned,

  1. when gathering data about feature selector and classifier after fitting: other_data.to_csv(path_or_buf="where you want the csv to be located" + str(i) + ".csv")

  2. feature importance plot: filename = "where you want plots to be located" + str(get_scores()) + "Feature_Importance" + ".png"

  3. ROC plots: filename = "where you want ROC plots to be located" + "ROC RFE-RF" + ".png"

  4. Complied data, with metrics AUC, Accuracy, F1 and precision compiled_data.to_csv("where you want csv to be located/named.csv")

Each python script must have the changes mentioned above

If done correctly, you should have generated feature importance plots for each round of CV and a single combined ROC plot for each model, along with other performance metrics.

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.