I've cloned a copy of "machine_learning_examples" from GitHub (https://github.com/lazyprogrammer/machine_learning_examples). In it, it has a file "data_2d.csv" under the "linear_regression_class" folder.
I've added reference in my project to the "machine_learning_examples" project, and have tried a "from" and "import" statement with different target text, but can't determine the syntax to reference the "data_2d.csv" file.
I've been able to copy the csv file locally to a folder in my project and then just take the example code and modify the target:
import numpy as np
X = []
for line in open('data/data_2d.csv'):
row = line.split(',')
sample = list(map(float, row))
X.append(sample)
X = np.array(X)
print(X)
This works ok, as expected. But, I would like to directly reference the csv as it exists in the cloned project.