更新文档结构
This commit is contained in:
6
code/utils.py
Normal file
6
code/utils.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from collections import namedtuple
|
||||
|
||||
# 使用具名元组定义特征标记
|
||||
SparseFeat = namedtuple('SparseFeat', ['name', 'vocabulary_size', 'embedding_dim'])
|
||||
DenseFeat = namedtuple('DenseFeat', ['name', 'dimension'])
|
||||
VarLenSparseFeat = namedtuple('VarLenSparseFeat', ['name', 'vocabulary_size', 'embedding_dim', 'maxlen'])
|
||||
Reference in New Issue
Block a user