subject

Load Fisher’s iris data set in Python from sklearn datasets using the command iris = datasets. load_iris(), then taking the transpose of the iris. data array. We will refer to the 4 x 150 dataset as irisInputs. 1. (10 points) Using a 2 x 2 subplot, plot a histogram for each row of irisInputs. Which dimension (row) has the greatest variance? 2. (5 points) Find and report (print) the mean of the dataset. This should be a 1x4 row with a mean value for each dimension in the dataset. 3. (10 points) Create a zero-meaned data matrix Z. You can do this by subtracting the mean column from every column of irisInputs. Hint: you can create a matrix that replicates the mean n times using np. tile(). Report your code only (do not output Z or the mean matrix). 4. (5 points) Calculate the covariance matrix of Z (You can do this by multiplying every element of Z by every other element of Z, then dividing by the number of samples – 1). C = np. matmul(Z, Z.T)/(n-1) Report the size of your covariance matrix C. Is the size correct?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 06:00
What role do chromosomes play in inheritance?
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
Which of the following terms refers to a collection of different types of software that share the goal of infiltrating a computer and making it do something? a- malware b- virus c- spyware d- trojan horse
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
You know the right answer?
Load Fisher’s iris data set in Python from sklearn datasets using the command iris = datasets. load_...
Questions
question
Mathematics, 18.03.2021 01:20
question
Physics, 18.03.2021 01:20
question
Computers and Technology, 18.03.2021 01:20
question
Biology, 18.03.2021 01:20
Questions on the website: 13722361