Skip to content

tests contrucHybridModel#123

Closed
lazarusA wants to merge 2 commits intomainfrom
la/tests
Closed

tests contrucHybridModel#123
lazarusA wants to merge 2 commits intomainfrom
la/tests

Conversation

@lazarusA
Copy link
Member

No description provided.

test_parameters = (
a = (1.0f0, 0.0f0, 5.0f0),
b = (2.0f0, 0.0f0, 10.0f0),
c = (0.5f0, 0.0f0, 2.0f0)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the c needed for?

@test haskey(output.parameters, :nn1)
@test haskey(output.parameters, :nn2)
@test haskey(output.parameters, :b)
@test haskey(output.parameters, :c)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BernhardAhrens we test the existence of it here. If the model doesn't have it then the test fails. Of course we could simply it by removing it, hence, the ask, I'm not sure how did you plan/intended for this to be generally used?

end

# Mechanistic model for MultiNNHybridModel: accepts either a (from params) or nn1 (from NN)
function test_mechanistic_model_multi(; x1, a=nothing, b=nothing, c=nothing, nn1=nothing, nn2=nothing)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function test_mechanistic_model_multi(; x1, a=nothing, b=nothing, c=nothing, nn1=nothing, nn2=nothing)
function test_mechanistic_model_multi(; x1, a=nothing, b=nothing, c=nothing)

To me, this would not be an intended way of defining things. The definitions in constructHybridModel would take care of this anyways

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants