-
Notifications
You must be signed in to change notification settings - Fork 243
Unify flow matching and score-based models #1497
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
Merged
Merged
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
64e450d
added neural_odes
StarostinV 677f29f
move vector field estimator and extend
StarostinV 770e29a
common methods for flow and sde estimators
StarostinV 47cc401
Merge branch 'unify-scores-and-flows' of github.com:StarostinV/sbi in…
StarostinV 9b33635
rename neural_odes folder to ode_solvers
StarostinV 03e417b
Update vector_field_estimator.py
StarostinV ba2a032
update to work with vector field instances
StarostinV 7caeaf8
Update score_estimator.py
StarostinV 57e2483
Update flowmatching_estimator.py
StarostinV 15876bc
add ConditionalVectorFieldEstimator to imports
StarostinV 0b90470
Create vector_field_inference.py
StarostinV ed6de61
NPSE is not subclass of VectorFieldInference
StarostinV ab0cbef
FMPE is not subclass of VectorFieldInference
StarostinV 6d91542
Create vector_field_potential.py
StarostinV bf8bf58
Make score_fn_iid work with ConditionalVectorFieldEstimator
StarostinV ca28feb
Update score_based_potential.py
StarostinV b9b7432
Create vector_field_posterior.py
StarostinV 47bb52d
use new vector_field_estimator_based_potential
StarostinV 05c3ae9
remove flow builders from test_correctness_of_batched_vs_seperate_sam…
StarostinV afc363c
import vector_field_estimator_based_potential
StarostinV 5e5a299
ruff format
StarostinV 13bb3e1
remove uniform prior from test_c2st_fmpe_on_linearGaussian
StarostinV a878ecb
correct init of VectorFieldPosterior
StarostinV e22eca7
remove FMPE from test_embedding_net_api
StarostinV 2d365a7
refactor
StarostinV b819bf4
call score method to support flow matching
StarostinV 493fe49
add vector field imports
StarostinV 9f25ec7
refactor
StarostinV 8084539
ruff format
StarostinV 122cf77
add docstrings for FlowMatchingEstimator
StarostinV a64c8ae
Merge remote-tracking branch 'upstream/main' into unify-scores-and-flows
StarostinV 1e10455
set track_gradients False by default
StarostinV d04eb5b
remove old score classes
StarostinV 77a37cb
better docstrings and refactor
StarostinV 43b36ea
pass kwargs to potential
StarostinV 3cd5d4a
minor improvements
StarostinV ed09f8f
refactor
StarostinV 57b6154
optimize tests for vector field inference
StarostinV 73968ee
Merge remote-tracking branch 'upstream/main' into unify-scores-and-flows
StarostinV 808f1c6
ruff format
StarostinV 1b795f9
resolve pyright error
StarostinV 4c19875
ruff format
StarostinV 2a6f301
fix bug in test_c2st_fmpe_on_linearGaussian
StarostinV 2f2083b
raise error on unexpected sample_with
StarostinV f223c98
bug fix - call score instead of forward
StarostinV b5892df
add update_params method
StarostinV a7e4494
minor change
StarostinV d7f67e8
unified tests and refactor
StarostinV b30d0c1
rename PosteriorVectorFieldBasedPotential to VectorFieldBasedPotential
StarostinV 40507b5
better error messages if score or marginals are not defined
StarostinV 188ba7c
rename FNPEScoreFunction to FactorizedNPEScoreFunction
StarostinV 761480d
shapes consistent with score estimators
StarostinV 565ec93
Merge upstream/main and resolve conflicts
StarostinV b110af1
skip some slow tests
StarostinV 33e0c6e
update comments
StarostinV 617a328
fix merge bug
StarostinV 45bcfeb
fix typo
StarostinV 13cf8ba
add sigma_min to sde methods
StarostinV eae5770
handle devices
StarostinV 59db868
todos for PR 1501
StarostinV 978a428
better docstrings
StarostinV 5fc694d
change condition_event_shape from 7 to 2
StarostinV 3cadaff
move ConditionalVectorFieldEstimator to base
StarostinV ae150ab
refactor ode solvers
StarostinV 7c25430
add VectorFieldEstimatorBuilder protocol and refactor
StarostinV e48d715
use Literal for type annotation
StarostinV 0055c67
minor refactor
StarostinV d0c3725
fix docstring
StarostinV 5eb1c05
add kwargs to constructor
StarostinV a168d23
minor refactoring
StarostinV b2e9f8d
update docstring and refactor
StarostinV b4ee280
Merge remote-tracking branch 'upstream/main' into unify-scores-and-flows
StarostinV e7def54
Merge remote-tracking branch 'upstream/main' into unify-scores-and-flows
StarostinV 7966120
import check_c2st from sbi.utils.metrics
StarostinV 23ddc66
better note
StarostinV a7e4f84
minor refactoring
StarostinV 369477d
Merge remote-tracking branch 'upstream/main' into unify-scores-and-flows
StarostinV File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
151 changes: 85 additions & 66 deletions
151
sbi/inference/posteriors/score_posterior.py → ...ence/posteriors/vector_field_posterior.py
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.