Change the number of units in the last Dense layer

This commit is contained in:
coolneng 2021-07-06 17:49:39 +02:00
parent 3ded0744b3
commit 8d7d2203b5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
from fastapi import FastAPI
from pydantic import BaseModel
from model import infer_sequence
app = FastAPI()

View File

@ -34,7 +34,7 @@ def build_model(hyperparams) -> Model:
units=64, activation="relu", kernel_regularizer=l2(hyperparams.l2_rate)
),
Dropout(rate=0.3),
Dense(units=len(BASES), activation="softmax"),
Dense(units=32, activation="softmax"),
]
)
model.compile(