Skip to content

Commit

Permalink
fixed bug in olden default with output variable selection
Browse files Browse the repository at this point in the history
  • Loading branch information
fawda123 committed Jan 4, 2018
1 parent eb91ced commit d4d843d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: NeuralNetTools
Type: Package
Title: Visualization and Analysis Tools for Neural Networks
Version: 1.5.0.9000
Date: 2016-11-28
Date: 2018-01-04
Author: Marcus W. Beck [aut, cre]
Maintainer: Marcus W. Beck <[email protected]>
Description: Visualization and analysis tools to aid in the interpretation of
Expand Down
4 changes: 2 additions & 2 deletions R/NeuralNetTools_old.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@ olden.default <- function(mod_in, x_names, y_names, out_var = NULL, bar_plot = T
split_vals <- substr(names(inp_hid), 1, 8)
inp_hid <- split(inp_hid, split_vals)
inp_hid <- lapply(inp_hid, function(x) t(do.call('rbind', x))[-1, ])

# final layer weights for output
hid_out <- wts_in[[grep(paste('out', out_ind), names(wts_in))]][-1]
hid_out <- wts_in[[paste('out', out_ind)]][-1]

# matrix multiplication of output layer with connecting hidden layer
max_i <- length(inp_hid)
Expand Down

0 comments on commit d4d843d

Please sign in to comment.