Posts by Douglas • 21 points
5 posts
-
0
votes1
answer53
viewsQ: Error with np.random.suffle, result None
I am trying to mix a dataset with 3 columns and then divide it in half for use of one part for training and another for ML testing. I’m using the code: Dataset = np.append (col1, col2, axis = 1)…
-
1
votes1
answer121
viewsQ: Limit array size on screen
I am working with data from a table, but I used some commands like numpy.set_printoptions(threshold=sys.maxsize) to try to show every array without (...) omitting some items. But now I’m willing to…
-
0
votes1
answer54
viewsQ: Step error in np.arange
I have a problem in the arange that does not return accurate values. import numpy as np for i in np.arange(0.0, 5.0, 0.2 ): print(i) The result is: 0.0 0.2 0.4 0.6000000000000001 0.8 1.0…
-
0
votes1
answer49
viewsQ: Help with nested loop
yhat_tr is a column of 500 items. d_tr, tb with 500 elements, is another column, which I loaded separately from the first, are different sources, but with the same indexes. My code is this: TP, FP,…
-
0
votes1
answer531
viewsQ: '<' not supported between instances of 'str' and 'int' >>> Not an input problem!
The idea is to create a matrix of confusion. yhat_tr has a hundred values(float), positive and negative. d_tr is a column inside an excel file with the same amount of items as yhat_tr. d_tr values…