Fixed crash caused by absence of sklearn.