simec
simec copied to clipboard
Similarity Encoder (SimEc) Neural Network Framework for learning low dimensional similarity preserving representations
Simple, relevant snippet of code ``` N_DIMS_EMBEDDING = 3 m_sim = np.array([(1.0, .7, .3), (.7, 1.0, .2), (.3, .2, 1.0)]) #define feature matrix - one-hot encoding m_feat = np.array([(1.0, 0.0,...
Simple, relevant snippet of code ``` N_DIMS_EMBEDDING = 3 m_sim = np.array([(1.0, .7, .3), (.7, 1.0, .2), (.3, .2, 1.0)]) #define feature matrix - one-hot encoding m_feat = np.array([(1.0, 0.0,...