Skip to content

Б12-514 Стерхов Богдан#117

Open
Bogdan-Yeti wants to merge 16 commits into
EvgrafovMichail:mainfrom
Bogdan-Yeti:main
Open

Б12-514 Стерхов Богдан#117
Bogdan-Yeti wants to merge 16 commits into
EvgrafovMichail:mainfrom
Bogdan-Yeti:main

Conversation

@Bogdan-Yeti
Copy link
Copy Markdown

No description provided.

@Avshugan Avshugan added the 514 label Mar 9, 2026
raise ShapeMismatchError
if np.linalg.matrix_rank(matrix) != m:
return None, None
proj = ((matrix @ vector) / (np.linalg.norm(matrix, axis=-1) ** 2))[:, np.newaxis] * matrix
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Лучше конечно такие длинные строки не делать, давает читаемость, лучше было бы разбить хотя бы на 2 строки (например, вынести вычисление np.linalg.norm(matrix, axis=-1) ** 2)

) -> None:
# ваш код
pass
if abscissa.shape != ordinates.shape:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Слишком большая функция получилась, тяжело читать код. Так еще и много повторяющегося кода

return m_t * np.sin(2 * np.pi * fc * t)


def update_frame(
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Нет названия графика

"id": "d7b00711",
"metadata": {},
"outputs": [],
"outputs": [
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

В части 2 можно было использовать аргумент inplace=True

"id": "d7b00711",
"metadata": {},
"outputs": [],
"outputs": [
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

В части 3, как будто можно было сделать циклом и код был бы проще и не было столько повторений одного и того же кода

"id": "d7b00711",
"metadata": {},
"outputs": [],
"outputs": [
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

5я часть у меня не сработала, у вас в коде делается argmax из названий городов

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.

3 participants