Compare commits

...

1 Commits

Author SHA1 Message Date
coolneng 8d7d2203b5
Change the number of units in the last Dense layer 2021-07-06 17:49:39 +02:00
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(