mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
Fixed project_id in bigquery client (#57)
Remove timestamp in fs id Reduced fix_node_count to 1 Removed deprecated display_name
This commit is contained in:
@@ -429,11 +429,11 @@
|
||||
"source": [
|
||||
"# Create dataset\n",
|
||||
"REGION = \"us-central1\" # @param {type:\"string\"}\n",
|
||||
"client = bigquery.Client()\n",
|
||||
"client = bigquery.Client(project=PROJECT_ID)\n",
|
||||
"dataset_id = \"{}.{}\".format(client.project, DESTINATION_DATA_SET)\n",
|
||||
"dataset = bigquery.Dataset(dataset_id)\n",
|
||||
"dataset.location = REGION\n",
|
||||
"dataset = client.create_dataset(dataset, timeout=30)\n",
|
||||
"dataset = client.create_dataset(dataset)\n",
|
||||
"print(\"Created dataset {}.{}\".format(client.project, dataset.dataset_id))"
|
||||
]
|
||||
},
|
||||
@@ -546,15 +546,14 @@
|
||||
},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"FEATURESTORE_ID = \"movie_prediction_{timestamp}\".format(timestamp=TIMESTAMP)\n",
|
||||
"FEATURESTORE_ID = \"movie_prediction\"\n",
|
||||
"create_lro = admin_client.create_featurestore(\n",
|
||||
" featurestore_service_pb2.CreateFeaturestoreRequest(\n",
|
||||
" parent=BASE_RESOURCE_PATH,\n",
|
||||
" featurestore_id=FEATURESTORE_ID,\n",
|
||||
" featurestore=featurestore_pb2.Featurestore(\n",
|
||||
" display_name=\"Featurestore for movie prediction\",\n",
|
||||
" online_serving_config=featurestore_pb2.Featurestore.OnlineServingConfig(\n",
|
||||
" fixed_node_count=3\n",
|
||||
" fixed_node_count=1\n",
|
||||
" ),\n",
|
||||
" ),\n",
|
||||
" )\n",
|
||||
|
||||
Reference in New Issue
Block a user