Hw18#4
Open
grishchenkoira wants to merge 55 commits into
Open
Conversation
IvanKozlov98
reviewed
May 5, 2024
IvanKozlov98
left a comment
There was a problem hiding this comment.
Параллельный лес: 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.
-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.
непосредственный фитинг деревьев вы сделали параллельным (псевдо, конечно)
но забыли про подготовку данных и создание объекта дерева -- было бы здорово также делать это параллельно. :)
| ''' | ||
| probas = np.zeros((X.shape[0], len(self.classes_))) | ||
| with ThreadPoolExecutor(n_jobs) as pool: | ||
| predict_proba_tasks = [pool.submit(tree.predict_proba, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.