GoogleCloudPlatform / ml-design-patterns

Source code accompanying O'Reilly book: Machine Learning Design Patterns
Apache License 2.0
1.9k stars 533 forks source link

Chapter 3: Rebalancing #9

Open mshearer0 opened 4 years ago

mshearer0 commented 4 years ago

On GCP AI Notebook install xgboost !pip install xgboost

Colab Auth as per issue #5

Needed to manually create natality dataset in US region

Replaced df['NEAREST_CENTROIDS_DISTANCE'].iloc[0]

with

average_pred['NEAREST_CENTROIDS_DISTANCE'].iloc[0]