Open agoodge opened 5 years ago
change dlim to '\t' in the error part
if you use delimiters with tab, set --delim="tab".
python3 scripts/train.py --delim="tab"
doesn't work --delim='\t' (default)
if you use delimiters with tab, set --delim="tab".
python3 scripts/train.py --delim="tab"
when i use ‘--delim="tab"’ ,it presents the following problem:
Traceback (most recent call last):
File "scripts/train.py", line 582, in
if self.noise_dim[0] == 0: TypeError: 'NoneType' object is not subscriptable
this is another problem.
i add the following option.
--noise_dim=0
NoneType(defalut value) is not tupple. doesnt work.. defalut value is not correct. unbelievable.
[total command]
$ python scripts/train.py --delim="tab" --noise_dim=0
I think is this!
line = re.split('\s+',line.strip())
"ValueError: could not convert string to float: '0.0\t1.0\t11.238836854\t3.746958' "
As you can see, the delimiters are set to \t and so the data becomes a string which cannot be converted to float. Could you recommend how this should be working instead?