New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Let Model outputs be NumPy arrays #1089
Conversation
@pmli, I'm not sure about the |
Removing |
I'm really confused. Isn't this what we discussed the entire time? When outputs are always NumPy arrays, then what's the point of defining an output space?
Of course. I havn't done this, as this PR is only about the outputs and we havn't formalized inputs yet. It clear however, that when outputs are NumPy arrays, than inputs as well. (But we still need to discuss time, |
I thought we only discussed editing the
As I said, using space ids could be used to manage connecting inputs and outputs of different systems. In some situations, it would be natural to have two types of inputs/outputs, and then the input/output space could be a |
If I don't misunderstand this, the same thing could be easily achieved with an |
Ok, so, for you,
Ok, I guess that could work. |
Yes. I would go as far as saying that potentially having different
I think I originally would have liked |
Yes, I agree requiring that where system
Yes, it would definitely be good if |
I am not quite sure how this is related to allowing
Ok, so |
Yes, for a |
This is what I had in mind, actually. There might be a more convenient version where you can specify the names of the output components or so. Not sure about your concerns regarding efficiency. But there is also the option of having some version of |
I have now updated this PR to current master and added the following changes:
Before merging this: Who prefers |
Codecov Report
|
Agreed |
I just renamed |
@pmli, this can now be merged, IMHO. Can you take a look? |
@renefritze, there are some strange new build failures here .. |
Restart or rebase on #1158 |
Co-authored-by: Petar Mlinarić <mlinaric@mpi-magdeburg.mpg.de>
As discussed, outputs of Models are made NumPy arrays instead of VectorArrays to facilitate interfaces with pyMOR Models from user code / external code.
Edit:
I choseoutput_dim
overdim_output
to be consistent with the choice inmodels.iosys
and also because I think it sounds nicer. However, this is somewhat inconsistent with the rest of pyMOR where 'dim_***' is used.The dimension of the output is given by
dim_output
attribute.output_dim
ofIntputOutputModel
has been renamed accordingly. Itsinput_dim
attribute has been renamed todim_input
. The old names are deprecated.In addition,
input_space
andoutput_space
have been removed fromInputOutputModel
and theb
andc
arrays of tangential directions for the interpolatory reductors have been made numpy arrays instead ofVectorArrays
.