Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tools/simnet/train/tf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ python tools/tf_record_writer.py
```
python tf_simnet.py
--task train
--task_conf examples/cnn_pointwise.json
--task_conf examples/cnn-pointwise.json
```
**参数说明:**
* **task**: 任务类型 ,可选择train或predict。
Expand Down Expand Up @@ -138,7 +138,7 @@ python tf_simnet.py
```
python tf_simnet.py
--task predict
--task_conf examples/cnn_pointwise.json
--task_conf examples/cnn-pointwise.json
```
**参数说明:**
同模型训练部分
Expand Down
2 changes: 1 addition & 1 deletion tools/simnet/train/tf/utils/controler.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def run_predict(pred, label, config):
sess.close()
result_file.close()
if mode == "pointwise":
mean_acc = mean_acc / step
mean_acc = mean_acc / step*1.0
print >> sys.stderr, "accuracy: %4.2f" % (mean_acc * 100)


Expand Down