2

我正在尝试这个CNTK 的示例,但是在训练数据时失败了......它似乎用尽了所有输入,但不知何故被视为错误。我不知道出了什么问题。任何人都可以帮忙吗?

错误

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).

测试数据.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

火车数据.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
4

1 回答 1

1

线下有人回复。

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

CNTK 文本格式阅读器

于 2017-01-20T14:51:15.833 回答