Open deltaoui opened 6 years ago
It looks like you are not feeding dba.compute_average() a list of numpy arrays, which it expects. Can you try reshaping your input into a list of arrays and try again?
Hi guys, the following code throws the same error as above:
dba_ = dba.DBA(max_iter=10, verbose=True)
tseries = [np.random.rand(10) for i in range(0,5)] # list of numpy arrays
dba_.compute_average(tseries)
Hello, I've installed the package and I am facing an error while executing a dba function "compute_average". This is my code:
The error I am getting is this:
When I look at the code I see that self.average = np.zeros(1) and is not two dimensional, so I don't understand why are we testing its shape[1]... you'll get the same error if you do this :
print(np.zeros(1).shape[1])