Sadness24_7
Sadness24_7 OP t1_ixpuynf wrote
Reply to comment by IshanDandekar in Keras metrics and losses by Sadness24_7
I would rather use my own rmse this one does some weighting and it just does not make sense to me.
Sadness24_7 OP t1_ixpuuzn wrote
Reply to comment by pornthrowaway42069l in Keras metrics and losses by Sadness24_7
I dont care about the loss, i care about the rmse metric. When i calculate it for each output it just does not add out to what the training method says. 🫤
Sadness24_7 OP t1_ist98vt wrote
Reply to comment by thePedrix in Minimizing the number of inputs by Sadness24_7
oh, this looks promising, i'll give it a try and see what comes up.
Sadness24_7 OP t1_ist8qzo wrote
Reply to comment by Prestigious_Boat_386 in Minimizing the number of inputs by Sadness24_7
I see, i was not sure about that since you wrote it twice... and also you phrased the reply into two paragraphs.
Sadness24_7 OP t1_isszoev wrote
Reply to comment by thePedrix in Minimizing the number of inputs by Sadness24_7
But what am i looking for tho. i've been looking at loadings matrix for couple minutes but cant really figure out the connections. Lets say i want to select 7 feature out of 38, so i performa pca for 7 components and im looking at loading matrix (correlation between 38 feature's and 7 pca's . do i just look at the component with best correlation with the input features and the 7 highest correlation with that pca component ?
Sadness24_7 OP t1_isstumy wrote
Reply to comment by Prestigious_Boat_386 in Minimizing the number of inputs by Sadness24_7
whats PDA ?
Sadness24_7 OP t1_issrioz wrote
Reply to comment by _triszt in Minimizing the number of inputs by Sadness24_7
I dont think PCA will help me, i need to reduce the number of feature in order to simplify the system im working with. those removed feature will no longer be aquired and thus i cant retrain the model in the future. i need to somehow pick 2-10 features out of 38 for which i can finetune the model and deploy it. only those selected features will be logged for future.
Sadness24_7 OP t1_iy8qtwh wrote
Reply to comment by pornthrowaway42069l in Keras metrics and losses by Sadness24_7
i did write my own metric based on examples from keras. But since i have to do it using callbacks and their backend, it works only on one output at a time meaning both predictions and true values are vector.
What i meant by that is that when i call model.fit(....) i tells me at each epoch something like this:
Epoch 1/500
63/63 [==============================] - 1s 6ms/step - loss: 4171.9570 - root_mean_squared_error: 42.4592 - val_loss: 2544.3647 - val_root_mean_squared_error: 44.4907
​
where root_mean_squared_error is a custom metric as follow.
def root_mean_squared_error(y_true, y_pred):
return K.sqrt(K.mean(K.square(y_pred - y_true)))
which when called directly wants data in a for of vector, meaning this function has to be called for each output separatly.
In order to better optimize my model i need to understand how the losses/metrics are calculated so it results in one number (as shown above during training)