Ресурс google_ml_engine_model
Синтаксис
Используется google_ml_engine_model, чтобы протестировать ресурс модели Google.
Примеры
describe google_ml_engine_model(project: 'chef-gcp-inspec', name: 'ml_model') do
it { should exist }
its('description') { should cmp 'My awesome ML model' }
its('regions') { should include 'us-central1' }
its('online_prediction_logging') { should cmp 'true' }
its('online_prediction_console_logging') { should cmp 'true' }
end
describe google_ml_engine_model(project: 'chef-gcp-inspec', name: 'nonexistent') do
it { should_not exist }
end
Свойства
Свойства, доступные для ресурса google_ml_engine_model:
name- Указанное имя модели.
description- Описание модели, указанное при её создании.
default_version- По умолчанию используемая версия модели. Эта версия будет использоваться для обработки запросов предсказания, которые не указывают версию.
name- Указанное имя версии при её создании.
regions- Список регионов, в которых будет развернута модель. В настоящее время поддерживается только один регион на модель.
online_prediction_logging- Если значение true, журналы доступа к онлайн-предсказаниям отправляются в StackDriver Logging.
online_prediction_console_logging- Если значение true, узлы онлайн-предсказания отправляют потоки stderr и stdout в Stackdriver Logging.
labels- Один или несколько меток для организации моделей.
Разрешения GCP
Убедитесь, что Cloud ML включён для текущего проекта.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/inspec/resources/google_ml_engine_model/