Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

suppress non informative output in ml chapter #636

Merged
merged 3 commits into from
Nov 13, 2024
Merged

suppress non informative output in ml chapter #636

merged 3 commits into from
Nov 13, 2024

Conversation

Daenarys8
Copy link
Contributor

ping #635

@Daenarys8 Daenarys8 changed the title suppress useless warnings/messages in machine learning chapter suppress non informative output in ml chapter Nov 13, 2024
@TuomasBorman
Copy link
Contributor

We use ROC plots that are not ggplot. Can you switch to ggplot? Use for instance plotROC package. Remember to update DSCRIPTION file

@TuomasBorman
Copy link
Contributor

And try this

library(xgboost)
library(miaViz)

# Get feature importance
df <- xgb.importance(model = model$finalModel) |> as.data.frame()
rownames(df) <- df[["Feature"]]
df <- df[, c("Gain"), drop = FALSE]
df <- as.matrix(df)

# Create a plot
p <- plotLoadings(df, ncomponents = 1, n = 20, show.color = FALSE)
p

Daenarys8 and others added 2 commits November 13, 2024 10:27
Signed-off-by: Daena Rys <[email protected]>
@TuomasBorman
Copy link
Contributor

I removed unused ROCR from DESCRIPTION. Moreover, if you add packages, you have to bump the version. Otherwise the environment is not updated

@TuomasBorman TuomasBorman merged commit b071e72 into devel Nov 13, 2024
1 check passed
@TuomasBorman TuomasBorman deleted the ml branch November 13, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants