Skip to content

Update fold default value for outlier class - #554

Closed
px39n wants to merge 12 commits into
feature-engine:mainfrom
px39n:dev
Closed

Update fold default value for outlier class#554
px39n wants to merge 12 commits into
feature-engine:mainfrom
px39n:dev

Conversation

@px39n

@px39n px39n commented Nov 8, 2022

Copy link
Copy Markdown
Contributor

This change is not necessary, but make this function more friendly.

Changed default value of fold to 0.05 when the capping_method='quantile', for other methods, keep the default as 3.

Past :

OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.

For now:

OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
Will work,

px39n added 6 commits November 8, 2022 17:01
eg:
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.
eg:
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.
**This change is not necessary, but make this function more friendly.**

Changed default value of fold to 0.05 when the capping_method='quantile',
for other methods, keep the default as 3.

Past :
```
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.
```
For now:
```
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
Will work,
```
test2
test3
@px39n

px39n commented Nov 8, 2022

Copy link
Copy Markdown
Contributor Author

Whats wrong with test_type :0

@solegalli

Copy link
Copy Markdown
Collaborator

test_type errors have been fixed in #555

If you rebase main onto your feature branch, it should work now.

I don't see the files with the changes. What happened?

px39n added 6 commits November 9, 2022 17:02
**This change is not necessary, but make this function more friendly.**

Changed default value of fold to 0.05 when the capping_method='quantile',
for other methods, keep the default as 3.

Past :
```
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.
```
For now:
```
OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
Will work,
```
test3
This change is not necessary, but make this function more friendly.

Changed default value of fold to 0.05 when the capping_method='quantile', for other methods, keep the default as 3.

Past :

OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
will raise error due to default fold is 3.
For now:

OutlierTrimmer(capping_method='quantile')
OutlierTrimmer.fit(X)
Will work,
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

Successfully merging this pull request may close these issues.

2 participants