-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature pre process #26
base: dev
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #26 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 8 8
Lines 1223 1228 +5
=========================================
+ Hits 1223 1228 +5 ☔ View full report in Codecov by Sentry. |
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.
@YunliQi I am just trying to close up open PRs on these code bases. Have a look at the change I have suggested, but then I am happy for you to merge this code onto main.
for t in range(max(time_sample) + 1): | ||
num = self.time_data.iloc[t, 1:].value_counts().get(3, 0) | ||
num += self.time_data.iloc[t, 1:].value_counts().get(4, 0) | ||
num += self.time_data.iloc[t, 1:].value_counts().get(5, 0) | ||
num += self.time_data.iloc[t, 1:].value_counts().get(6, 0) | ||
num += self.time_data.iloc[t, 1:].value_counts().get(7, 0) | ||
num += self.time_data.iloc[t, 1:].value_counts().get(8, 0) |
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.
for t in range(max(time_sample) + 1): | |
num = self.time_data.iloc[t, 1:].value_counts().get(3, 0) | |
num += self.time_data.iloc[t, 1:].value_counts().get(4, 0) | |
num += self.time_data.iloc[t, 1:].value_counts().get(5, 0) | |
num += self.time_data.iloc[t, 1:].value_counts().get(6, 0) | |
num += self.time_data.iloc[t, 1:].value_counts().get(7, 0) | |
num += self.time_data.iloc[t, 1:].value_counts().get(8, 0) | |
true_result_plot = [ | |
sum(self.time_data.iloc[t, 1:].value_counts().get(i, 0) for i in range(3, 9)) | |
for t in range(max(time_sample) + 1) | |
] |
No description provided.