Created
July 26, 2022 11:32
Loading data for the regression example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_name ='medical_insurance' | |
# Read in the medical insurance data | |
df = pd.read_csv('https://raw.githubusercontent.com/StatsGary/Data/main/insurance.csv') | |
# Drop nulls | |
df.dropna(axis='columns',inplace=True) | |
# Get number of rows | |
obs = len(df) | |
# Divide obs in half to get half batch size | |
batch_size = obs // 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment