GithubHelp home page GithubHelp logo

7luna017 / meridian-classification Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 702 KB

This is a method to predict the main return meridians of medicinal materials by collecting the component information and establishing the component proportion matrix.

Python 76.93% R 23.07%

meridian-classification's Introduction

Meridian-Classification

This is a method to predict the main target meridians of herbs by collecting the compound information and establishing the compound proportion matrix. In this package, we provide three modeling methods: linear discriminant analysis (LDA), logistic regression (LR) , support vector machine (SVM) and random forest (RF). We recommend to use the LR model, or make a choice based on the data comparing the results of the three models.

Base Data.csv

This is the basic information of herbs collected through Chinese Pharmacopoeia (ChP) and TCMSP (Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform, http://tcmspw.com/tcmsp.php), including the name of herbs, the main targeted meridians, the number of targeted meridians, and the information of compounds.

Modeling Data.csv

This is the CP matrix obtained by the meridian proportion method, and the data transformation is used to build the model.

Meridian proportion method.R

The meridians set S1~s10 was established by single Meridian herbs of M1 and M2, and the CP matrix was calculated according to the proportion of herbs in the meridians set. If you want to use other meridians Data, please replace Base Data.csv with all herbs collected.

lda.R

This procedure is an LDA model for classifying herbs targeting different meridians, including a feature screening process.

data_partitioning.py

This procedure is used for machine learning part of the test set and training set division.

LR.py

This procedure is an LR model for classifying herbs targeting different meridians, the model results are automatically output at the end of the run.

SVM.py

This procedure is an SVM model for classifying herbs targeting different meridians, the model results are automatically output at the end of the run.

RF.py

This procedure is an RF model for classifying herbs targeting different meridians, the model results are automatically output at the end of the run.

meridian-classification's People

Contributors

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