Skip to content

Commit

Permalink
Restructure Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Jul 9, 2023
1 parent c5870df commit 498ca4c
Show file tree
Hide file tree
Showing 17 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
test_that("creation_classifier_neural_net", {
classifier<-NULL
classifier<-TextEmbeddingClassifierNeuralNet$new(
name="movie_review_classifier",
label="Classifier for Estimating a Postive or Negative Rating of Movie Reviews",
Expand Down Expand Up @@ -510,3 +508,5 @@ classifier$reliability$test_metric_mean
devtools::document()
devtools::test()
devtools::document()
devtools::test_coverage()
devtools::build_site()
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Encoding: UTF-8
Depends:
quanteda,
foreach,
R (>= 2.10)
R (>= 3.5.0)
Suggests:
knitr,
rmarkdown,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ test_that("training_baseline_only", {
bpl_model_reset=FALSE,
epochs=2,
batch_size=32,
dir_checkpoint=testthat::test_path("test_data/tmp"),
dir_checkpoint=testthat::test_path("test_data/classifier"),
trace=FALSE,
keras_trace=0,
n_cores=1)
Expand Down Expand Up @@ -186,7 +186,7 @@ test_that("training_bsc_only", {
bpl_model_reset=FALSE,
epochs=2,
batch_size=32,
dir_checkpoint=testthat::test_path("test_data/tmp"),
dir_checkpoint=testthat::test_path("test_data/classifier"),
trace=FALSE,
keras_trace=0,
n_cores=1)
Expand Down Expand Up @@ -218,7 +218,7 @@ test_that("training_pbl_baseline", {
bpl_model_reset=FALSE,
epochs=2,
batch_size=32,
dir_checkpoint=testthat::test_path("test_data/tmp"),
dir_checkpoint=testthat::test_path("test_data/classifier"),
trace=FALSE,
keras_trace=0,
n_cores=1)
Expand Down Expand Up @@ -250,7 +250,7 @@ test_that("training_pbl_bsc", {
bpl_model_reset=FALSE,
epochs=2,
batch_size=32,
dir_checkpoint=testthat::test_path("test_data/tmp"),
dir_checkpoint=testthat::test_path("test_data/classifier"),
trace=FALSE,
keras_trace=0,
n_cores=1)
Expand Down
File renamed without changes.

0 comments on commit 498ca4c

Please sign in to comment.