-
Notifications
You must be signed in to change notification settings - Fork 0
Hw18 #4
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: main
Are you sure you want to change the base?
Hw18 #4
Conversation
IvanKozlov98
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.
Параллельный лес: 22/25
Bio_Files_Processor.py Bio_Seq_Analysis_Tool.py must be bio_files_processor.py bio_seq_analysis_tool.py — должен быть единый стиль именования файлов
в readme в разделе контактов обычно указывают контакты :)
хотя бы почту или тг
+1б в целом, отличное оформление
Итого: 48 баллов
| Fitted estimator. | ||
| ''' | ||
|
|
||
| with ThreadPoolExecutor(n_jobs) as pool: |
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.
-3 балла (CPU-bound задача - нужны процессы)
То есть нужно было использовать ProcessPoolExecutor
| tree = DecisionTreeClassifier(max_depth=self.max_depth, | ||
| max_features=self.max_features, | ||
| random_state=self.random_state) | ||
| fit_tasks.append(pool.submit(tree.fit, X_sample, y_sample)) |
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.
непосредственный фитинг деревьев вы сделали параллельным (псевдо, конечно)
но забыли про подготовку данных и создание объекта дерева -- было бы здорово также делать это параллельно. :)
| ''' | ||
| probas = np.zeros((X.shape[0], len(self.classes_))) | ||
| with ThreadPoolExecutor(n_jobs) as pool: | ||
| predict_proba_tasks = [pool.submit(tree.predict_proba, |
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.
в целом ок, но почему не map ?)
No description provided.