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

wrong documentation and fucntion calls #83

Open
prabhant opened this issue May 27, 2022 · 1 comment
Open

wrong documentation and fucntion calls #83

prabhant opened this issue May 27, 2022 · 1 comment

Comments

@prabhant
Copy link

MWE:

Seems like the documentation is incorrect here and the samplers are not sklearn API compatible.
Also implementing

from multi_imbalance.resampling.soup import SOUP

soup = SOUP(maj_int_min={
        'maj': [0, 1], # indices of majority classes
        'min': [2, 3, 4, 5] # indices of minority classes
    })
X_train_res, y_train_res = soup.fit_transform(X_train, y_train)
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
[<ipython-input-12-97237e7146d3>](https://localhost:8080/#) in <module>()
      6         'min': [2, 3, 4, 5] # indices of minority classes
      7     })
----> 8 X_train_res, y_train_res = soup.fit_transform(X_train, y_train)

AttributeError: 'SOUP' object has no attribute 'fit_transform'
@ylevental
Copy link

ylevental commented Oct 23, 2023

fit_transform should be fit_resample

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants