Setting model-specific params is essentially impossible.
If you pass hypertools.reduce a dictionary of model params along with a model in the reduce argument, and also pass ndims, all options except for the chosen model are erased.
If you try to circumvent this by passing n_components to the params dict and not touching the ndims argument, line 122 in hypertools.reduce causes the function to just return the original data.
Setting model-specific params is essentially impossible.
If you pass
hypertools.reduce
a dictionary of model params along with a model in thereduce
argument, and also passndims
, all options except for the chosen model are erased.If you try to circumvent this by passing
n_components
to the params dict and not touching thendims
argument, line 122 inhypertools.reduce
causes the function to just return the original data.https://github.com/ContextLab/hypertools/blob/b76c7ac8061998b560e969ff8e4f4c915088e7a0/hypertools/tools/reduce.py#L127-L152