pymc-devs / pymc-devs/nutpie

Document/expose from_pyfunc?

Open
#146 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
207
Forks
28
Avg merge
7d 21h
Merged PRs (30d)
1

Description

Hi!

I think it is fairly common for a user to have a log density/its gradient outside of a PyMC or Stan model. I was helping one such user on the Stan forums recently and recommended they check out this package.

I was able to write what I think is a working example of how you can do this in nutpie, but

  1. It's not clear to me if this is really a "supported" functionality that won't be broken by future changes
  2. I had to basically reverse-engineer how to call the function, due the lack of documentation

Is this a use case you all are interested in supporting?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the current from_pyfunc entry point and the linked working example to determine how the function is intended to be called. Confirm whether this external log-density use case is supported, then document the supported workflow and its stability expectations, or clarify the limitation if it is not.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.