You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to create an HTML file by rendering a Quatro file with the following code in Posit Cloud:
---
title: "TEST ModelStudio"
format: html
---
## modelStudio in R
'''{r}
library("DALEX")
library("ranger")
library("modelStudio")
# fit a model
model <- ranger(score ~., data = happiness_train)
# create an explainer for the model
explainer <- explain(model,
data = happiness_test,
y = happiness_test$score,
label = "Random Forest",
verbose = FALSE)
# make a studio for the model
modelStudio(explainer)
'''
But in Quarto, a file is created in which modelStudio generates an applet, which is partially visible only in the upper left part.
How can we make it possible to demonstrate the entire applet in its entirety?
The text was updated successfully, but these errors were encountered:
Hi @arodionoff, you need to play around with document margins, e.g.
---
title: "TEST ModelStudio"
format:
html:
grid:
body-width: 1250px
---
<style type="text/css">
#mywidget {
position: relative !important;
width: 1250px !important;
height: 900px !important;
}
</style>
## modelStudio in R
``{r}
library("DALEX")
library("ranger")
library("modelStudio")
# fit a model
model <- ranger(score ~., data = happiness_train)
# create an explainer for the model
explainer <- explain(model,
data = happiness_test,
y = happiness_test$score,
label = "Random Forest",
verbose = FALSE)
# make a studio for the model
modelStudio(explainer,
widget_id = "mywidget")
``
## Test
test
I'm trying to create an HTML file by rendering a Quatro file with the following code in Posit Cloud:
But in Quarto, a file is created in which modelStudio generates an applet, which is partially visible only in the upper left part.
How can we make it possible to demonstrate the entire applet in its entirety?
The text was updated successfully, but these errors were encountered: