Comments (5)
Because the loss of generation is P(y_n|y_0,...y_n-1), you need to use vector of the last token to predict the next token. Therefore, you need to shift the label.
from codebert.
Thanks, @guody5 . Could you also explain why there is min(len(dfg),0)
instead of a max?
CodeBERT/GraphCodeBERT/translation/run.py
Line 191 in 1008a9a
from codebert.
Thanks. The code should be code_tokens=code_tokens[:args.max_source_length-3]
. Please ignore this.
from codebert.
thanks for the quick reply. to clarify, if the code is too long, we only keep the code and ignore the dataflow, right?
from codebert.
Yes.
from codebert.
Related Issues (20)
- CodeReviewer: Metadata for downloading github repos HOT 2
- done. HOT 1
- 如何进行文本与代码的匹配? HOT 1
- The Code Reviewer fine-tuning script freezes on multiprocessor functions on Windows. HOT 2
- Sharing human evaluation results for CodeReviewer (informativeness and relevance) HOT 3
- Missing Appendix in CodeReview Paper HOT 2
- Code completion with >=2 masks
- 关于训练时模型的突然失效问题(training loss暴涨,training ppl暴涨)
- Question about CodeReviewer:Does the order of input diff-lines can influence the outcome?
- Questions about additional C/C++ training dataset HOT 1
- Request for Fine-Tuned GraphCodeBert Model for Code Clone Detection
- Questions about LCC dataset license
- Typo in readme of clonedetection
- Best way to finetune CodeReview Task HOT 1
- codesearch FIne-Tune Epoch卡在0%或者在saving cached文件后killed HOT 2
- GraphCodeBERT node vs. token level attention
- CodeReviewer fine-tuning time
- How to finetune CodeBERT to do a regression prediction task
- CodeReviewer Finetune Script Fails
- How is Input Structured for Comment Generation with CodeT5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codebert.