report estimated model properties for a given ImageArray

model_probs(model, iarr, roundto = 3)

Arguments

iarr

ImageArray instance

fitted

islr_cnn model instance

Value

vector of fitted class probabilities

Examples

litsh = make_shape_iarr(nimages=3)
preview(litsh)

#> NULL
smod = load_shape_cnn()
model_probs(smod, litsh)
#>   circle quad triangle
#> 1      1    0        0
#> 2      1    0        0
#> 3      1    0        0
#> 4      0    0        1
#> 5      0    0        1
#> 6      0    0        1
#> 7      0    1        0
#> 8      0    1        0
#> 9      0    1        0