Project is created by Adziareika Aliaksandr
There are two main endpoints to get the data:
- Predict
- Get the example input
All the requests are provided with postman as well.
All the models are saved in the models directory.
I decided to base Heuristics on Elevation. The range of values is divided into 7 about equal parts and depending on it the class is taken.
Machine Learning Models. I decided to use Logistic Regression and SGD Classifier. The first is pretty simple and basic, which became a reason. And SGD is chosen because the data set is quite huge and we solving the issues of classification.
Neural Networks. RandomSearch was used to adjust hyperparameters. And a few of Dense, Dropout layers have been added.
Evaluation. Some Confusion matricies were logged out, accuracy metric. History charts for NN are also shown.
REST API it touchable and playable :)
POST
/predict
Body:
{
"model_name": "heuristics | nn | logistic | sgd",
"input": [[...]]
}
GET
/input/example
Response:
{
"input": [[2596, 51, 3, 258, 0, 510, 221, 232, 148, 6279, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0]]
}