警告:在读取偏移处的浮点值时,耗尽当前序列所需的所有输入

时间:2017-01-19 19:29:13

标签: cntk

我正在尝试CNTK example,但在训练数据时失败了...... 似乎它耗尽了所有输入,但这在某种程度上被视为错误。 我不知道出了什么问题。有人可以帮忙吗?

错误

WARNING: Exhausted all input expected for the current sequence while reading a floating point value at offset 790 in the input file (TrainData.txt)

[CALL STACK]                                                                                                                > Microsoft::MSR::CNTK::IDataReader::  SupportsDistributedMBRead
    - Microsoft::MSR::CNTK::IDataReader::  SupportsDistributedMBRead                                                        - Microsoft::MSR::CNTK::IDataReader::  SupportsDistributedMBRead
    - Microsoft::MSR::CNTK::IDataReader::  SupportsDistributedMBRead                                                        - Microsoft::MSR::CNTK::IDataReader::  SupportsDistributedMBRead
    - CreateDeserializer                                                                                                    - CreateDeserializer
    - CreateDeserializer                                                                                                    - CreateDeserializer
    - CreateDeserializer                                                                                                    - CreateDeserializer
    - CreateDeserializer                                                                                                    - CreateDeserializer
    - CreateDeserializer                                                                                                    - CreateDeserializer
    - CreateDeserializer
EXCEPTION occurred: Reached the maximum number of allowed errors while reading the input file (TrainData.txt).

TestData.txt

|features 1.0 1.0 |labels 1 0 0
|features 3.0 9.0 |labels 1 0 0
|features 8.0 8.0 |labels 1 0 0
|features 3.0 4.0 |labels 0 1 0
|features 5.0 6.0 |labels 0 1 0
|features 3.0 6.0 |labels 0 1 0
|features 8.0 3.0 |labels 0 0 1
|features 8.0 1.0 |labels 0 0 1
|features 9.0 2.0 |labels 0 0 1

TrainData.txt

|features 1.0 5.0 |labels 1 0 0
|features 1.0 2.0 |labels 1 0 0
|features 3.0 8.0 |labels 1 0 0
|features 4.0 1.0 |labels 1 0 0
|features 5.0 8.0 |labels 1 0 0
|features 6.0 3.0 |labels 1 0 0
|features 7.0 5.0 |labels 1 0 0
|features 7.0 6.0 |labels 1 0 0
|features 1.0 4.0 |labels 1 0 0
|features 2.0 7.0 |labels 1 0 0
|features 2.0 1.0 |labels 1 0 0
|features 3.0 1.0 |labels 1 0 0
|features 5.0 2.0 |labels 1 0 0
|features 6.0 7.0 |labels 1 0 0
|features 7.0 4.0 |labels 1 0 0
|features 3.0 5.0 |labels 0 1 0
|features 4.0 4.0 |labels 0 1 0
|features 5.0 5.0 |labels 0 1 0
|features 4.0 6.0 |labels 0 1 0
|features 4.0 5.0 |labels 0 1 0
|features 6.0 1.0 |labels 0 0 1
|features 7.0 1.0 |labels 0 0 1
|features 8.0 2.0 |labels 0 0 1
|features 7.0 2.0 |labels 0 0 1

1 个答案:

答案 0 :(得分:1)

离线的人得到了答案。

每个格式良好的行必须以“换行符”\ n或“回车符,换行符”\ r \ n符号(包括文件的最后一行)结束。

CNTK TextFormat-Reader