Can 'sgd' package perform linear regression task to build a model and predict a set of data using the built model?
If so, can you show me the way (code/script) to build the model and predict simple data? as an example, you can use this house_price data.
Last, can 'sgd' compute the prediction error using mean-square-error/root-mean-square-error? If > so, can you show me the way (code/script) to use it in above example?
my reply:
the main function sgd will estimate parameters for a chosen model such as linear regression. there are utility functions to handle the tasks post-estimation. for example, the predict function takes the output of sgd and test covariates/features as input; the output is the predicted response. (see ?predict.sgd)
however, we also have plots that can do MSE or classification error in predictions. (see ?plot) including the numerical output would be as simple as exposing the utility functions we wrote there; we chose not to in order to force the user to not rely on helper functions.
i think these could be made more explicit in the documentation.
from an e-mail exchange with @drizzersilverberg:
my reply:
i think these could be made more explicit in the documentation.