AI4Finance-Foundation / FinGPT

FinGPT: Open-Source Financial Large Language Models! Revolutionize 🔥 We release the trained model on HuggingFace.
https://ai4finance.org
MIT License
13.84k stars 1.92k forks source link

在执行infer.ipynb 时,文件里面的两个目录问题 #48

Open xiaozhao1795 opened 1 year ago

xiaozhao1795 commented 1 year ago

root_path = "/root/autodl-tmp/results" instructions = pd.read_csv(f"{root_path}/results_new.csv") instructions.shape ori_instructions = pd.read_csv(f"{root_path}/results.csv") ori_instructions.shape

这两个文件从哪里获取的,没有看到生成的代码

oliverwang15 commented 1 year ago

这个两个文件的核心内容就是原模型和 fine-tuned 的模型不同的情感分类输出,所以您可以忽略这两行代码直接使用模型输出的结果进行比较,同时保存的代码在下面一段的Cell中,具体代码为:

instructions.to_csv(f"{root_path}/results_new.csv")
ori_instructions.to_csv(f"{root_path}/results.csv")

The core content of these two files is the different sentiment classification output of the original model and the fine-tuned model, so you can ignore these two lines of code and compare the results of the model output directly, while saving the code in the Cell below:

instructions.to_csv(f"{root_path}/results_new.csv")
ori_instructions.to_csv(f"{root_path}/results.csv")
JBYhjz commented 11 months ago

root_path = "/root/autodl-tmp/results" instructions = pd.read_csv(f"{root_path}/results_new.csv") instructions.shape ori_instructions = pd.read_csv(f"{root_path}/results.csv") ori_instructions.shape

这两个文件从哪里获取的,没有看到生成的代码

请问您是如何解决的呢 还有codename这份问题