File tree Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Expand file tree Collapse file tree 2 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ # https://deeplearningcourses.com/c/deep-learning-prerequisites-the-numpy-stack-in-python
2
+ # https://www.udemy.com/deep-learning-prerequisites-the-numpy-stack-in-python
3
+
4
+ # NOTE: in class, we assumed the current working directory
5
+ # was linear_regression_class
6
+ # in this file, we assume you are running the script
7
+ # from the directory this file is in
8
+
9
+ import numpy as np
10
+
11
+ X = []
12
+
13
+ for line in open ('../linear_regression_class/data_2d.csv' ):
14
+ row = line .split (',' )
15
+ sample = map (float , row )
16
+ X .append (sample )
17
+
18
+ X = np .array (X )
19
+ print X
Original file line number Diff line number Diff line change
1
+ # https://deeplearningcourses.com/c/deep-learning-prerequisites-the-numpy-stack-in-python
2
+ # https://www.udemy.com/deep-learning-prerequisites-the-numpy-stack-in-python
3
+
4
+ # NOTE: in class, we assumed the current working directory
5
+ # was linear_regression_class
6
+ # in this file, we assume you are running the script
7
+ # from the directory this file is in
8
+
9
+ import numpy as np
10
+
11
+ X = []
12
+
13
+ for line in open ('../../linear_regression_class/data_2d.csv' ):
14
+ row = line .split (',' )
15
+ sample = list (map (float , row ))
16
+ X .append (sample )
17
+
18
+ X = np .array (X )
19
+ print (X )
You can’t perform that action at this time.
0 commit comments