I am pretty new to the work with R and ML in general. During programming my first LDA on 'real' data and not just a trainings set with the mlr3-package, I've successfully got a prediction output which looks well. mlr3viz provides the plotting of these results in a stacked barplot. But I also would like to see my trained learner's plot. So how the different LD (especially 1/2) are seperatiing my data. As mlr3 works a bit differently than the MASS package (I guess), it is not possible to plot the data as in other google searches provided. May anybody help me on this topic?
Thank you all in advance :)!
...
#Learner
learner.lda <- lrn("classif.lda", predict.prior = c(1/7, 1/7, 1/7, 1/7, 1/7, 1/7, 1/7))
learner.lda$predict_type="prob"
#Train Learner
learner.lda$train(task_X,row_ids=train_set)
#Prediction of the test_set
prediction <- learner.lda$predict(task_X,row_ids=test_set)
autoplot(prediction, type="stacked")