Skip to content

Fixed the asarray bug. - #1

Closed
jseabold wants to merge 1 commit into
pymc-devs:masterfrom
jseabold:master
Closed

Fixed the asarray bug.#1
jseabold wants to merge 1 commit into
pymc-devs:masterfrom
jseabold:master

Conversation

@jseabold

Copy link
Copy Markdown
Contributor

Added np.asarray where it was just asarray in distributions.py.

http://code.google.com/p/pymc/issues/detail?id=337

@fonnesbeck

Copy link
Copy Markdown
Member

Got it, thanks.

bwengals referenced this pull request in bwengals/pymc Mar 18, 2017
logp function using cholesky factor
@pymc-devs pymc-devs deleted a comment from Ahmadhassan011 Mar 21, 2026
YichengYang-Ethan added a commit to YichengYang-Ethan/pymc that referenced this pull request Jun 11, 2026
Cuts the "user must pass total_size" burden (open question pymc-devs#1 for the design review):

- total_size="auto" resolves N from a source's .n_rows (cheap -- e.g. Parquet
  footer metadata via the new parquet_source) else one counting pass over a
  finite, re-readable source. One-shot / infinite sources still pass total_size
  explicitly (and are rejected with a clear error under "auto").
- a free sanity check using the existing rows_streamed counter: at the first
  epoch boundary, warn if total_size grossly disagrees with the rows actually
  streamed in one pass (catches a wrong-but-positive total_size).
- parquet_source(directory): a finite, re-readable source carrying .n_rows read
  from Parquet metadata (no data scan).

+7 tests; the existing 17 are unchanged and still pass.
YichengYang-Ethan added a commit to YichengYang-Ethan/pymc that referenced this pull request Jul 5, 2026
Cuts the "user must pass total_size" burden (open question pymc-devs#1 for the design review):

- total_size="auto" resolves N from a source's .n_rows (cheap -- e.g. Parquet
  footer metadata via the new parquet_source) else one counting pass over a
  finite, re-readable source. One-shot / infinite sources still pass total_size
  explicitly (and are rejected with a clear error under "auto").
- a free sanity check using the existing rows_streamed counter: at the first
  epoch boundary, warn if total_size grossly disagrees with the rows actually
  streamed in one pass (catches a wrong-but-positive total_size).
- parquet_source(directory): a finite, re-readable source carrying .n_rows read
  from Parquet metadata (no data scan).

+7 tests; the existing 17 are unchanged and still pass.
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants