-
Hello, I have a test dataset for a building on the Purdue campus which I want to integrate into Neuromancer to develop a DPC. This location has already had an MPC demonstration, so it would be nice to compare in simulation th I have attached my dataset: I need some help with how to integrate my file with the PSL format are there any tutorials on this? I have attempted rewriting the code in: https://github.com/pnnl/neuromancer/blob/master/examples/domain_examples/NSSM_building_dynamics.py, to integrate my data, see attached Python code but with little training success. Currently my dynamic model is of the form: x(k+1) = Ax(k) + Bu(k) + D*d(k) where C = 1, i.e. we only measure and want to control the mixed air temperature of the house, and we do not incorporate any noise terms. u = [Heat Supply; Outdoor Temperature], and d = [Solar Gains; Wind Speed]. I have previously trained gray-box models with this dataset, it would be nice to extend to a black box. Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @epergant, thanks for your interest in our library. In general, you can load your csv file as Python dictionary with arbitrary string values for keys and numpy arrays as values. After you have your data in Python dictionary, you don't need to be compliant with our specific PSL format, where we use specific keys. You can use any keys you want and build your dataset around those.
If you choose to use defauls PSL labels, then you could use PSL file_emulator to load your formatted csv file. Specifically you could use _read_file function that will parse this PSL format dataset from csv or mat file. Regarding the model architecture, the nice thing about Neuromancer is that you are not limited to linear state space models. You can use wide-range of black- or gray- box models from our library or develop your own. See some examples here: Let me know if this helps. |
Beta Was this translation helpful? Give feedback.
Hi @epergant, thanks for your interest in our library.
In general, you can load your csv file as Python dictionary with arbitrary string values for keys and numpy arrays as values.
See these general ways to load csv files into Python dict.
After you have your data in Python dictionary, you don't need to be compliant with our specific PSL format, where we use specific keys. You can use any keys you want and build your dataset around those.
If you want to use the PSL format, you need to categorize your variables into one of these keys: