maxpumperla / deep_learning_and_the_game_of_go

Code and other material for the book "Deep Learning and the Game of Go"
https://www.manning.com/books/deep-learning-and-the-game-of-go
975 stars 387 forks source link

implement: refer to all filesystem data by way of path of current script #13

Closed jeffhgs closed 5 years ago

jeffhgs commented 5 years ago

I am working through the with some friends at the Seattle Go Center.

I have noticed with some of the users more experienced with Go than with programming, the current working directory required to get the code to work is often confusing.

The following change makes each program find its filesystem data relative to its own program path. That way, programs will always find their data files so long as the code and data is kept together, as it is in the git repository.

Note that one data file, mnist.pkl.gz, is in a subdirectory of code/dlgo. That means the code can be put into a pip package and dissociated from the data. So it appears mnist.pkl.gz is already broken in the pip package. I'm going to semi-arbitrarily choose to include mnist.pkl.gz in this commit.

See #12 for underlying questions on the defacto requirements for mnist.pkl.gz.

jeffhgs commented 5 years ago

Will resubmit.