Change the number of units in the last Dense layer
This commit is contained in:
parent
3ded0744b3
commit
8d7d2203b5
|
@ -1,5 +1,6 @@
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from pydantic import BaseModel
|
from pydantic import BaseModel
|
||||||
|
|
||||||
from model import infer_sequence
|
from model import infer_sequence
|
||||||
|
|
||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
|
@ -34,7 +34,7 @@ def build_model(hyperparams) -> Model:
|
||||||
units=64, activation="relu", kernel_regularizer=l2(hyperparams.l2_rate)
|
units=64, activation="relu", kernel_regularizer=l2(hyperparams.l2_rate)
|
||||||
),
|
),
|
||||||
Dropout(rate=0.3),
|
Dropout(rate=0.3),
|
||||||
Dense(units=len(BASES), activation="softmax"),
|
Dense(units=32, activation="softmax"),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
model.compile(
|
model.compile(
|
||||||
|
|
Loading…
Reference in New Issue