Git Product home page Git Product logo

biomedical-citation-selector-trainer's Introduction

Retraining Instructions

  1. Create a working directory.
  2. Copy J_Medline.txt, lsi2018.xml, and selectivly-indexed-journals-of-interest.csv from ./input_data to the working directory.
  3. Create an anconda environment:
conda create --name selective_indexing --file requirements.txt
conda activate selective_indexing
conda install requests
pip install tensorflow-gpu==2.0.1
  1. Download the data for the tokenizer:
python -m nltk.downloader punkt
  1. Run the retraining script:
python -m BmCS.retrain --workdir /path/to/workdir
  1. When the script has finished, copy the following files from the working directory to the BmCS/models folder in the biomedical-citation-selector repository:

    • journal_ids.txt
    • word_indices.txt
  2. Note that the retrained models have been saved to the follwoing folders in the working directory:

    • ./cnn_model/checkpoints/best_model.hdf5 (new CNN model)
    • ./voting_model/voting_model.joblib (new ensemble model)
  3. Note that optimized decision threshold values have been saved in the combined_optimum_thresholds.txt file in the working directory. The first line of this file contains the high recall threshold for detecting articles that are in-scope for MEDLINE, and the second line contains the high precision threshold for detecting articles that are in-scope for MEDLINE and do not need to be manually reviewed.

  4. In BmCS/thresholds.py in the biomedical-citation-selector repository, update COMBINED_THRESH with the high recall threshold saved in the first line of the combined_optimum_thresholds.txt file, and also update PRECISION_THRESH with the high precision theshold saved in the second line of the combined_optimum_thresholds.txt file. After these changes the system is now configured to run with the new retrained models.

  5. Use the BmCS package --test option to confirm that the BmCS system is performing as expected:

BmCS /path/to/workdir/cnn_model/checkpoints/best_model.hdf5 /path/to/workdir/voting_model/voting_model.joblib --test --tolerance=0.04

biomedical-citation-selector-trainer's People

Contributors

kireeve avatar raear 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.