Skip to content
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

Bug: pformat_dict not imported from utilities #48

Open
radlfabs opened this issue Mar 18, 2024 · 0 comments
Open

Bug: pformat_dict not imported from utilities #48

radlfabs opened this issue Mar 18, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@radlfabs
Copy link
Owner

from flexcv import CrossValidation
from flexcv.synthesizer import generate_regression
X, y, groups, _ = generate_regression(12, 300, 10)
from flexcv.models import LinearModel

cv = CrossValidation()

performed = (
    cv
    .set_data(X, y, groups)
    .set_splits()
    .add_model(LinearModel)
    .perform()
    .get_results()
)

raises "NameError: name 'pformat_dict' is not defined".

Problem is here:

return f"CrossValidationResults {pformat_dict(self)}"

We need to import pformat_dict from flexcv.utilities.

@radlfabs radlfabs added the bug Something isn't working label Mar 18, 2024
@radlfabs radlfabs self-assigned this Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant