A Preliminary Study on the Composition of NILM Metadata

First of all, Metadata is described by yml, and some basic yaml syntax needs to be understood .

Common data types:
insert image description here

The following is an attempt to understand the structure of Metadata based on an example of NILM Metadata Tutorial .

insert image description here
insert image description here

First of all, instance, elec_meters, and appliances are in the same hierarchical relationship.
elec_meters is a dictionary of dictionaries. Key value (1 to 7 represent the Meter in the figure above). This meter is set to true if the site_meter measures the total electricity demand of the entire building. submeter_of records the meter instance of the upstream meter. For example, the upper level of Meter3 is Meter1, which is a site_meter.

Look at appliances is a list of dictionaries (a list of dictionaries). For each appliance, specify an integer to distinguish multiple appliances of the same type in the same building. For example, for light, there are two instances in the same building, and an integer is specified for each. (Appliance can be understood as a class class, and instance is one of the instances, which has a feeling of object-oriented programming.)

At the same time, specify a list of meters, each element in the list is an integer corresponding to an instance of the meter.

Summary:
elec_meters is a dictionary.
appliances is a list.

Guess you like

Origin blog.csdn.net/aa2962985/article/details/121103430