- Download DjangoAPI.zip, unpack;
- Go to the
\DjangoAPI
directory; - Start the server using the command
python Manage.py runserver
; - Now instructions for the specified result of the json file to be sent to the server.
- Use the HTTP request
POST http://127.0.0.1:8000/match_products
; - Receive a json response with predictions in the body;
- Use the HTTP request
- Download TwoModels.py, arcNet.py, Ensemble.py, in the same directory
agora_hack_products.json
- ExtraTreesClassifier[Classic ML solution] and Tokenizator[Data usage and mapping]:
- Run the command
python TwoModels.py train
- as a result, models and additional files will be saved; - Running the command
python TwoModels.py token
will show the result of Tokenizator's work on all data; - Running the command
python TwoModels.py test
will show the result of ExtraTreeClassifier running on all data;
- Run the command
- ArcNet [Neural network solution]:
- Running the command
python arcNet.py
will output the expected parameters as input to the py file; - Running the command
python arcNet.py train [true/false] [true/false] [true/false] [true/false] [true/false]
will train the models and save them to files upon request, also saving additional files; - Running the command
python arcNet.py test [true/false]
will check the operation of the model on test data, and also save the head of the model (KNN-1) if necessary. - Running the command
python arcNet.py check
will show the accuracy and running time on all data;
- Running the command