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

CppMNIST #1

Open
euxsun opened this issue Feb 9, 2019 · 3 comments
Open

CppMNIST #1

euxsun opened this issue Feb 9, 2019 · 3 comments

Comments

@euxsun
Copy link

euxsun commented Feb 9, 2019

Hello!
Trying to run the code I've reached CppMNIST absence problem. How it should be organized? Where I can take the folder sources?

Sincerely,
Evgeniy Pavlovskiy, leading researcher @ SDAML NSU lab.

@emstoudenmire
Copy link
Owner

Hi Evgeniy,
Sorry for the very slow reply. Which code were you trying to compile? I just compiled all of the codes and did not get any compilation errors. Did you clone/pull the latest version of this repo?

Also, if I may add, these codes were intended as research codes i.e. to do proof-of-principle calculations and do not represent the most efficient way of optimizing tensor networks for machine learning. A much much efficient way is to use stochastic gradient descent with mini batches. So if you are really interested in running experiments, may I suggest the following very new library that builds on top of PyTorch: https://github.com/jemisjoky/TorchMPS

Best regards,
Miles

@euxsun
Copy link
Author

euxsun commented Apr 2, 2019

Sure, it complies good. But there is a line in the code:
auto datadir = input.getString("datadir","/Users/mstoudenmire/software/tnml/CppMNIST");
Where I can take CppMNIST structure? How it differs from usual MNIST? Or may be it is in mllib directory?

@emstoudenmire
Copy link
Owner

Hi, so the value of "datadir" should be the folder where the MNIST data files are located. That happened to be where I had it on my computer (so you can ignore the fact that the folder was called CppMNIST). I'll update the codes to put a more generic default for datadir - thanks for pointing this out.

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

No branches or pull requests

2 participants