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

nm3_dict is no defined #1

Open
PythonWillRule opened this issue Feb 23, 2019 · 0 comments
Open

nm3_dict is no defined #1

PythonWillRule opened this issue Feb 23, 2019 · 0 comments

Comments

@PythonWillRule
Copy link

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`

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
@PythonWillRule and others