public class Model extends ModelInfo
A Google BigQuery ML Model.
Objects of this class are immutable. Operations that modify the table like #update
return a new object. To get a Model
object with the most recent information use #reload.
Methods
delete()
public boolean delete()
Deletes this model.
Type | Description |
boolean |
|
equals(Object obj)
public final boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
exists()
public boolean exists()
Check if this model exists.
Type | Description |
boolean |
|
getBigQuery()
public BigQuery getBigQuery()
Return's the model's BigQuery
object used to issue requests. *
Type | Description |
BigQuery |
hashCode()
public final int hashCode()
Type | Description |
int |
reload(BigQuery.ModelOption[] options)
public Model reload(BigQuery.ModelOption[] options)
Fetches current model's state from the service. Returns null
if the model does not
exist. A new Model
is returned.
Name | Description |
options | ModelOption[] model options |
Type | Description |
Model | a |
toBuilder()
public Model.Builder toBuilder()
Type | Description |
Model.Builder |
update(BigQuery.ModelOption[] options)
public Model update(BigQuery.ModelOption[] options)
Updates the model's information with this model's information. Dataset and model identifiers
cannot be updated. A new Model
object is returned.
Name | Description |
options | ModelOption[] dataset options |
Type | Description |
Model | a |