Giter Site home page Giter Site logo

gaeolus / drug_label Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magnusgray1/drug_label

0.0 0.0 0.0 16.93 MB

Code & Train/Test Data for “Classifying Free Texts Into Pre-Defined Sections Using AI in Regulatory Documents: A Case Study with Drug Labeling Documents” for publication in Chemical Research in Toxicology in 2023.

Python 100.00%

drug_label's Introduction

This repository contains the code, data, and results for the paper titled "Classifying Free Texts Into Pre-Defined Sections Using AI in Regulatory Documents: A Case Study with Drug Labeling Documents" by Magnus Gray, Joshua Xu, Weida Tong, and Leihong Wu.

The following describes the files and file structure.

Folders:

'data': contains the data files used for training and testing the models

	'binary': contains the data files (.csv) for the binary classification task
	'multi': contains the data files (.csv) for the multi-class task

'results': contains the primary results for the BERT-based models

	'binary': contains the BERT results for the binary classification task

		'eval_logs': contains the testing results (.txt)
		'graphs': contains plots of training loss and accuracy (.png)
		'train_logs': contains the training history logs (.txt)

	'multi': contains the BERT results for the multi-calss task

		'eval_logs': contains the testing results (.txt)
		'graphs': contains plots of training loss and accuracy (.png)
		'train_logs': contains the training history logs (.txt)

'rf': contains the results for the random forest models

'shap': contains the results of the SHAP model explainability analysis

'svm': contains the results for the SVM models

Python Files:

'binary.py': the code for fine-tuning and evaluating the binary BERT-based models

'multi.py': the code for fine-tuning and evaluating the multi-class BERT-based models

'rf.py': the code for fine-tuning and evaluating the random forest models

'shap.py': the code for the SHAP model explainability analysis

'svm.py': the code for fine-tuning and evaluating the SVM models

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.