Skip to content

Commit

Permalink
quick look at bart
Browse files Browse the repository at this point in the history
  • Loading branch information
benhamner committed Feb 3, 2015
1 parent bf463a5 commit 9d7853e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/sensitivity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,17 @@ x1_slope = mean(res.data[:X1])/res.feature_ranges[:X1]

@test x1_slope<15.0
@test x1_slope>7.5

res = sensitivities(data, :Y, bart_options())

for fea=[:X1, :X2, :X3]
println(fea, ": ", mean(res.data[fea]), "\tSlope: ", mean(res.data[fea])/res.feature_ranges[fea])
end

#@test mean(res.data[:X1])>mean(res.data[:X2])
#@test mean(res.data[:X2])>mean(res.data[:X3])

x1_slope = mean(res.data[:X1])/res.feature_ranges[:X1]

#@test x1_slope<15.0
#@test x1_slope>7.5

0 comments on commit 9d7853e

Please sign in to comment.