Skip to content

Commit 6f476f6

Browse files
committed
changed to the more recent csvigo package, per http://scottlocklin.wordpress.com/torch7-notes/.
1 parent 86e4526 commit 6f476f6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

logistic-regression/example-logistic-regression.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ print('')
2626
-- age: a positive integer
2727

2828
-- The data are stored in a csv file 'example-logistic-regression.csv'
29-
-- and read with the csv package (torch-pkg install csv)
29+
-- and read with the csvigo package (torch-pkg install csvigo)
3030

31-
require 'csv'
31+
require 'csvigo'
3232

3333
-- The data are in a comma separated values (CSV) file. The first record
3434
-- contains field names and subsequent records contain data. The fields and
@@ -38,8 +38,8 @@ require 'csv'
3838
-- - female: indicator for is-female: 1 if female, 0 otherwise; no quote chars
3939
-- - age: age of the person; no quote characters
4040

41-
-- Reading CSV files can be tricky. This code uses the csv package for this:
42-
loaded = csv.load('example-logistic-regression.csv')
41+
-- Reading CSV files can be tricky. This code uses the csvigo package for this:
42+
loaded = csvigo.load('example-logistic-regression.csv')
4343

4444
-- Convert the CSV table into dense tensors. The tensor form has the
4545
-- advantage that it stores its elements continguously (which leads to

0 commit comments

Comments
 (0)