ralampay / ann

Artificial Neural Networks implemented in C++
52 stars 21 forks source link

cannot train #24

Open leannejdong opened 4 years ago

leannejdong commented 4 years ago

Hi, I follow your instruction building with CMake. However, I cannot train. I ended up with /home/leanne/Dev/projects/ann/cmake-build-debug/train Syntax: train [configFile]

Process finished with exit code 255 I use CLion. I tried again over teminal, the result is same and I got Syntax: train [configFile] as the final output.

What did I miss? Everything built fine.

ralampay commented 4 years ago

You need to pass an argument to the executable. Not sure how to do it using CLion but configFile has to be a json file corresponding to the configuration of the network.

leannejdong commented 4 years ago

In my earlier note I already tried both way.

  1. Follow your cmake instruction straight from terminal
  2. Import the cloned project to CLion and let it build. The outcome is same, I did pass the executable to a json file, see my step below. leanne@leanne-HP-ProBook-450-G5:~/Dev/projects/ann$ ls build cmake_install.cmake CMakeLists.txt config include Makefile README.md src train leanne@leanne-HP-ProBook-450-G5:~/Dev/projects/ann$ ./train > config/test1.json leanne@leanne-HP-ProBook-450-G5:~/Dev/projects/ann$ cd config leanne@leanne-HP-ProBook-450-G5:~/Dev/projects/ann/config$ ls autoencoder.json.dist test1.json train.json.dist

The content of test1.json is Syntax: train [configFile]