Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the output of print(np.array([1,2,3]) * np.array([[1],[2],[3]]) )?
Home
Data Handling
What is the output of print(np.array([1,2,3]) * np.array([[1],[2],[3]]) )?
0
votes
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
What is the output of print(np.array([1,2,3]) * np.array([[1],[2],[3]]) )?
[[123] [2 4 6] [3 6 9]]
[14]
throws error
[[14]]
#print-output
DataHandling-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 28, 2020
by
SakshiSharma
[[123] [2 4 6] [3 6 9]]
Related questions
+1
vote
Q: What is the output of print(np.array([1,2,3]) * np.array([1,2,3]) )?
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
#output-array
DataHandling-questions-answers
+1
vote
Q: What is the output of print(np.array([1,2,3]) +1)?
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
#output-array
DataHandling-questions-answers
+1
vote
Q: What is the output of print(np.dot([1,2,3],[[1],[2],[3]])?
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
#output-print
DataHandling-questions-answers
0
votes
Q: What will the following lines of code return x <- matrix(1:18, 6, 3) apply(x, 2, sum)
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
+1
vote
Q: What is 2d indexing? define one ex : num = np.array([1,2,3],[4,5,6],[7,8,9])
asked
Jul 4, 2021
in
NumPy
by
sharadyadav1986
2d-indexing
+1
vote
Q: If layer_dims = [3,9,9,1], then the shape of weight vector for third layer is _____________.
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
#vector-weight
DataHandling-questions-answers
0
votes
Q: What is the output of print tuple[1:3] if tuple = ( 'abcd', 786 , 2.23, 'john', 70.2 )?
asked
May 16, 2020
by
AdilsonLima
#python
0
votes
Q: Find out the mean, median and standard deviation of this numpy array -> np.array([1,5,3,100,4,48])
asked
Feb 11, 2021
in
Python
by
SakshiSharma
#python
python-meanm
python-numpy-array
Python-questions-answers
+1
vote
Q: You are building a binary classifier for classifying output(y=1) vs. output(y=0). Which one of these activation functions would you recommend using for the output layer?
asked
Jan 28, 2020
in
Data Handling
by
rahuljain1
#binary-classifier
DataHandling-questions-answers
0
votes
Q: For a given matrix mat, how do you increment every element of the matrix by 3 and return a vector. (I) sapply(mat, function(x,y) sum(x)+y,y=3) (II) sapply(mat, function(x) sum(x)+3)
asked
May 27, 2019
in
Data Handling
by
tempuser
#datahandling
DataHandling-questions-answers
...