Skip to content

Conversation

@Zethson
Copy link
Member

@Zethson Zethson commented Jul 21, 2025

Fixes #823

  1. Now allows for:
import pertpy as pt
adata = pt.dt.distance_example()
dist = pt.tl.Distance(metric="mmd")
df = dist.pairwise(adata, groupby="perturbation", gamma=0.5)
  1. Improves typing for Metrics

@github-actions github-actions bot added the enhancement New feature or request label Jul 21, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jul 21, 2025

Codecov Report

Attention: Patch coverage is 33.33333% with 6 lines in your changes missing coverage. Please review.

Project coverage is 72.58%. Comparing base (45a9266) to head (9ab9ba1).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pertpy/tools/_distances/_distances.py 25.00% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #825   +/-   ##
=======================================
  Coverage   72.58%   72.58%           
=======================================
  Files          47       47           
  Lines        5540     5541    +1     
=======================================
+ Hits         4021     4022    +1     
  Misses       1519     1519           
Files with missing lines Coverage Δ
pertpy/tools/_coda/_base_coda.py 56.73% <ø> (ø)
pertpy/tools/_distances/_distance_tests.py 93.96% <100.00%> (ø)
pertpy/tools/_distances/_distances.py 90.27% <25.00%> (+0.01%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Lukas Heumos <[email protected]>
@Zethson Zethson marked this pull request as ready for review July 21, 2025 14:00
@Zethson Zethson merged commit 590b2ed into main Jul 21, 2025
15 of 17 checks passed
@Zethson Zethson deleted the feature/more_parameters branch October 12, 2025 11:01
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

Successfully merging this pull request may close these issues.

Add parameters for non-linear distances mmd

3 participants