Pass data to prediction function

Need to pass data to function. Loading data apparently does not make it
available to the functions that are also loaded like it does when
calling the functions from the command line.