[R] MDS plot in Random Forest
bgunter.4567 at gmail.com
Thu May 25 18:37:11 CEST 2017
On Thu, May 25, 2017 at 8:15 AM, Elahe chalabi via R-help
<r-help at r-project.org> wrote:
> Hi all,
> I have applied Random Forest on my data and divided data into test and rain set to see the prediction results and it seems good cause the accuracy is 82%. Now my question is how can I plot MDS on predicted data? here is my code:
> spl=sample.split(df$PatientType,SplitRatio = 0.7)
> SecondTree=randomForest(PatientType~ cookie + curtains + get + mother + overflowing + sink +thats + window + stool + heres + drying + chair + okay +outside + standing + tipping + windows + blowing + breeze +counter + finger + onto + open + reaching + didnt + spilled +action + quiet + summer + mouth + puddle + good + wind +whos + sort,data = Train,nodesize=25,ntree=200,proximity=TRUE)
> PredictForest=predict(SecondTree,newdata =Test)
> Is MDS plot a way to find out if the classification are easy to be separated?
This seems to be largely a statistics question and, if so, is OT here
(this list is about R programming) I suggest you post this on
> thanks for any help.
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help