Questions tagged [mse]

MSE stands for mean-squared error. It's a measurement of an empirical loss in certain mathematical models, especially regression models.

233 questions
-1
votes
1 answer

CV MSE almost equals Test MSE, but Train MSE = 0, is it an overfitting problem?

I am training a decisoin tree model and i got the (see picture) as results, so basically i am a bit confused about the result. Given it's a school project, so i am training a model based on 969 lines only and 18 features, and without any feature…
-1
votes
1 answer

Is MSE like Recall?

In one article the classification with using SVM, for each class the MSE(mean square error) is expressed. I'm using confusion matrix. Is that MSE like recall for compare the result of each class?
narges66
  • 39
  • 7
-1
votes
1 answer

Multivariable linear regression doesn't get more accurate with higher polynomial degree?

I'm computing the MSE on the training set so I expect the MSE to decrease when using higher polynoms. However, from degree 4 to 5, the MSE increases significantly. What could be the cause? import pandas as pd, numpy as np from sklearn.preprocessing…
pasei
  • 94
  • 1
  • 10
-1
votes
1 answer

Does the order of terms in MSE matter in case of differentiation?

Mean squared error is a popular cost function used in machine learning: (1/n) * sum(y - pred)**2 Basically the order of subtraction terms doesn't matter as the whole expression is squared. But if we differentiate this function, it will no longer be…
-1
votes
3 answers

calculate MSE for training set that's missing the response variable

I have a training set with a response variable ViolentCrimesPerPop, and I purposely fit a large regression tree with control control1 <- rpart.control(minsplit=2, cp=1e-8, xval=20) train_control <- rpart(ViolentCrimesPerPop ~ ., data=train,…
PiCubed
  • 375
  • 2
  • 5
  • 11
-2
votes
1 answer

How can I deal with Indentation Error: unexpected indent?

I am trying to Write the MSE function from Matlab to Python but I am getting this error: for i in range(len(RuleBase)): ^ IndentationError: unexpected indent This is my python code: def Mse(RuleBase,x1,x2): temp=np.zeros(shape =…
Narges Se
  • 35
  • 7
-3
votes
1 answer

MNIST: gets lower accuracy than the results I see on the internet

I am trying to train a fully connected neural network to classify hand-written number using MNIST datasets. The neural network is implemented by me in C++. This is part of my course project. However, I find the training is somehow weird. I do not…
Ronghao
  • 1
  • 2
-5
votes
1 answer

How to replicate the predict function from R in Excel given I have access to "summary" output from R

I have run a 3rd order polynomial regression in R and have run the "summary" function, but I need to be able to replicate the "predict" function in Excel. I have my current working code below. Thank you for your help! #Have access to this…
1 2 3
15
16