cvxgrp / GGS

Greedy Gaussian Segmentation
BSD 2-Clause "Simplified" License
96 stars 33 forks source link

Cross validation #5

Open lymadvisors opened 2 years ago

lymadvisors commented 2 years ago

When I run CV, this print out and I cannot find what is it

The above exception was the direct cause of the following exception:

TypeError Traceback (most recent call last)

in ----> 1 ggs.GGSCrossVal(data1, Kmax=25, lambList = [0.1], features = feats, verbose = False) ~/Nuevo/envs/ggs.py in GGSCrossVal(data, Kmax, lambList, features, verbose) 98 (7,data, Kmax, lamb, verbose, origSize, n, ordering), 99 (8,data, Kmax, lamb, verbose, origSize, n, ordering), --> 100 (9,data, Kmax, lamb, verbose, origSize, n, ordering)]) 101 102 #Accumulate results ~/anaconda3/envs/Nuevo_copia/lib/python3.7/multiprocessing/pool.py in map(self, func, iterable, chunksize) 266 in a list that is returned. 267 ''' --> 268 return self._map_async(func, iterable, mapstar, chunksize).get() 269 270 def starmap(self, func, iterable, chunksize=None): ~/anaconda3/envs/Nuevo_copia/lib/python3.7/multiprocessing/pool.py in get(self, timeout) 655 return self._value 656 else: --> 657 raise self._value 658 659 def _set(self, i, obj): TypeError: slice indices must be integers or None or have an __index__ method would you help me pls? great paper!
wallace426 commented 2 years ago

we have a same issue too T_T

943fansi commented 2 years ago

how to solve?