From project root run
python optimizer.py --cfg path/to_config_file
POST /optimizer/init
Initialize optimizer with the neccessary constants.
curl -X POST http://127.0.0.1:5000/optimizer/init --data-binary @test_files/optimizer_constants.yaml
GET /optimizer/training_data
Download zipped training data that contains both neural network and linear regression data.
curl -X GET http://127.0.0.1:5000/optimizer/training_data
POST /optimizer/sample
Send a new training sample.
curl -X POST http://127.0.0.1:5000/optimizer/sample --data-binary @test_files/metrics_sample_example.yaml
GET /optimizer/advice
Get scaling advice.
curl -X GET http://127.0.0.1:5000/optimizer/advice