alteryx / alteryx/evalml

Improve Fraud Dataset

Đang mở
#616 0 bình luận 0 reaction 1 người được giao Được @asniyaz nhận Xem trên GitHub
documentation enhancement
Ngôn ngữ chính
Python
Star
850
Fork
96
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

- The Fraud Dataset doesn't work well when all the rows and columns are used. The top 2 models generated have only 1 feature. The rest of the models have 66 or 12 features
- I realize this is a synthetic dataset so this may be intended (or not a problem). Feel free to close this issue if that is the case.

## With 2500 Rows, Some columns (following docs example)
```python
import evalml
from evalml import AutoClassificationSearch
from evalml.objectives import FraudCost

fraud_objective = FraudCost(retry_percentage=.5,
interchange_fee=.02,
fraud_payout_percentage=.75,
amount_col='amount')
X, y = evalml.demos.load_fraud(n_rows=2500)
X = X.drop(['datetime', 'expiration_date', 'country', 'region', 'provider'], axis=1)
X_train, X_holdout, y_train, y_holdout = evalml.preprocessing.split_data(X, y, test_size=0.2, random_state=0)
automl = AutoClassificationSearch(objective=fraud_objective,
additional_objectives=['auc', 'recall', 'precision'],
max_pipelines=5)

automl.search(X_train, y_train)
automl.describe_pipeline(automl.rankings.iloc[0]["id"])
```

## With All Rows, All columns
```python
X, y = evalml.demos.load_fraud()
X_train, X_holdout, y_train, y_holdout = evalml.preprocessing.split_data(X, y, test_size=0.2, random_state=0)
automl = AutoClassificationSearch(objective=fraud_objective,
additional_objectives=['auc', 'recall', 'precision'],
max_pipelines=5)
automl.search(X_train, y_train)
automl.describe_pipeline(automl.rankings.iloc[0]["id"])
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.