mmschlk / shapiq

Shapley Interactions for Machine Learning
https://shapiq.readthedocs.io
MIT License
69 stars 6 forks source link

Make Games be also callable with a tuple/list of tuples #183

Open mmschlk opened 1 month ago

mmschlk commented 1 month ago

In shapiq, the main data structure for coalitions and subsets are np.ndarrays (coals. and subs. are arrays). However, internally some objects, especially games, work with tuples of players. Sometimes the array representation is a bit in the way when working with games. It would be nice to allow games to also be called with tuples. Probably a seperate "tuple_call" function is better than allowing different parameter types in the call, which could increase confusion about what types work where.

mmschlk commented 1 month ago

Depending on the solution, this is either a small or medium sized issue.