Gerrymandering Learning by Practice