Python Tasks & ML | Задачи по питону и машинному обучению
9.2K subscribers
29 photos
1 file
39 links
Algorithms, functions, classes, regular expressions, iterators, generators, OOP, exceptions, NumPy, pandas, scikit-learn
https://telega.in/c/python_tasks

Questions — @dina_ladnyuk
Download Telegram
Что выведет код?

import matplotlib.pyplot as plt

plt.plot([1, 2, 3], [4, 5, 6])
plt.title("График")
plt.xlabel("X")
plt.ylabel("Y")
plt.show()
Что выведет код?

from sklearn.model_selection import train_test_split

X = [1, 2, 3, 4, 5]
y = [10, 20, 30, 40, 50]

X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.4, random_state=1)

print(len(X_test))