We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Been trying to run your notebook and ran into this error that I cannot resolve. Can you tell me where to find that or what its replacement would be?
Thanks
NameError Traceback (most recent call last) in 4 NM1_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 1),lr) 5 NM2_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 2),lr) ----> 6 NM3_pipeline = make_pipeline(tvec, NearMiss(ratio=nm3_dict,random_state=777, version = 3, n_neighbors_ver3=4),lr)
NameError: name 'nm3_dict' is not defined`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Been trying to run your notebook and ran into this error that I cannot resolve. Can you tell me where to find that or what its replacement would be?
Thanks
`RandomUnderSampler¶
In [33]:
1 from imblearn.under_sampling import NearMiss, RandomUnderSampler
2
3 RUS_pipeline = make_pipeline(tvec, RandomUnderSampler(random_state=777),lr)
4 NM1_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 1),lr)
5 NM2_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 2),lr)
6 NM3_pipeline = make_pipeline(tvec, NearMiss(sampling_strategy=nm3_dict,random_state=777, version = 3, n_neighbors_ver3=4),lr)
NameError Traceback (most recent call last) in
4 NM1_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 1),lr)
5 NM2_pipeline = make_pipeline(tvec, NearMiss(ratio='not minority',random_state=777, version = 2),lr)
----> 6 NM3_pipeline = make_pipeline(tvec, NearMiss(ratio=nm3_dict,random_state=777, version = 3, n_neighbors_ver3=4),lr)
NameError: name 'nm3_dict' is not defined`
The text was updated successfully, but these errors were encountered: