15 using namespace shogun;
22 "batch size not set to positive value. Current batch size %d \n", batch_size);
24 "number of iterations not set to positive value. Current iterations %d \n", minib_iter);
37 for (int32_t i=0; i<minib_iter; i++)
41 for (int32_t j=0; j<batch_size; j++)
44 for (int32_t p=0; p<k; p++)
49 for (int32_t p=1; p<k; p++)
59 for (int32_t j=0; j<batch_size; j++)
61 int32_t near=ncent[j];
66 for (int32_t c=0; c<dims; c++)
68 c_alive[c]=(1.0-eta)*c_alive[c]+eta*x[c];