Skip to content

Б12-513 Kodik Igor#143

Open
yaigorian wants to merge 19 commits into
EvgrafovMichail:mainfrom
yaigorian:main
Open

Б12-513 Kodik Igor#143
yaigorian wants to merge 19 commits into
EvgrafovMichail:mainfrom
yaigorian:main

Conversation

@yaigorian
Copy link
Copy Markdown

No description provided.

@EvgrafovMichail EvgrafovMichail self-requested a review March 10, 2026 19:08
@yaigorian yaigorian changed the title Kodik Igor Б12-513 Б12-513 Kodik Igor Mar 10, 2026
Copy link
Copy Markdown
Owner

@EvgrafovMichail EvgrafovMichail left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предварительно:

  • Задача 1: 5/10 с возможностью повышения до 10/10
  • Задача 2: 10/10
  • Задача 3: 10/10

Но вы меняли версии библиотек в CI. Так что, пока не запущен CI на исходный настройках ничего выше 0 я поставить не могу

if lhs[0].shape != rhs[0].shape:
raise ShapeMismatchError("lhs and rhs must have same shape")

return np.sqrt(np.sum((lhs[:, np.newaxis] - rhs) ** 2, 2))
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Пока поставлю 0 за этот код. Но вы можете подойти ко мне после пары, оспорить его и получить полный балл за эту функцию.

if ordinates.size < 3:
raise ValueError("ordinates is too small")

indexes = np.arange(1, np.size(ordinates) - 1)
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно было обратиться к атрибуту size вместо вызова функции:

Suggested change
indexes = np.arange(1, np.size(ordinates) - 1)
indexes = np.arange(1, ordinates.size - 1)

Comment thread requirements-ci.txt Outdated
@@ -1,5 +1,5 @@
matplotlib==3.8.0
numpy==1.26.1
matplotlib>=3.9.0
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем это было сделано? Не надо трогать конфигурационные файлы

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants