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

Add diagnostic output for model.cond #1

Open
grst opened this issue May 27, 2024 · 1 comment
Open

Add diagnostic output for model.cond #1

grst opened this issue May 27, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@grst
Copy link
Contributor

grst commented May 27, 2024

Description of feature

When creating a complex contrast with model.cond, there should be a way to print out the actual contrast generated as a santity check for the user.

Follow-up of scverse/multi-condition-comparisions#15.

@grst grst added the enhancement New feature or request label May 27, 2024
@grst grst self-assigned this May 27, 2024
@grst grst transferred this issue from scverse/pertpy Nov 25, 2024
@grst
Copy link
Contributor Author

grst commented Dec 7, 2024

One way could be to implement a method display_contrast(contrast: np.ndarray | pd.Series) that visualizes the contrast.

In its simplest form, it could show the non-zero coefficients and display them as a table:

contrasts.T.loc[lambda x: x[0] != 0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant