Posts by Ronaldo Souza • 73 points
10 posts
-
0
votes1
answer1113
viewsQ: What is the Sklearn Standardscaler() function
The code below found in the link Classifying the Iris Data Set with Keras. And I’d like to understand the usefulness of Standardscaler(), says it is important for convergence? from sklearn.datasets…
-
1
votes1
answer213
viewsQ: What is Validation_data for in Keras fit() function
I’ve researched, but I couldn’t quite understand what the benefit of using validation_data is. And it’s only used for test samples? history = model.fit(X_train, Y_train, validation_data=(X_test,…
-
2
votes1
answer87
viewsQ: Consistency in Python results
Hello, I’m studying python code and I came across this line: np.random.seed(0) where it says consistency of results. I searched, but I still can’t understand the function of this command. Could…
-
0
votes2
answers79
viewsA: Command imread() and iteration
I’ve already solved using str() in a concatenation: for i in range(10): imagem = cv2.imread("imagens/"+str(i)+".jpg",0)
-
0
votes2
answers79
viewsQ: Command imread() and iteration
I’d like to make a loop with that command: imagem = cv2.imread("imagens/0.jpg",0) imagem = cv2.imread("imagens/1.jpg",0) imagem = cv2.imread("imagens/2.jpg",0) imagem = cv2.imread("imagens/3.jpg",0)…
-
0
votes1
answer546
viewsQ: Minimum value of each Python array column
import numpy as np X = np.random.rand(4,3) print("X: \n", X) XMin = np.zeros((1,3), dtype=np.float64) for j in range(3): print("X[{0}]: {1}".format(j,X[j])) minimo = np.amin(X[j]) print("minimo: ",…
-
0
votes1
answer1271
viewsQ: Saves float array in a txt file
After saving array in txt I want to be able to work with each of the values doing all the mathematical manipulations, but the way q I am saving I am not getting. Someone can help me. import numpy as…
-
0
votes1
answer63
viewsQ: Slice an array
I’m having trouble with x2 values when trying to slice to display in graph 2 does not appear anything and I can’t see where I am missing? import matplotlib.pyplot as plt import numpy as np xold =…
-
1
votes4
answers1713
viewsQ: Removing lines from a numpy array
For example I have array arr1 and I want to take a line range from that array as below, which function I can use? arr1: array([[ 1, 1, 1], [ 2, 2, 2], [ 3, 3, 3], [ 4, 4, 4], [ 5, 5, 5], [ 6, 6, 6],…
-
-5
votes1
answer3175
viewsQ: Number of rows and columns of a python matrix
How do I know the number of rows and columns of an array in the Python language?