-
Notifications
You must be signed in to change notification settings - Fork 9
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/metrics #21
feature/metrics #21
Conversation
|
||
xx, yy = np.meshgrid(space, space) | ||
distance_space = np.abs(xx - yy) | ||
|
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.
Not sure if we need to normalize the distance space
g_counts = df[pred].groupby(target_attr)[target_attr].aggregate(Count="count")["Count"].to_dict() | ||
|
||
plt.plot(g_counts.keys(), g_counts.values()) | ||
|
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.
At the moment the curves plot the raw data. It may make more sense to bin before drawing the curves.
|
||
from . import utils | ||
|
||
|
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.
Might be worth adding a 'normalize' keyword which plots the pdf instead of the target attr distribution, or maybe its worth having a different method to plot pdfs.
@@ -0,0 +1,112 @@ | |||
from typing import Any, Dict, List |
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.
It might have been good to separate this work into another PR, that way we keep the goals of each PR isolated to a single issue.
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.
LGTM! Thanks for making the changes!
#9 #17 #18 #25