当前位置: 首页 > news >正文

朝阳公园网站建设湖南营销型网站建设磐石网络知名

朝阳公园网站建设,湖南营销型网站建设磐石网络知名,怎样做自己公司的网站,网站商城注意事项AlphaFold3 msa_pairing 模块的 _correct_post_merged_feats 函数用于对合并后的特征进行修正,确保它们符合预期的格式和要求。这包括可能的对特征值进行调整或进一步的格式化,确保合并后的 FeatureDict 适合于后续模型的输入。 主要作用是: 在多链蛋白质 MSA(多序列比对)…

AlphaFold3 msa_pairing 模块的 _correct_post_merged_feats 函数用于对合并后的特征进行修正,确保它们符合预期的格式和要求。这包括可能的对特征值进行调整或进一步的格式化,确保合并后的 FeatureDict 适合于后续模型的输入。

主要作用是:

  1. 在多链蛋白质 MSA(多序列比对)合并后,重新计算/调整某些特征
    • seq_length(序列长度)
    • num_alignments(MSA 比对的序列数)
  2. 为 MSA 生成合适的掩码(mask),用于模型训练:
    • cluster_bias_mask:控制 MSA 的 query 序列位置。
    • bert_mask:用于 BERT-style MSA 预训练掩码。

源代码:

def _correct_post_merged_feats(np_example: Mapping[str, np.ndarray],np_chains_list: Sequence[Mapping[str, np.ndarray]],pair_msa_sequences: bool
) -> Mapping[str, np.ndarray]:"""Adds features that need to be computed/recomputed post merging."""np_example['seq_length'] = np.asarray(np_example['aatype'].shape[0],dtype=np.int32)np_example['num_alignments'] = np.asarray(np_example['msa'].shape[0],dtype=np.int32)if not pair_msa_sequences:# Generate a bias that is 1 for the first row of every block in the# block diagonal MSA - i.e. make sure the cluster stack always includes# the query sequences for each chain (since the first row is the query# sequence).cluster_bias_masks = []for chain in np_chains_list:mask = np.zeros(chain['msa'].shape[0])mask[0] = 1cluster_bias_masks.append(mask)np_example['cluster_bias_mask'] = np.concatenate(cluster_bias_masks)# Initialize Bert mask with masked out off diagonals.msa_masks = [np.ones(x['msa'].shape, dtype=np.float32)for x in np_chains_list]np_example['bert_mask'] = block_diag(*msa_masks, pad_value=0)else:np_example['cluster_bias_mask'] = np.zeros(np_example['msa'].shape[0])np_example['cluster_bias_mask'][0] = 1# Initialize Bert mask with masked out off diagonals.msa_masks = [np.ones(x['msa'].shape, dtype=np.float32) forx in np_chains_list]msa_masks_all_seq = [np.ones(x['msa_all_seq'].shape, dtype=np.float32) forx in np_chains_list]
http://www.dtcms.com/a/542858.html

相关文章:

  • 网站描述样本永州市住房和城乡建设局网站
  • 网站设计模板图片手机怎么登录网页版微信
  • 网站销售流程公司的网页设计
  • 网站与网页之间的区别是什么意思中国水利建设网站
  • 高端做网站哪家好wordpress边栏调用
  • 永久免费网站建设大概多少钱wordpress小说
  • 门户网站怎么建设需要多长时间网站登陆界面怎么做
  • 南京网站建设公司有哪些100款免费软件网站大全
  • Git常见应用场景问题
  • 丰台深圳网站建设公司怎么在网站上做充话费业务
  • 搜索引擎网站推广定义建设平台网站协议
  • 在因特网上建设网站可选择的方案公司制作网站多少钱
  • 江西省城乡建设厅建设网站seo网站推广教程
  • 做网站西域数码阿里云现在流行什么做网站
  • cocos2d-js可以做网站吗深圳营销型网站设计公司
  • 娱乐网站建设ppt模板网站开发怎么入驻京东
  • 做网站骗老外的钱做韩国护的网站
  • 餐饮营销型网站案例分析wordpress改变域名
  • 无锡网站建设要求qq浏览器在线网页
  • 做印刷网站公司宠物网站模版
  • 做装饰公司网站跨境电商导购网站建设
  • 企业微信网站建设方案网站特效模板
  • 线上购物网站建设的可行性jpress和wordpress
  • 兴平网站开发免费做电子书的网站
  • 旅游网站网页设计代码网站站点结构图
  • 网站开发是什么费用ui设计师证书
  • 成都网站的建设爱网
  • 网站开发哪个城市发展好需要网站建设的人多吗
  • 苏州网站开发公司济南兴田德润厉害吗做旅游网站的目的
  • 网站设计遵循的原则wp-wordpress