ageron / ageron/handson-ml2

Chapter 19 - KeyError in GCP Prediction Service Model Version Mismatch

Abierto
#174 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Jupyter Notebook
Estrellas
30k
Forks
13.1k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

If you deploy Model v2 to GCP (as per page 680 .../my_mnist_model/0002/) then parsing of the prediction results fails due to a Key Error, eg:

KeyError: 'dense_2'

This occurs because the output_name is still assigned to the value from v1, eg 'dense_1'. Resetting the output_name to the v2 value prior to calling Predict allows the results to be parsed correctly

output_name = model.output_names[0]

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.