Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS error #20

Open
ghost opened this issue Aug 14, 2020 · 1 comment
Open

OS error #20

ghost opened this issue Aug 14, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 14, 2020

I'm getting this error when I run the code same with regressor_multivar.py

PS E:\Python> & C:/Users/rickz/anaconda3/python.exe "e:/Python/Artificial-Intelligence-with-Python/Chapter 02/code/regressor_singlevar.py"
Traceback (most recent call last):
File "e:/Python/Artificial-Intelligence-with-Python/Chapter 02/code/regressor_singlevar.py", line 12, in
data = np.loadtxt(input_file, delimiter=',')
File "C:\Users\rickz\AppData\Roaming\Python\Python37\site-packages\numpy\lib\npyio.py", line 981, in loadtxt
fh = np.lib._datasource.open(fname, 'rt', encoding=encoding)
File "C:\Users\rickz\AppData\Roaming\Python\Python37\site-packages\numpy\lib_datasource.py", line 269, in open
return ds.open(path, mode, encoding=encoding, newline=newline)
File "C:\Users\rickz\AppData\Roaming\Python\Python37\site-packages\numpy\lib_datasource.py", line 623, in open
raise IOError("%s not found." % path)
OSError: data_singlevar_regr.txt not found.

@bigearsjonny
Copy link

The file "data_singlevar_regr.txt" is located here: https://github.com/PacktPublishing/Artificial-Intelligence-with-Python/tree/master/Chapter%2002/code
you need to download it and drop it into the same directory your python source file is located.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant