GithubHelp home page GithubHelp logo

cs236g_herbalmedicineclassification's Introduction

CS236G_herbalMedicineClassification

The repository is for course CS 236G use. Our first dataset (source domain data) cannot be shared due to the laboratory requirements. But the dataset has been introduced in the following publication: Zhan, X., Guan, X., Wu, R., Wang, Z., Wang, Y., & Li, G. (2018). Discrimination between alternative herbal medicines from different categories with the electronic nose. Sensors, 18(9), 2936. Our second dataset is as follows: https://github.com/xzhan96-stf/Herbal-medicine-origin-e-nose.git Dataset Description and the introduction to the features can be found in the link as well.

  1. Classification with DRCA.py is the file to train the LDA/SVM/RF model with DRCA and evaluate the model performance on the target train (target domain validation data in the report)/target test set. The target dataset is partitioned into two datasets: target train and target test. The target train is used to train the DRCA domain adaptation model and optimize the hyperparameters of DRCA. The classifier's performance on the source domain data is used to feedback the hyperparameter tuning for the classifiers (LDA/SVM/RF). Once all the hyperparameters are tuned, the model performance is tested on the target domain test set.

  2. GAN_nn_agg.py is the file to train the DNN model with DRCA and evaluate the model performance on the target train (target domain validation data in the report)/target test set. The partition of datasets are the same as file Classification with DRCA.py. The classifier's performance on the source domain data is used to feedback the hyperparameter tuning for the classifiers(DNN). Once all the hyperparameters are tuned, the model performance is tested on the target domain test set.

  3. Classification with Cycle-GAN.py, Classification with DRCA.py, Classification with GAN_DRCA.py, Classification with GAN_KMM.py are the files to train the LDA/SVM/RF models and evaluate the model performance on the target train set (target domain validation data in the report) and target domain test set. The hyperparameters of the classifiers (linear discrinant analysis, support vector machine and random forest) are tuned in a five-fold cross validation on the source domain data (as we deem the target domain data are without labels known to the users). The domain adaptation approaches' hyperparameters were manually tuned based on the performance on the target domain validation data.

cs236g_herbalmedicineclassification's People

Contributors

xzhan96-stf avatar yjl705 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.