本文整理匯總了Python中dragnn.protos.spec_pb2.LinkedFeatureChannel方法的典型用法代碼示例。如果您正苦於以下問題:Python spec_pb2.LinkedFeatureChannel方法的具體用法?Python spec_pb2.LinkedFeatureChannel怎麽用?Python spec_pb2.LinkedFeatureChannel使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類dragnn.protos.spec_pb2
的用法示例。
在下文中一共展示了spec_pb2.LinkedFeatureChannel方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: _linked_feature_label
# 需要導入模塊: from dragnn.protos import spec_pb2 [as 別名]
# 或者: from dragnn.protos.spec_pb2 import LinkedFeatureChannel [as 別名]
def _linked_feature_label(linked_feature):
"""Generates the label on edges between components.
Args:
linked_feature: spec_pb2.LinkedFeatureChannel proto
Returns:
String label
"""
return """<
<B>{name}</B><BR />
F={num_features} D={projected_dim}<BR />
{fml}<BR />
<U>{source_translator}</U><BR />
<I>{source_layer}</I>
>""".format(
name=linked_feature.name,
num_features=linked_feature.size,
projected_dim=linked_feature.embedding_dim,
fml=linked_feature.fml,
source_translator=linked_feature.source_translator,
source_layer=linked_feature.source_layer)