LucaGroup

Results comments of LucaGroup

> Thank you for your cooperation. > Regarding the RdRp and non-RdRp sequences you provided, I would appreciate it if you could share a summary table showing which sequences were...

> Thank you for sharing the information about the negative sequences related to the LucaProt benchmark. I really appreciate it! > > I just wanted to follow up since I...

> Lucaprot团队的老师们好 > > 我想使用lucaprot构建一个multi class的模型。在二分类模型的基础上,我修改了对应的csv文件(如图1所示),同时在label.txt文件中加上了新增的label id,但几次尝试都以报错告终(错误提示如下2),建模代码见3。想请教老师们,是不是我遗漏了哪些要点,导致建模失败。 > > btw,我注意到之前有同学也请教过如何训练多分类模型,有老师推荐了lucanone模型(已★★★)。不过我是在云服务器上开展的任务,换新的模型可能有大量的数据转移工作,所以目前还是想基于lucaprot模型进行multi class预测,望老师们不吝赐教。 > > 图1 ![Image](https://github.com/user-attachments/assets/0e2445db-618f-448b-86fe-fb2b505ea46a) > > 错误提示2: Traceback (most recent call last): File "/root/autodl-tmp/3-opt/lucaprot/src/run.py", line 827, in main() File...

数据集csv中label是0到n-1的label index,其中n为分类个数 label.txt中存放的是label index对应的class name,行号就是该行class name对应的label index 比如三分类,csv中分别是label字段就是0,1,2其中的一个 三个类别的名称是A,B,C,那么label.txt中的内容就是 A B C 第0行是类别的名字A,label index是0 第1行是类别的名字B,label index是1 第2行是类别的名字C,label index是2

> 在predictor.py脚本155行插入了 print(out_label_ids) input("continue:") > > 信息提示如下: 2025/04/26 15:33:40-INFO-predictor | ***** Running test checkpoint-1000 ***** 2025/04/26 15:33:40-INFO-predictor | Num examples = 8 2025/04/26 15:33:40-INFO-predictor | Batch size = 16 Testing:...

> 我的label.txt和.CSV文件中都用了多个标签,回头看了一下建模的脚本,这个参数是不是也要对应修改呢? > > label_type: str, the label type name, such as "rdrp" > > 之前做二分类建模时,label_type 我填的.CSV文件中source列的内容,现在做多分类建模,是不是也要对应修改才行。 稍等,我review一下代码

> 我的label.txt和.CSV文件中都用了多个标签,回头看了一下建模的脚本,这个参数是不是也要对应修改呢? > > label_type: str, the label type name, such as "rdrp" > > 之前做二分类建模时,label_type 我填的.CSV文件中source列的内容,现在做多分类建模,是不是也要对应修改才行。 你重新下载试试,我优化了代码

> 好的,我再试试,谢谢。 running 正常吗

> 今天重新安装了更新后的lucaprot,使用以下代码测试了小样本的multi_class 建模,还是有点问题。 > > 原始代码: > export CUDA_VISIBLE_DEVICES=0 > > DATASET_NAME="tf_predict" > DATASET_TYPE="protein" > TASK_TYPE="multi_class" > # sequence + structural embeddding > MODEL_TYPE="sefn" > CONFIG_NAME="0425_sefn_config.json" > INPUT_MODE="single" > LABEL_TYPE="TF"...

> 今天重新安装了更新后的lucaprot,使用以下代码测试了小样本的multi_class 建模,还是有点问题。 > > 原始代码: export CUDA_VISIBLE_DEVICES=0 > > DATASET_NAME="tf_predict" DATASET_TYPE="protein" TASK_TYPE="multi_class" > > # sequence + structural embeddding > MODEL_TYPE="sefn" CONFIG_NAME="0425_sefn_config.json" INPUT_MODE="single" LABEL_TYPE="TF" embedding_input_size=2560 embedding_type="matrix" SEQ_MAX_LENGTH="100" embedding_max_length="2048" TRUNCT_TYPE="right"...