TianChi-Shop-Location-Competition icon indicating copy to clipboard operation
TianChi-Shop-Location-Competition copied to clipboard

I found that your code was wrong in 100 and 101 lines in the gen_samples.py file

Open ghost opened this issue 7 years ago • 3 comments

100:train_samples.to_pickle(open('../data/train_samples_top10.pkl', 'wb')) 101:test_samples.to_pickle(open('../data/test_samples_top10.pkl', 'wb'))

由于20和21行中, train_samples = [] test_samples = [] 。所以。。。。

ghost avatar Jan 01 '18 11:01 ghost

@YSZYCF 这两个list在下面代码都有append操作的,你注意看下

totoruo avatar Jan 02 '18 02:01 totoruo

@totoruo 老铁,其实我想说的是train_samples = [],test_samples = [](列表类型)是不可序列化的(to_pickle操作)。有可能和python的版本有关系。我python的版本:Python 3.6.0

ghost avatar Jan 03 '18 01:01 ghost

@YSZYCF 是我疏忽了,漏了两行代码,现已加上,感谢指正。

totoruo avatar Jan 03 '18 02:01 totoruo