-
For best experience, make sure you are on Ubuntu environment.
-
Make sure you have all the following dependencites installed:
- python3
- cmake version >= 2.8.5
- libeigen3-dev
-
Clone this repo.
git clone https://github.com/stanford-stagecast/nnfun.git -
The rest should be straightforward:
cd nnfun/ mkdir build cd build/ cmake .. make -j$16 # make -j$(nproc) make check # should pass the 3 tests
- Head to directory
build. - Run
cmake ... - Run
make. - Run
./src/frontend/<file_to_run>.
src: the directory containing basically all codes for the neural networknn: the directory containing files of a generic neural network (please read the file, class, function descriptions in the files)layer.hh: atomic element in this neural networknetwork.hh: network build using classLayerneuralnetwork.hh: more higher level class directly providing gradient descent functionality
frontend: files using the neural network to predictCMakeLists.txt: containing files to compile (feel free to comment out some files and add more files)predict_inverse_256.txt: the file containing codes to predict 1/x in domain [1,100] (feel free to play with it)
test: testing files used inmake checkcommand (feel free to add more)
docs: the directory containing some documentations and thoughtshow_to_use_neuralnetwork.hh.txt: the txt file containing some useful methods inneuralnetwork.hhdata_structure_ideas.txt.andtempo representation.txt: some previous ideas on note representations
- progress_reports: the directory containing some progress at certain time
06_14_2022.txt: latest progress before summer 2022