Coder Social home page Coder Social logo

jennyckaplan / polypeptide_pals Goto Github PK

View Code? Open in Web Editor NEW

This project forked from connor-j-jordan/polypeptide_pals

0.0 0.0 0.0 3.77 MB

A reimplementation of "Evaluating Protein Transfer Learning with TAPE by Rao et al"

License: MIT License

Shell 1.30% Python 98.70%

polypeptide_pals's Introduction

Developing Unprecedentedly Competent Transformers for TAPE

(Tasks Assessing Protein Embeddings)

Overview

This is a reimplementation of the paper Evaluating Protein Transfer Learning with TAPE by Rao et al. The GitHub for the paper with the model architectures implemented in PyTorch and data is here. Due to time and resource constraints, we focused on reimplementing the downstream tasks, conditionally passing in the unsupervised pretrained model (trained on the very large Pfam protein family dataset) weights to these downstream models. We reimplemented multiple downstream models each trained on the biological task of Secondary Structure (SS) Prediction. The models we reimplemented were a Transformer, RNN, and LSTM.

Results

Secondary Structure Prediction (ss3)

Model Accuracy Perplexity
RNN 0.8403 1.649
Transformer 0.8402 1.653
LSTM 0.6325 5.246

Secondary Structure Prediction (ss8)

Model Accuracy Perplexity
RNN 0.7474 2.241
Transformer 0.7275 2.377
LSTM 0.2959 12.707

Dependencies

  • wget (for MacOS: run brew install wget)
  • tensorflow 2.3.0
  • numpy 1.17.3+

Data

To download the dataset, run download_data.sh. This should create a /data folder in the root directory that contains the data for each task. This dataset is for the Secondary Structure task only.

Then, run python3 json_to_pickle.py to create the pickle files in data/pickle/ with the relevant data for training, validation, and testing.

Running

python3 main.py <model> where model is "RNN", "TRANSFORMER" or "LSTM"

Public Implementations

Final Writeup

https://docs.google.com/document/d/1L4aOY5xLsyBFOLO4cOcJ2mWBBOiMR-DaGUfM9t8Ej90

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.