Skip to content

Commit

Permalink
tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
wincowgerDEV committed Aug 7, 2024
1 parent 3c7d1e4 commit 1d03c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/match_spec.R
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,12 @@ ai_classify.OpenSpecy <- function(x, library, fill = NULL, ...) {
proc <- transpose(filled$spectra, make.names = "wavenumber") |>
as.matrix()

pred <- predict.glmnet(library$model,
pred <- predict(library$model,
newx = proc,
min(library$model$lambda),
type = "response") |>
as.data.table()

names(pred)[1:3] <- c("x", "y", "z")
pred$x <- as.integer(pred$x)
pred$y <- as.integer(pred$y)
Expand Down

0 comments on commit 1d03c6a

Please sign in to comment.