Skip to content
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

[EPMRPP-90168] train rework #169

Merged
merged 293 commits into from
Aug 16, 2024
Merged

[EPMRPP-90168] train rework #169

merged 293 commits into from
Aug 16, 2024

Conversation

HardNorth
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 71.48977% with 599 lines in your changes missing coverage. Please review.

Project coverage is 79.62%. Comparing base (d5ef499) to head (d42916b).
Report is 4 commits behind head on develop.

Files Patch % Lines
...chine_learning/training/train_defect_type_model.py 21.90% 221 Missing ⚠️
.../machine_learning/training/train_analysis_model.py 30.87% 197 Missing ⚠️
app/utils/utils.py 47.45% 31 Missing ⚠️
...machine_learning/models/boosting_decision_maker.py 56.86% 22 Missing ⚠️
app/machine_learning/models/defect_type_model.py 62.50% 18 Missing ⚠️
app/commons/log_requests.py 89.40% 16 Missing ⚠️
app/commons/esclient.py 77.55% 11 Missing ⚠️
app/utils/text_processing.py 94.68% 11 Missing ⚠️
app/commons/prepared_log.py 91.93% 10 Missing ⚠️
app/commons/namespace_finder.py 52.63% 9 Missing ⚠️
... and 14 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #169      +/-   ##
===========================================
+ Coverage    75.38%   79.62%   +4.23%     
===========================================
  Files           43       46       +3     
  Lines         5006     5236     +230     
===========================================
+ Hits          3774     4169     +395     
+ Misses        1232     1067     -165     
Flag Coverage Δ
unittests 79.62% <71.48%> (+4.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
12 Security Hotspots
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

LOGGER.debug(f'Length of train data: {len(labels)}')
LOGGER.debug(f'Train data label distribution: {Counter(labels)}')
LOGGER.debug(f'Train model name: {name}; estimators number: {self.n_estimators}')
model = RandomForestClassifier(self.n_estimators, class_weight='balanced')

Check notice

Code scanning / SonarCloud

Results that depend on random number generation should be reproducible Low

Provide a seed for the random\_state parameter. See more on SonarCloud
@HardNorth HardNorth merged commit 004424b into develop Aug 16, 2024
8 of 9 checks passed
@HardNorth HardNorth deleted the EPMRPP-90168_train_rework branch August 16, 2024 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants