matlab code for mean_squared_error
Mostrar comentarios más antiguos
oob_mse = mean_squared_error(y_train, predict(rf_classifier, X_train));
I need matlab code for mean_squared_error.
Please provide me.
Thanks.
Sanchit
4 comentarios
Sanchit
el 9 de Jul. de 2023
Walter Roberson
el 9 de Jul. de 2023
oob_mse = immse(y_train, predict(rf_classifier, X_train));
Sanchit
el 9 de Jul. de 2023
Walter Roberson
el 9 de Jul. de 2023
Respuesta aceptada
Más respuestas (1)
Prasannavenkatesh
el 9 de Jul. de 2023
0 votos
Hi Sanchit,
You can use the existing immse function in matlab (https://in.mathworks.com/help/images/ref/immse.html) for calculating the mean squared error. Hope this helps.
2 comentarios
Sanchit
el 9 de Jul. de 2023
Walter Roberson
el 9 de Jul. de 2023
oob_mse = immse(y_train, predict(rf_classifier, X_train));
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!