TGViewer
Channel Public Channel
Python Tasks & ML | Задачи по питону и машинному обучению

Python Tasks & ML | Задачи по питону и машинному обучению

@python_tasks

Algorithms, functions, classes, regular expressions, iterators, generators, OOP, exceptions, NumPy, pandas, scikit-learn
https://telega.in/c/python_tasks

Questions — @dina_ladnyuk
Subscribers
8.51K
Photos
30
Videos
1
Links
41

Showing posts older than #2542 · Back to latest

Older Posts 20 shown
Post #2541 1.05K
Что выведет код?
import numpy as np
a = np.array([1, 2])
b = np.array([3, 4])
c = np.dstack((a, b))
print(c.shape)
Post #2539 989
Что выведет код?
import numpy as np
a = np.array([1, 2])
b = np.array([3, 4])
c = np.vstack((a, b))
print(c.shape)
Post #2537 934
Что выведет код?
import numpy as np
a = np.array([1, 2])
b = np.array([3, 4])
c = np.hstack((a, b))
print(c.shape)
Post #2535 936
Что выведет код?
import numpy as np
a = np.arange(4)
b = a.transpose()
x = a.shape == b.shape
print(x)
Post #2533 915
Что выведет код?
import numpy as np
a = np.linspace(1, 4, 4)
b = a.reshape(2, 2)
b[0, 0] = 0
print(a[0] + b[0, 0] + b[1, 1])
  • 👍 1
Post #2531 1.01K
Дан код
import numpy as np
a = np.linspace(1, 4, 4)
# ваш код
print(a)
  • 🔥 2
Post #2529 931
Что выведет код?
import numpy as np
x = np.array([[1, 2], [3, 4]])
a = x.flatten()
b = x.ravel()
a[0] = 0
b[1] = 0
print(x.sum())
Post #2527 885
Что выведет код?
import numpy as np
x = np.array([[1], [2]])
a = x.ravel()
a[0] = 0
print(x.sum())
Post #2525 888
Что выведет код?
import numpy as np
a = np.array([[1, 2], [3, 4], [5, 6]])
b = a.flatten()
print(len(a), len(b))
Post #2523 956
Что выведет код?
import numpy as np
a = np.arange(4)
b = a / 0
print(b)
Older posts →
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →