Move SOM generation code to fit() to fix cloning test