Skip to content

Commit

Permalink
Fix #3638: Binary classification demo should produce LIBSVM with 0-ba…
Browse files Browse the repository at this point in the history
…sed indexing (#3652)
  • Loading branch information
hcho3 authored Aug 30, 2018
1 parent 7b1427f commit 10c31ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/binary_classification/mapfeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def loadfmap( fname ):
if it.strip() == '':
continue
k , v = it.split('=')
fmap[ idx ][ v ] = len(nmap) + 1
fmap[ idx ][ v ] = len(nmap)
nmap[ len(nmap) ] = ftype+'='+k
return fmap, nmap

Expand Down

0 comments on commit 10c31ab

Please sign in to comment.