Solution for the mushroom-challenge
Get the code running.
You need the following software
npm install angular -g
- Clone the repo
git clone https://github.com/JanKru/mushroomClassifier.git
- Navigate to mushroomClassifier/backend
cd ./mushroomClassifier/backend
- Create a .env-file (like the example below)
NODE_ENV=development
SERVER_PORT=4041
MONGO_HOST=mongodb://localhost/mushroomClassifier
JWT_SECRET=SECRET#1234
JWT_EXP=20m
HIDDEN_LAYERS=[200]
ITERATIONS=20000
ERRORTHRESH=0.005
LEARNING_RATE=0.3
TIMEOUT=120000
THRESHOLDTOBEPOISONOUS=85
- Install NPM packages
npm install
- If you want to run backend: unit test
npm test
- Navigate to the frontend diretory
cd ../mushroomClassifier/frontend
- Install NPM packages
npm install
- Start the frontend
ng serve --open
- Start the backend (backend dir)
node index.js
- Open Webpage and register a new user
Start the server (node index.js) and frontend (ng serve --open) Be sure mongoDB is running
When your work on Mac your linter may marks the linebreaks. Go to .eslintrc and change linebreak style to unix
"linebreak-style": ["error", "unix"]
- solve the responsive problem in modal
- Capsules the individual modules correctly
- Write more tests, especially for the neural network. Possibly train with a smaller amount of data first and then test it