You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transposed_input=original_input.T# The MDS input data must be transposed , because we want summarize each feature by two values (as compard to regular dimensionality reduction each sample will be described by two values)
print(">>>> MDS dimensionality reduction is done")
33
+
34
+
eq_xy=two_d_eq(mds_xy,Nn)
35
+
Img=Assign_features_to_pixels(eq_xy,nn,verbose=1) # Img is the none-overlapping coordinates generated by MDS
36
+
37
+
#%% To be saved for hill climbing
38
+
Desc=Feat_DF.columns.tolist(); Desc=Desc[2:] # Drug descriptors name
39
+
Dist=pd.DataFrame(data=Euc_Dist, columns=Desc, index=Desc) # Generating a distance matrix which includes the Euclidean distance between each and every descriptor
40
+
data= (Desc, Dist, Img ) # Preparing the hill climbing inputs
41
+
42
+
withopen("...\\Init_MDS_Euc.pickle", 'wb') asf: # The hill climbing input is a pickle, therefore everything is saved as a pickle to be loaded by the hill climbing
0 commit comments