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

Implement classification of results for the heatmap #1807

Closed
metemaddar opened this issue Jan 2, 2023 · 4 comments
Closed

Implement classification of results for the heatmap #1807

metemaddar opened this issue Jan 2, 2023 · 4 comments
Assignees

Comments

@metemaddar
Copy link
Contributor

metemaddar commented Jan 2, 2023

Goal of this issue

We classify the results into 5 classes + 1 one class for 0 values.
This means we apply the classes:

0,1,2,3,4,5 to the heatmap results.

These classes can be created using different classifications. Currently, the idea is to implement equal interval and quintiles.

Resources

Deliverables

Branch to derive

@metemaddar metemaddar self-assigned this Jan 2, 2023
@metemaddar metemaddar added this to the v1.5 milestone Jan 2, 2023
@metemaddar metemaddar added the API label Jan 2, 2023
@metemaddar
Copy link
Contributor Author

metemaddar commented Jan 3, 2023

Summarizing the discussion

We have 5 particles + zeros. So first we need to exclude the zeros from values. Then, calculate the quintiles. And after extracting the data by quntiles, we can add zeros as the zero class. Something like this:

array(where x > 0).quntile([0.2, 0.4, 0.6, 0.8]) ----> 4 quantiles (1|2|3|4|5) + 0s

@metemaddar
Copy link
Contributor Author

metemaddar commented Jan 3, 2023

This also can help us (Partitioning array)
Here also we need to extract the zeros first, And then do the partitioning.

@EPajares EPajares modified the milestones: v1.5, v1.6 Jan 3, 2023
@metemaddar
Copy link
Contributor Author

metemaddar commented Jan 3, 2023

Implemented with the following results:

quantile for 10000 elements is: 7 ms
count 0: 845
count 1: 1831
count 2: 1831
count 3: 1831
count 4: 1831
count 5: 1831

Example of output:
[4 3 2 3 5 5 2 2 5 3 4 1 2 3 1 4 1 1 5 4]

@p4b-bro
Copy link

p4b-bro bot commented Jun 6, 2023

This task/issue closed on Tue Jun 06 2023 ✅

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

No branches or pull requests

2 participants