scikit-adaptation / skada

Domain adaptation toolbox compatible with scikit-learn and pytorch
https://scikit-adaptation.github.io/
BSD 3-Clause "New" or "Revised" License
56 stars 16 forks source link

Allow pack() functions to accept strings as input for as_sources and as_targets args #80

Open YanisLalou opened 5 months ago

YanisLalou commented 5 months ago

Currently, every DAdataset packing function is only compatible with List[str] for the as_sources and as_targets arguments. However, in cases where we have only one target and one source, it would be simpler to use a single string instead of a list of strings. OR, the use of strings altogether could be prohibited. Right now, when we provide a string instead of a list, the packing functions iterate over the string, letter by letter, eventually raising a KeyError exception."