dpfried / incoder

Generative model for code infilling and synthesis
291 stars 25 forks source link

How to retrain `incoder` on my own dataset #19

Open Ghy0202 opened 10 months ago

Ghy0202 commented 10 months ago

Your work is impressive! I would like to use this model for my own code completion task.I want to know what the training data and target data look like (It would be even better if you could provide examples of the data you initially trained on). For example, is the training data looks like below?

input_code =''' 
import pandas as pd
<insert>
df['res'].value_counts()
'''

target_code = '''
import pandas as pd
df=pd.read_csv("t.csv")
df['res'].value_counts()

'''