diff --git a/demo/binary_classification/mapfeat.py b/demo/binary_classification/mapfeat.py index 519891bddc30..4cb98f652cba 100755 --- a/demo/binary_classification/mapfeat.py +++ b/demo/binary_classification/mapfeat.py @@ -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