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

update repr_llm and add DataFrameSummarizer with customizable summarizing function #323

Merged
merged 5 commits into from
Nov 2, 2023

Conversation

shouples
Copy link
Collaborator

@shouples shouples commented Nov 2, 2023

Adds a new src/dx/formatters/summarizing.py with DataFrameSummarizer and some convenience functions to allow easier testing of dataframe summary functions.

@codecov-commenter
Copy link

Codecov Report

Merging #323 (1ba182c) into main (0bf33e6) will decrease coverage by 0.10%.
The diff coverage is 81.81%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #323      +/-   ##
==========================================
- Coverage   84.00%   83.90%   -0.10%     
==========================================
  Files          84       85       +1     
  Lines        3032     3063      +31     
==========================================
+ Hits         2547     2570      +23     
- Misses        485      493       +8     
Files Coverage Δ
src/dx/formatters/main.py 82.40% <100.00%> (-1.60%) ⬇️
src/dx/formatters/summarizing.py 80.64% <80.64%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0bf33e6...1ba182c. Read the comment docs.

@shouples shouples changed the title LLM updates update repr_llm and add DataFrameSummarizer with customizable summarizing function Nov 2, 2023
@shouples shouples marked this pull request as ready for review November 2, 2023 18:03
_instance: "DataFrameSummarizer" = None
summarizing_func: Optional[Callable] = None

def __init__(self, summarizing_func: Optional[Callable] = None):
Copy link
Collaborator

@rgbkrk rgbkrk Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If they set it here, shouldn't we not load repr llm's version?

The summarizing_func passed in is likely overridden by the call within _load_repr_llm

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - updating

@shouples shouples merged commit 957e805 into main Nov 2, 2023
7 checks passed
@shouples shouples deleted the djs/llm-updates branch November 2, 2023 18:57
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.

3 participants