rjurney / Agile_Data_Code_2

Code for Agile Data Science 2.0, O'Reilly 2017, Second Edition
http://bit.ly/agile_data_science
MIT License
456 stars 307 forks source link

Chapter 8 test_classification_api.sh is wrong #43

Closed kelvinksau closed 7 years ago

kelvinksau commented 7 years ago

It should write as follow

curl -XPOST 'http://localhost:5000/flights/delays/predict/classify' \ -F 'DepDelay=5.0' \ -F 'Carrier=AA' \ -F 'FlightDate=2016-12-23' \ -F 'Dest=ATL' \ -F 'FlightNum=1519' \ -F 'Origin=SFO' \ | json_pp

FlightDate instead of Date

rjurney commented 7 years ago

Fixed in https://github.com/rjurney/Agile_Data_Code_2/commit/5215bc16d8424a87cb96492257f5552e2cc6f05d

@kelvinksau Thanks!