Blockchain in machine learning