List indexes must be integers or slices, not tuple solution

solution:

convert to tuple: dataSet=np.array(dataSet)

or dataSet can be converted to matrix: mat(dataSet), both

is feasible

Read More: