Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KauriGiant committed Dec 5, 2024
2 parents c55934a + d54ad91 commit 73fe4e9
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.

name: R

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

permissions:
contents: read

jobs:
build:
runs-on: macos-latest
strategy:
matrix:
r-version: ['3.6.3', '4.1.1']

steps:
- uses: actions/checkout@v4
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}
4 changes: 3 additions & 1 deletion wrapper.xgb.cv.logistic.r
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#<<<<<<< HEAD
library(caret)
library(ggplot2)
library(pdp)
Expand Down Expand Up @@ -106,4 +107,5 @@ Key = "Interaction"
if(DoInteraction == TRUE)
OutList[[Key]] = Interaction
return(c(OutList))
}
}

1 change: 1 addition & 0 deletions xgb.cv.fit.boxplot.r
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ xgbm.cv.fit.boxplot.logistic = function(pred,###$pred from xgb.cv output
xlab = paste0("Observed success"),ylab = paste0("Fitted probability"))
dev.off()
}

0 comments on commit 73fe4e9

Please sign in to comment.