提交 83917b57 编写于 作者: D DesmonDay

fix return bug

上级 8fae1bf2
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
......@@ -97,7 +97,7 @@ class LDADoc(object):
topic_dist = []
sum_ = np.sum(self._accum_topic_sum)
if sum_ == 0:
return
return topic_dist
for i in range(0, self._num_topics):
if self._accum_topic_sum[i] == 0:
continue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册