Skip to content

[FR] Allow nps.loglik, nps.ar_loglik and nps.ar_predict to work with numpy arrays #7

Description

@tom-andersson

Currently, with a TensorFlow backend, I believe all the array inputs to nps.loglik, nps.ar_loglik and nps.ar_sample need to be TensorFlow tensors, e.g. tf.EagerTensors. It would be convenient if users with numpy arrays did not have to explicitly cast all their data to TensorFlow before calling these methods. This dtype behaviour is supported with model.__call__ functionality in neuralprocesses so my hunch is that this shouldn't be too tricky...

cc @stratisMarkou

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions