WorksheetsQuiz 11
Total questions: 10
Worksheet time: 6mins
write code to print print pi=3.14 with lib SciPy ????
(a)
I want to display all constants in the scipy ??
(a)
What is output :
import numpy as np
from scipy.sparse import csr_matrix
arr = np.array([0, 0, 0, 0, 0, 1, 1, 0, 2])
print(csr_matrix(arr))
(0, 5) 1
(0, 6) 1
(0, 8) 2 [1 1 2]3
(1, 2) 1
(2, 0) 1
(2, 2) 2True or False: Optimizers are a set of procedures defined in SciPy that either find the minimum value of a function, or the root of an equation?
True
False
When working with the csgraph modul, what is a correct method to find the shortest path in a graph from one element to another?
dijkstra()
bellmann()
ford()
what is output :
import numpy
speed = [99,86,87,88,111,86,103,87,94,78,77,85,86]
x = numpy.mean(speed) print(x)
y = numpy.median(speed) print(y)
z = stats.mode(speed) print(z)
90.0
87.0
86.0
89.76
88.0
86.0
89.76
87.0
86.0
89.76
87.0
111.0
Regression is
Supervised
un Supervised
rain forsment
all of the choices
Regression data is
continuous data
category data
when learning rate almost to zero
in gradient descent Equation ??
Maximum iterations
Minimum iterations
no change in iterations
from sklearn import liner model
write code to use liner regression ??
(a)
