Skip to main content
Rollback to Revision 1
Source Link
gung - Reinstate Monica
  • 147.5k
  • 89
  • 406
  • 717

statsI am R-tool beginner.stackexchange I have a question regarding how to know the performance of a linear regression model by using validation data.com/posts/45053/edit-submit/63e166fe-1f37-4460-b072-33e2d67aa5ca My approach was

  1. Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.

  2. Use training data set to create a regression model

    attach(train)

    lreg=lm(category~date_time)

  3. Now do predictions for validation data set using model created with training data set

    p=predict(lreg,valid)

  4. Now check the accuracy by finding the values of ACC, AUC.

    mmetric(valid$category,p,"AUC")

    mmetric(valid$category,p,"ACC")

Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictions.

Is my approach correct ?

Thanks and regards!

stats.stackexchange.com/posts/45053/edit-submit/63e166fe-1f37-4460-b072-33e2d67aa5ca

I am R-tool beginner. I have a question regarding how to know the performance of a linear regression model by using validation data. My approach was

  1. Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.

  2. Use training data set to create a regression model

    attach(train)

    lreg=lm(category~date_time)

  3. Now do predictions for validation data set using model created with training data set

    p=predict(lreg,valid)

  4. Now check the accuracy by finding the values of ACC, AUC.

    mmetric(valid$category,p,"AUC")

    mmetric(valid$category,p,"ACC")

Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictions.

Is my approach correct ?

Thanks and regards!

deleted 867 characters in body
Source Link
user16603
user16603

I am R-tool beginner. I have a question regarding how to know the performance of a linear regression model by using validation datastats. My approach was

  1. Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.

  2. Use training data set to create a regression model

    attach(train)

    lreg=lm(category~date_time)

  3. Now do predictions for validation data set using model created with training data set

    p=predict(lreg,valid)

  4. Now check the accuracy by finding the values of ACC, AUC.

    mmetric(valid$category,p,"AUC")

    mmetric(valid$category,p,"ACC")

Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictionsstackexchange.

Is my approach correct ?

Thanks and regards!com/posts/45053/edit-submit/63e166fe-1f37-4460-b072-33e2d67aa5ca

I am R-tool beginner. I have a question regarding how to know the performance of a linear regression model by using validation data. My approach was

  1. Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.

  2. Use training data set to create a regression model

    attach(train)

    lreg=lm(category~date_time)

  3. Now do predictions for validation data set using model created with training data set

    p=predict(lreg,valid)

  4. Now check the accuracy by finding the values of ACC, AUC.

    mmetric(valid$category,p,"AUC")

    mmetric(valid$category,p,"ACC")

Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictions.

Is my approach correct ?

Thanks and regards!

stats.stackexchange.com/posts/45053/edit-submit/63e166fe-1f37-4460-b072-33e2d67aa5ca

Source Link
user16603
user16603

Checking the regression model's performance

I am R-tool beginner. I have a question regarding how to know the performance of a linear regression model by using validation data. My approach was

  1. Create training and validation data sets from original data set. "train" is name of my training data set and "valid" is name of my validation data set. "category" will be my target variable and "date_time" is my independent variable.

  2. Use training data set to create a regression model

    attach(train)

    lreg=lm(category~date_time)

  3. Now do predictions for validation data set using model created with training data set

    p=predict(lreg,valid)

  4. Now check the accuracy by finding the values of ACC, AUC.

    mmetric(valid$category,p,"AUC")

    mmetric(valid$category,p,"ACC")

Now if AUC and ACC have small values then it means that model created by training data set is not good in making predictions.

Is my approach correct ?

Thanks and regards!