Question: Project the data in the arrays X _ neg and X _ pos to the 2 - dimensional subspace spanned by u 1 and u

Project the data in the arrays X_neg and X_pos to the 2-dimensional subspace spanned by u1 and u2. Save the 2-dimensional datasets as X_neg_2D and X_pos_2D respectively.
Similarly, project the vectors Alice and Bob and save the resulting 2-dimensional vectors as Alice_2D and Bob_2D respectively.
given:
df = pd.read_csv('Lab11data.csv',header=None)
X_neg=df.loc[df[100]==0].drop(columns=100).values.transpose()
X_pos=df.loc[df[100]==1].drop(columns=100).values.transpose()
X_total=df.loc[df[100]>=0].drop(columns=100).values.transpose()
Alice=df.loc[df[100]<0].drop(columns=100).values[0,:]
Bob=df.loc[df[100]<0].drop(columns=100).values[1,:]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!