aboutsummaryrefslogtreecommitdiff
path: root/examples/py-machine-learning/sklearn-random-forest.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/py-machine-learning/sklearn-random-forest.py')
-rwxr-xr-xexamples/py-machine-learning/sklearn-random-forest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/py-machine-learning/sklearn-random-forest.py b/examples/py-machine-learning/sklearn-random-forest.py
index 090206b4e..9103bb427 100755
--- a/examples/py-machine-learning/sklearn-random-forest.py
+++ b/examples/py-machine-learning/sklearn-random-forest.py
@@ -280,7 +280,7 @@ if __name__ == '__main__':
X += getRelevantFeaturesCSV(line)
y += [isProtoClass(args.proto_class, line['proto'])]
except RuntimeError as err:
- print('Error: `{}\'\non line: {}'.format(err, line))
+ print('Error: `{}\'\non line {}: {}'.format(err, reader.line_num - 1, line))
sys.stderr.write('CSV data set contains {} entries.\n'.format(len(X)))