Re: [scikit-learn] using numpy repeat

2019-10-14 Thread Nicolas Hug
You're looking for np.tile. It's one of the first google results and it's also linked in the doc of np.repeat. This mailing-list is for questions related to scikit-learn. I think your question would be more appropriate for e.g. stack-overflow. On 10/14/19 1:55 PM, Glenn Schultz via scikit-le

[scikit-learn] using numpy repeat

2019-10-14 Thread Glenn Schultz via scikit-learn
I am tying to repeat an array 3 times using the following numpy.repeat(numpy.linspace(-.5, 3, 8), 3) axis = 0)   although this repeats each element 3 times sequentially. I trying to repeat the array  -.5 -0 .5 ... -5 -0 .5 any suggestions to accomplish this are appreciated.   I am relatively s