The Cloze is a building metadata generation system.
-
The building metadata required by model training is stored in the directory
data
. The parsed words of metadata is stored indata/{}_word_dict.json
and the ground truth is stored indata/{}_label_dict.json
. The specification file is stored indata/{}_specification_file.json
. -
Use the
cloze/speicication_file_process.py
to process the specification file. -
Use the
cloze/load_data.py
to process and load the building metadata for training. -
Use the
cloze/training.py
to train and evaluate the models inmodel.py
. -
Functional classes and methods can be found in
cloze/utiliz.py
.
- python 3
- pip packages:
requirements.txt
git clone https://github.com/fangger4396/Cloze.git
Example:
{
"id": "101",
"raw metadata": "wkgo-bf-cp01.temp1"
"parsed raw metadata": [
"wkgo",
"bf",
"cp",
"01",
"temp",
"1",
],
}
Example:
{
"id": "101",
"parsed metadata": [
"bf",
"cp",
"01",
"temp",
"1",
],
"Brick class": "temperature sensor"
}
The metadata specification file consists of the pieces of metadata and the description of the metadata, that can be organized by key-value pairs. The key is the pieces of metadata, and the value is the description of the metadata.
Example of metadata specification file:
{
"Equipment Code": {
"CP": "Chiller Plant",
"CWP":"Condensing Water Pump",
"TAF":"Transfer Air Fan"
},
"Location Code": {
"BF": "Basement Floor",
"1F": "First Floor",
"PLANT": "Plant Room",
"DINRM": "Dining Room"
},
"Point Code": {
"TEMP": "Temperature",
"ODT": "Outdoor Air Temperature",
"OWT": "Outlet Water Temperature",
"FSPD": "Fan Speed"
}
}
Example for matching specification file with Brick schema tags:
{
"Equipment Code": {
"CP": "Chiller",
"CWP":"Water Pump",
"TAF":"Air Fan"
},
"Location Code": {
"BF": "Basement Floor",
"1F": "Floor",
"PLANT": "Room",
"DINRM": "Room"
},
"Point Code": {
"TEMP": "Temperature Sensor",
"ODT": "Outside Air Temperature Sensor",
"OWT": "Return Water Temperature Sensor",
"FSPD": "Fan Speed Sensor"
}
}
Example for generating labels for building metadata:
{
"id": "101",
"raw metadata": "wkgo-bf-cp01.temp1",
"parsed metadata": [
"bf",
"cp",
"01",
"temp",
"1",
],
"Brick class": "temperature sensor"
}