Outputted files have erroneous characters [bug on mac os]
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
evaluator.py と、提供された train.py 評価コマンドで使用される create_reference_files パスから始めます。ids.java_sa-python_sa.text.txt と eval_scripts/java_sa-python_sa.test/ 配下のスクリプトがどのようにデコードされ、書き込まれるかを調べ、報告されたセットアップ上で提供されたコマンドを使って問題を再現します。生成されたテキストとスクリプトに誤った文字やスペースが含まれなくなり、computational accuracy の評価でそれらを解析できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi, I was trying to reproduce the results in the TransCoder paper, but ran into some issues when it computed the computational accuracy.
It seems that when writing things such as id’s or outputted programs to files or outputs in the log, the text has some issues.
For example, in ids.java_sa-python_sa.text.txt (created by create_reference_files in evaluator.py), the lines look like “CHECK_@@ WHE@@ THER_@@ GI@@ V@@ EN_@@ NUMBER_@@ EV@@ EN_@@ O@@ DD”.
The scripts outputted by the model (e.g. in eval_scripts/java_sa-python_sa.test/) that are used to compute the computational accuracy similarly have erroneous characters and spaces (which causes syntax errors), e.g.:
def f_filled is_@@ ap ( arr , n ) :
if n == 1 : return True
arr.sort ( )
d = arr [ 1 ] - arr [ 0 ]
for i in range ( 2 , n ) :
if arr [ i ] - arr [ i - 1 ] != d : return False
return True
If it is relevant, I am on Mac OS Catalina with python 3.9 and this is the command I have been running to evaluate the TransCoder models provided:
python codegen_sources/model/train.py \
--eval_only True \
--reload_model 'TransCoder_model_1.pth,TransCoder_model_2.pth' \
--data_path "test_dataset" \
--exp_name transcoder \
--dump_path 'dump' \
--lgs 'java_sa-python_sa' \
--bt_steps 'python_sa-java_sa-python_sa,java_sa-python_sa-java_sa' \
--ae_steps 'python_sa,java_sa' \
--mt_steps 'java_sa-python_sa,python_sa-java_sa' \
--encoder_only False \
--emb_dim 1024 \
--n_heads 8 \
--n_layers 0 \
--n_layers_encoder 6 \
--n_layers_decoder 6 \
--eval_bleu true \
--eval_computation true \
--has_sentences_ids true
Thank you.
- 主要言語
- Python
- スター
- 777
- フォーク
- 144
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
facebookresearch/CodeGen のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
facebookresearch/CodeGen#109 ·
-
Hash functionオープン
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
facebookresearch/CodeGen#108 ·
-
Dataset issuesオープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
facebookresearch/CodeGen#107 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
facebookresearch/CodeGen#106 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
facebookresearch/CodeGen#105 ·
facebookresearch/CodeGen の issue をすべて見る
似ている issue
-
[Bug] @deck.gl/arcgis dist import resolves to unpublished @deck.gl/core source path (9.3.11, 9.4.0)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
workflow: a tick's dispatch counts as 'only this step', and no review self-grants a round unattendedオープンworkflow
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
kristofdegrave/homeassistant-smart-charging#1505 ·
メンテナーはふだん 1 日以内に返信
-
metadata submission
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
canonical/content-cache-operator#163 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
[submission]オープンsubmission
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
leanprover/lean-eval-submissions#1852 ·
メンテナーはふだん 1 日以内に返信