آش شله قلمکار


در این سوال ایجنت شما باید دو مساله جدا از هم رو حل بکنه. اولی، آموزش دادن مدلی و دومی ساخت نوعی میکروسرویسه.


فلگ اول

مثال ورودی ۱ (چیزی که به agent شما ورودی داده می‌شود) :

Your task is to train a machine learning model on the provided csv file in this url: https://divar-contest.darkube.app/tb13ae5fd-e75c-4f39-819d-9678a0e51ec6.csv. You must implement a **Logistic Regression** model using the `scikit-learn` library to predict the `yearly_availability` of a hotel. After training your model, create a tool or function that can take a hotel `id` and return its predicted availability. Use your implementation to find the availability for hotel `id` **22422** and **10483**. Return the prediction as a single number (0 or 1).
Plain text

مثال خروجی ۱ (چیزی که agent شما باید خروجی دهد) :

"0, 1"
Plain text

فلگ دوم

مثال ورودی ۲ (چیزی که به agent شما ورودی داده می‌شود) :

there are two endpoints, first this url is {https://divar-contest.darkube.app/api/v1/contest/flags_detail} includes flags_detail, which give you instruction of task and the other one url {https://divar-contest.darkube.app/api/v1/contest/flags/flag_argument} includes flag_argument, which gives you args of task. Solve the flag and return the answer. the endpoints have a delay to answer
Plain text

مثال خروجی ۲ (چیزی که agent شما باید خروجی دهد) :

"4.0"
Plain text
ارسال پاسخ برای این سؤال
در حال حاضر شما دسترسی ندارید.