ciemss / pyciemss

Causal and probabilistic reasoning with continuous time dynamical systems
Other
17 stars 6 forks source link

Metrics for exemplar trajectory selection #223

Open JosephCottam opened 1 year ago

JosephCottam commented 1 year ago

Choosing trajectories to show is important. We need ways to select both exemplars and outliers to show (in addition to the distributions).

Some things to look at:

JosephCottam commented 1 year ago

So the math/code for selecting as shown in commit ef48ff31b277f4ed260c2e154d014cf8aaa1c16d is a good way to do it.

Please move it out to a utility function so that we can do something like:

trajectory_data = ... # Some dataframe
selected_traces = plots.select_traces(trajectory_data)
plots.trajectories(trajectory_data, traces=selected_traces)

There are probably things required around NAMING the traces that still need to be worked out so they don't collide with the trajectories.