Forecasting heating and cooling energy demand in buildings plays a critical role in supporting building management and operation. Thus, analysing the energy consumption pattern of a building could help in the design of potential energy savings and also in operation fault detection, while contributing to provide proper indoor environmental conditions to the building's occupants.This paper aims at presenting the main results of a study consisting in forecasting the hourly heating and cooling demand of an office building located in Lisbon, Portugal, using machine learning models and analysing the influence of exogenous variables on those predictions. In order to forecast the heating and cooling demand of the considered building, some traditional models, such as linear and polynomial regression, were considered, as well as artificial neural networks and support vector regression, oriented to machine learning. The input parameters considered in the development of those models were the hourly heating and cooling energy historical records, the occupancy, solar gains through glazing and the outside dry-bulb temperature.The models developed were validated using the mean absolute error (MAE) and the root mean squared error (RMSE), used to compare the values obtained from machine learning models with data obtained through a building energy simulation performed on an adequately calibrated model.The proposed exploratory analysis is integrated in a research project focused on applying machine learning methodologies to support energy forecasting in buildings. Hence, the research line proposed in this article corresponds to a preliminary project task associated with feature selection/extraction and evaluation of potential use of machine learning methods.