MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / DimInfo

Class DimInfo

tf_classify_demo/sample_data.py:16–39  ·  view source on GitHub ↗

维度信息

Source from the content-addressed store, hash-verified

14
15
16class DimInfo(object):
17 """
18 维度信息
19 """
20
21 def __init__(self):
22 # 词向量有多少维
23 self.vec_dim = 0
24 # 样本输入的x有多少维
25 self.x_dim = 0
26 # 当前最大的词编号是多大
27 self.max_word_id = -1
28
29 def get_vec_dim(self):
30 """
31 get_vec_dim
32 """
33 return self.vec_dim
34
35 def get_x_dim(self):
36 """
37 get_x_dim
38 """
39 return self.x_dim
40
41
42class Maps(object):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected