File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,9 @@ print('')
26
26
-- age: a positive integer
27
27
28
28
-- 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 )
30
30
31
- require ' csv '
31
+ require ' csvigo '
32
32
33
33
-- The data are in a comma separated values (CSV) file. The first record
34
34
-- contains field names and subsequent records contain data. The fields and
@@ -38,8 +38,8 @@ require 'csv'
38
38
-- - female: indicator for is-female: 1 if female, 0 otherwise; no quote chars
39
39
-- - age: age of the person; no quote characters
40
40
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' )
43
43
44
44
-- Convert the CSV table into dense tensors. The tensor form has the
45
45
-- advantage that it stores its elements continguously (which leads to
You can’t perform that action at this time.
0 commit comments