JMLR code for home heating application