原书出处
Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)
endpoint_url = "https://my-model-api.example.com" def test_root(self): response = requests.get(self.endpoint_url) assert response.status_code == 200 def test_predict_should_return_a_prediction_when_given_a_valid_payload(self): valid_request_payload = { "Changed_Credit_Limit": 0, "Annual_Income": 0, "Monthly_Inhand_Salary": 0, "Age": 0, } response = requests.post(f"{self.endpoint_url}/predict/", headers={"Content-Type": "application/json"}, json=valid_request_payload ) assert response.status_code == 200
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Effective Machine Learning Teams (David Tan, Ada Leung, David Colls)/_epub-src/OEBPS/ch05.html
EPUB SHA-256:d98501f374a474910f195f0adfd53c1d895ae8ddc5822476c05cd7ba006ac63d