Giter Club home page Giter Club logo

logicalerrorfix's Introduction

logicalErrorFix

LEFix

Download and make a dataset

참고: https://github.com/deepmind/code_contests

Install bazel and Cloud SDK for gsutil and clone Riegeli.

>> clone https://github.com/deepmind/code_contests

>> cp covert_riegeli2cpp.py code_contests

>> cd code_contests

>> clone https://github.com/google/riegeli

# bazel build 중 'logical_config_python' 관련 에러 발생 시 
# export PYTHON2_BIN_PATH="python3"

>> bazel build -c opt :print_names_and_sources

>> cat ../BUILD >> ./BUILD

>> gsutil -m cp -r gs://dm-code_contests /tmp

>> bazel run -c opt \
  :convert_riegeli2cpp /tmp/dm-code_contests/*

>> cd ..

>> python make_code_edit_dist.py

Train & eval model

>> ./train.sh

# test_file 변수를 바꿔서 데이터 변경
# test_model 변수를 바꿔서 모델 변경
>> ./eval.sh

>> python --FILE test_0
# total = ???, fault = ???, same == ???
# total = ???, fault = fault/total, same = same/total

Process

  1. Single(이하 S) CodeBERT + Transformer(6 Layers, 이하 6L) *curr.
  2. S BERT + S CodeBERT + Transformer (6L)
  3. 2 BERT + S CodeBERT + Transformer(6L)
  4. N BERT + N CodeBERT + Transformer(6L)

logicalerrorfix's People

Contributors

93suhwan 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.