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 01:40
When the pc version of the spreadsheet program became available, the ibm pc quickly became the top-selling personal computer?
Answers: 3
question
Computers and Technology, 22.06.2019 12:30
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 15:30
Hey so i was just trying out some game hacks so i took a paste from online and built it in my visual studio and then suddenly my computer was working or clicking on stuff on its own am i hacked?
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
Engineering, 01.03.2021 17:20
question
Geography, 01.03.2021 17:20
question
Chemistry, 01.03.2021 17:20
question
History, 01.03.2021 17:20
Questions on the website: 13722360