def som_train(som_pointer, data, epochs, autostop):
pointer_data = package_builder(data, c_double).create()<EOL>ccore = ccore_library.get()<EOL>ccore.som_train.restype = c_size_t<EOL>return ccore.som_train(som_pointer, pointer_data, c_uint(epochs), autostop)<EOL>
!
    @brief Trains self-organized feature map (SOM) using CCORE pyclustering library.

    @param[in] data (list): Input data - list of points where each point is represented by list of features, for example coordinates.
    @param[in] epochs (uint): Number of epochs for training.        
    @param[in] autostop (bool): Automatic termination of learining process when adaptation is not occurred.

    @return (uint) Number of learining iterations.