Skip to content

Commit e675422

Browse files
Update condition for constructing neural network in GenericHybridModel to ensure both predictors and neural parameters are present
1 parent 523b47d commit e675422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/GenericHybridModel.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function constructHybridModel(
103103
@assert all(n in all_names for n in neural_param_names) "neural_param_names ⊆ param_names"
104104

105105
# if empty predictors do not construct NN
106-
if length(predictors) > 0
106+
if length(predictors) > 0 && length(neural_param_names) > 0
107107

108108
in_dim = length(predictors)
109109
out_dim = length(neural_param_names)

0 commit comments

Comments
 (0)