ensure that all attributes with trailing underscore in fit are leared after the entire logic has succeded
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- python, scikit-learn
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
Start with the test_encoders test the issue quotes, which shows the non-fitted-error pattern, and copy it for each unchecked module (encoding, outliers, scaling, datetime, text, selection, time series, preproc, wrappers). In each module's fit() method, move every assignment of a trailing-underscore attribute to after the last step that can raise. Done means the new parametrized test passes for every module and the existing tests still pass. Related PR #917 is referenced but not linked, so check it before starting.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
All attributes with trailing underscore must be set up at the end of the fit() functionality, when we are sure that all fit logic worked. At the moment, it is not like that for all transformers.
Add a test like the one in test_encoders:
@pytest.mark.parametrize("estimator", _estimators)
def test_raises_non_fitted_error_when_error_during_fit(estimator):
X, y = test_df(categorical=True)
X.loc[len(X) - 1] = nan
transformer = clone(estimator)
with pytest.raises(ValueError):
transformer.fit(X, y)
# Test when fit is not called prior to transform.
with pytest.raises(NotFittedError):
transformer.transform(X)
Modules encoding and preprocessing already have this functionality.
Modules to update:
- imputation
- encoding
- discretisation
- outliers
- transformation
- scaling
- creation
- datetime
- text
- selection
- time series
- preproc
- wrappers
Related PRs:
- #917
- Ngôn ngữ chính
- Python
- Star
- 2.3k
- Fork
- 391
- Merge trung bình
- 11 giờ 34 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của feature-engine/feature_engine
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
feature-engine/feature_engine#1141 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
docs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
feature-engine/feature_engine#393 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
feature-engine/feature_engine#1140 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
CategoricalImputer fails when fill_value is already a categoryCó thể đã có người làm @AryanRG đã nhận 12 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 18/100
feature-engine/feature_engine#1113 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OneHotEncoder loses a dummy name when it matches an encoded input columnCó thể đã có người làm @Aadrit555 đã nhận 7 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 25/100
feature-engine/feature_engine#1106 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của feature-engine/feature_engine
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 79/100
developmentseed/titiler-covjson#164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
awslabs/visual-asset-management-system#2164 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
MakazhanAlpamys/Soup#3589 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocketĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày