MSE stands for mean-squared error. It's a measurement of an empirical loss in certain mathematical models, especially regression models.
Questions tagged [mse]
233 questions
0
votes
1 answer
How can I calculated summary stats based on weighted data in R? (AUC, MSE, MAE, R2, etc.)
I'm creating a Shiny dashboard app. One of the features on this app is a stat table that shows the MSE, MAE and either AUC or R2 depending on which is relevant.
These stats are currently just based on the data, treating each row equally. However,…

Wolff
- 1,051
- 3
- 18
- 31
0
votes
1 answer
How can I measure the MSE error with Knn model?
Assume that I have a dataframe as follows :
a b Class
0 1 2 yes
1 4 5 yes
2 7 8 No
3 10 5 No
4 4 5 No
5 1 2 No
6 8 1 yes
7 4 5 yes
8 7 8 No
and that I would like to predict the class of the following test_sample :
…

Andrea
- 113
- 1
- 7
0
votes
1 answer
Why i've got a three different MSE values
I wrote an mlp and want start to tune it to fit a best results. But i've stucked with several different MSE.
from pandas import read_csv
from keras.models import Sequential
from keras.layers import Dense
from keras.wrappers.scikit_learn import…

navy
- 159
- 9
0
votes
1 answer
R giving back error: subscript out of bounds
I have been working my way through R ISLR College dataset and I'm wanting to perform the best subset selection on the training set, and plot the training set MSE associated with the best model of each…

ross mike
- 3
- 2
0
votes
0 answers
Value of PSNR if MSE = 0
What should be the value of PSNR(Peak Signal to Noise Ratio) be when MSE(Mean Square Error) is 0 ? I am getting error when rmse = 0. So , what changes could be done to improve and get the psnr value even when rmse is zero ?
Following is my code for…

Bansari Vadgama
- 1
- 2
0
votes
1 answer
Unrealistic Mean Squared Error with statsmodel ARIMA
Foreword: I have no idea what I'm doing.
For a uni stats class we have to do some timeseries forecasting in python.
I've basically followed this tutorial but used my data:…

TOBi
- 35
- 4
0
votes
1 answer
Compute the mean square error at the end of each iteration and plot the same in matlab
i have a dataset to classify, using perceptron learning rule . i've calculated the weight matrix but don't know how to plot MSE .{1 = [
1
1
],1 = [
0
0
]}, {2 = [
1
2
],2 = [
0
0
]}, {3 = [
2
−1
],3 = [
0
1
]}, {4 = [
2
0
],4 = [
0
1
]},
{5 =…

Deepak Chekuri
- 1
- 1
0
votes
1 answer
CV results of Desicion Tree test mse 0.0000578 and train mse 0
I'm working on a small data set (25 rows, 4 features). I trained the decision tree algorithm and used K-fold cross-validation (cv=3). Then, I obtained r2 0.97 for this reason, I suspected overfitting and looked at the test and train MSE values. I…

miracle
- 1
0
votes
2 answers
Is there a better way to calculate loss for multi-task DNN modeling?
Suppose there are over one thousand tasks in the multi-task deep learning. More than a thousand columns of labels. Each task (column) has a specific weight in this case. It would take such long time to loop over each task to calculate the sum of…

user7725010
- 90
- 8
0
votes
1 answer
Poisson Model (Binary Response) Evaluation Metrics
I am unsure about the correct evaluation metrics to use in my model, and would appreciate your advice.
Model Info:
I fitted a GLM Poisson model in Python on a dataset, where each row of data has a different exposure between 0 to 1 and the response…

OceanBBlue
- 1
- 2
0
votes
1 answer
MSE, is it correct to use evaluate with unscaled data in Tensorflow Keras?
Suppose you have numerical time series data and you managed to split it like:
X_train, y_train, X_val, y_val, X_test, y_test.
and you properly scaled everything ending up with:
X_train_scaled, y_train_scaled, X_val_scaled,…

Gabriel
- 3,737
- 11
- 30
- 48
0
votes
3 answers
Calculated Mean Squared Error with dataframe of residuals with grouping in dplyr
So I have a data frame of residuals as such:
ID A B C D
1 .2 23.3 2.3 4.32
2 2.3 2.4 0 1
3 23.3 1.3 23 3.44
2 34.2 33 56.5 76.5
1 0.3 76.4 3.2 78.5
*There are about 200 variables
How would I calculate Mean…

John Thomas
- 1,075
- 9
- 32
0
votes
1 answer
how to compute the MSE?
I have to compute the MSE of the value "Td" without packaging. I used a function but I have always the same MSE (see MSE_mod1) for each row (it shouldn't be the same MSE between lines, right?). Do you know why?
Could you help me? :)
Here is my…

Hugo Evrard
- 15
- 5
0
votes
1 answer
Questions about feature selection and data engineering when using H2O autoencoder for anomaly detection
I am using H2O autoencoder in R for anomaly detection. I don’t have a training dataset, so I am using the data.hex to train the model, and then the same data.hex to calculate the reconstruction errors. The rows in data.hex with the largest…

Fanwei Zeng
- 55
- 6
0
votes
1 answer
Fit quadratic function to data using MSE
So my idea is (borrowed from neural network folks) that if I have data set D, I can fit a quadratic curve to it by first calculating the derivative of the error with respect to the parameters (a, b, and c), and then do a small update that minimizes…

Nyxeria
- 363
- 1
- 4
- 12