Open Prashant-mahajan opened 5 years ago
@Prashant-mahajan how would you get something like 'emotion' 'happiness' for the linear model?
y_emotion_data = np.array([x['faceAttributes']['emotion'] == 'happiness' for x in labels_data])?
Hi @ak9250, apologies for late reply. To get the numpy array of 'happiness' feature you can use
y_surprise_data = np.array([x['faceAttributes']['emotion']['surprise'] for x in labels_data])
.
@Puzer I'm stuck here, any hint would be appreciated.
Hi, I modified the non-linear model inputs to get different feature directions. How can I get numpy array of those feature vectors for non-linear model? For linear model, I realized it can be obtain by making minor changes here:
Thank you!