Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use this code segment to create 2 D synthetic data import numpy as np from sklearn.datasets import make _ blobs import matplotlib.pyplot as plt transformation

Use this code segment to create 2D synthetic data
import numpy as np
from sklearn.datasets import make_blobs
import matplotlib.pyplot as plt
transformation =[[0.60834549,-0.63667341],[[-0.40887718,0.85253229]]
D, y = make_blobs(n_samples=100, centers=1, random_state=42)
X = np.dot(D, transformation)
plt.show(plt.scatter(X[: ,0], X[: ,1]))
Using the data X which is not mean-centered, compute PCA. The recompute PCA after mean-centering X. For both cases, plot data along with the first eigenvector. Additionally, plot the two eigenvectors in a single figure and comment on it.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

Where those not participating, encouraged to participate?

Answered: 1 week ago

Question

Were all members comfortable brainstorming in front of each other?

Answered: 1 week ago

Question

4. What will the team agreement contain?

Answered: 1 week ago