lec8
Этот коммит содержится в:
@@ -11,6 +11,7 @@
|
||||
| 03.10.2024 | [MLFlow - практика](./assets/mlflow/research.ipynb) |
|
||||
| 10.10.2024 | [Feature engineering](./lectures/lec6-feature_engineering.odp) - [в формате pptx](./lectures/lec6-feature_engineering.pptx) - код в [ноутбуке к mlflow](./assets/mlflow/research.ipynb) |
|
||||
| 17.10.2024 | [Feature extraction. Настройка гиперпараметров](./lectures/lec7-feature_selection_hyperparams.odp) - [в формате pptx](./lectures/lec7-feature_selection_hyperparams.pptx) - код в [ноутбуке к mlflow](./assets/mlflow/research.ipynb) |
|
||||
| 24.10.2024 | [Архитекура сервиса. API](./lectures/lec8-api.odp) - [в формате pptx](./lectures/lec8-api.pptx) |
|
||||
|
||||
|
||||
## <span style="color:red">Перенос занятий</span>
|
||||
|
||||
45
assets/api/http_req.py
Обычный файл
45
assets/api/http_req.py
Обычный файл
@@ -0,0 +1,45 @@
|
||||
import requests
|
||||
|
||||
# GET
|
||||
payload = {'key1': 'value1', 'key2': 'value2'}
|
||||
response = requests.get(
|
||||
'https://api.github.com/',
|
||||
params=payload
|
||||
)
|
||||
|
||||
print("Status Code", response.status_code)
|
||||
print("Response content ", response.text)
|
||||
|
||||
# POST
|
||||
payload = {
|
||||
"id": 1001,
|
||||
"name": "geek",
|
||||
"passion": "coding",
|
||||
}
|
||||
|
||||
response = requests.post(
|
||||
'https://httpbin.org/post',
|
||||
json=payload)
|
||||
|
||||
print("Status Code", response.status_code)
|
||||
print("JSON Response ", response.json())
|
||||
|
||||
|
||||
# DELETE not allowed
|
||||
|
||||
|
||||
# POST
|
||||
payload = {
|
||||
"id": 1001,
|
||||
"name": "geek",
|
||||
"passion": "coding",
|
||||
}
|
||||
|
||||
response = requests.delete(
|
||||
'https://httpbin.org/post',
|
||||
json=payload)
|
||||
|
||||
print("Status Code", response.status_code)
|
||||
print("JSON Response ", response.json())
|
||||
|
||||
|
||||
Двоичные данные
lectures/lec8-api.odp
Обычный файл
Двоичные данные
lectures/lec8-api.odp
Обычный файл
Двоичный файл не отображается.
Двоичные данные
lectures/lec8-api.pptx
Обычный файл
Двоичные данные
lectures/lec8-api.pptx
Обычный файл
Двоичный файл не отображается.
Ссылка в новой задаче
Block a user