-
Notifications
You must be signed in to change notification settings - Fork 7
Grishin Alexey: 1.1-1.7 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
pivovarov-mai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Написал пару комментариев. Работа зачтена, можете ее пушить в репозиторий.
stud/grishin/lab-1/main.ipynb
Outdated
| "\n", | ||
| "with open(\"datasets/lab1-04.csv\", newline='', encoding='utf-8') as f:\n", | ||
| " reader = csv.reader(f)\n", | ||
| " for row in reader:\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Такие данные можно загружать не построчно, а сразу скопом. С помощью pandas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, но в условии задачи не было явно указано использовать pandas :) Учитывая условия 2-й лабораторной работы подумал, что тут его использовать нельзя.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поправил. Теперь для загрузки датасета используется pandas
| "plt.xlabel(\"$x$\")\n", | ||
| "plt.ylabel(\"$y = f(x)$\")\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Впринципе между блоками ноутбука сохраняются настройки, поэтому можно повторно не задавать значения осей.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Отдельное задание настроек делал намеренно с целью, чтобы блоки кода были идемпотентны (в идеале результат каждой ячейки должен быть одинаковым вне зависимости от порядка запуска). Поэтому попытался глобальное состояние свести к минимуму. Ну и по этой причине предлагаю так оставить.
Выполнена лабораторная работа №1: