Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to_api_repr method to Model #324

Closed
romainr opened this issue Oct 14, 2020 · 1 comment · Fixed by #326
Closed

Add to_api_repr method to Model #324

romainr opened this issue Oct 14, 2020 · 1 comment · Fixed by #326
Assignees
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@romainr
Copy link

romainr commented Oct 14, 2020

Same as #299 but for models:

AttributeError: 'Model' object has no attribute 'to_api_repr'

Current workaround: using model._properties but object fields like featureColumns https://cloud.google.com/bigquery/docs/reference/rest/v2/models#Model will be missing.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Oct 14, 2020
@HemangChothani HemangChothani added the type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. label Oct 14, 2020
@HemangChothani HemangChothani self-assigned this Oct 14, 2020
@romainr
Copy link
Author

romainr commented Oct 14, 2020

It might be two bugs actually:

[model.feature_columns for model in client.list_models(dataset=dataset)] is empty

@HemangChothani HemangChothani changed the title feat: add to_api_repr method to Model Add to_api_repr method to Model Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants