-
Notifications
You must be signed in to change notification settings - Fork 7
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
Pass list of Callables and list of param_dicts to build_vset #50
Comments
Hey @GiannisPikoulis, thanks for checking out vflow! Would you min sending a small reprex that I can test out on my end? |
Hello. Thanks for replying to my message. So when I tried running PCA with multiple params:
the following error occured:
|
Thanks for the example and sorry for the trouble. I think you're using the v0.1.1 tag which is on PyPI, but I ran the With the v0.1.1 version, I think your error can be partially fixed by using def build_vset(name: str, obj, *args, param_dict=None, reps: int = 1,
is_async: bool = False, output_matching: bool = False,
lazy: bool = False, cache_dir: str = None, verbose: bool = True,
tracking_dir: str = None, **kwargs) -> Vset: 00cc344 : def build_vset(name: str, func, param_dict=None, reps: int = 1,
is_async: bool = False, output_matching: bool = False,
lazy: bool = False, cache_dir: str = None,
tracking_dir: str = None, **kwargs) -> Vset: But I think your PCA example may have uncovered another issue related to async pca_set = build_vset('PCA', PCA, pca_params, lazy=True, is_async=True)
X_trains_pca = {key: val() for key, val in X_trains_pca.items() if key != '__prev__'} I just created an issue related to this and will try to find some time this week to look into it: #51 |
Closing this, but please reopen if you still have issues with the version of |
Hello again.
I'm having trouble passing a list of Callables and list of param_dicts to build_vset. The following error occurs:
obj must be callable
.I'm passing a list of sklearn models and a corresponding list of parameter dicts. According to the documentation, this should work.
The text was updated successfully, but these errors were encountered: