Hi all,
I’m trying to implement the ADASYN community node, but I’m having trouble executing it. I’m recieving the followoing python error script:
ERROR Python Script (1⇒1) (deprecated) 3:1:0:30 Execute failed: 'ADASYN' object has no attribute 'fit_sample'
Traceback (most recent call last):
File "<string>", line 15, in <module>
AttributeError: 'ADASYN' object has no attribute 'fit_sample'
I don’t have much experience with coding, but based on what I can see it may be the case that I’ve installed the incorrect python dependencies. I can see in a similar SMOTE problem mentioned on Stack Overflow that this is because
fit_sample
was renamed tofit_resample
inv0.4
.
I’m struggling to downgrade the imbalanced-learn package to v0.3 to check if my suspicion is correct, however v0.4 was release on October 12 2018 with the node being released a year later so might possbly use a newer version, an I’m misunderstanding the error prompt.
Is there any way to investigate and potentially change the python script of a community node locally to correct fit_sample
with fit_resample
if that is indeed what has happend, or should I continue trying to downgrade my imbalanced-learn package in my python environment?