tg-me.com/bits_learn/96
Create:
Last Update:
Last Update:
🤖 چیت شیت Scikit-Learn
7. Scikit-Learn
کتابخانهای برای استفاده از روشهای یادگیری ماشین در پایتون است.
نکات مهم:
- تقسیم دادهها:
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
- ایجاد و آموزش مدل رگرسیون خطی:
model = LinearRegression()
model.fit(X_train, y_train)
- محاسبه خطا:
mse = mean_squared_error(y_test, y_pred)
print(f"Mean Squared Error: {mse}")
🔗 دسترسی به چیت شیت: Scikit-Learn Cheat Sheet
🔸 Bits Learn | CSSA IUST | LinkedIn
BY Bits Learn
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/bits_learn/96