-
Notifications
You must be signed in to change notification settings - Fork 41
Adding support for other types of distances #310
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
Comments
Welcome @Aceticia ! A custom distance metric is something I've considered as well, but we are a little swamped right now with some goals for the release, including proper demo's for all modalities. We'll be sure to be in touch about plans in this direction. |
Hi @Aceticia, rsatoolbox/src/rsatoolbox/rdm/compare.py Line 246 in 69f27f9
and you can use it by using the method string "neg_riem_dist" The shape metric methods are also interesting, especially when you want to compare many models to each other or want to use the similarities between models as a distance. We have not converged on whether and how to incorporate them though. The problem is that the shape metric approach only sometimes maps on the schema of first computing an RDM and them comparing them between models. In other cases, you never compute an equivalent of the RDM, which would make implementing these cases awkward in this toolbox. |
@HeikoSchuett Ha! Thank you. I didn't notice this choice being available. Yeah, I agree that this would be a little problematic in terms of interface. My two cents: We can directly interact with datasets that generate them and have more general methods that can be used to "compare" models, where shape metrics and An alternative that doesn't break the interface: When we calculate the RDMs, we keep a reference to the raw dataset. Let's say we have a brain dataset |
Hi, it's nice discovering the package and I really enjoy using it so far. There are some great new works that propose new metrics for measuring dissimilarity, for example the generalized shape metrics (code here) and the generalized Riemannian metric mentioned here. It would be really nice to integrate those into the package. I'll be happy to submit a PR if people like this idea.
Alternatively, maybe there could be a unified interface for the user to provide a callable like many sklearn apis.
A downside to this would be that we will have to deal with a large number of built-in distances without clear knowledge about when to use which. A good idea might be to use some sample data to create a preliminary benchmark.
As a side note, I'm not sure how, but I really wish I knew about this project sooner. By this point I've written a lot of rsa code in python myself, but luckily not enough to make me think I should start a package.
The text was updated successfully, but these errors were encountered: