Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Mismatch between doc strings and code in log_prob function #1316

Closed
Labels
questionFurther information is requested
@rakaar

Description

@rakaar

Here in doc strings of log_prob function method -https://github.com/sbi-dev/sbi/blob/main/sbi/neural_nets/estimators/nflows_flow.py#L84C46-L84C81

Args:            input: Inputs to evaluate the log probability on. Of shape                `(sample_dim, batch_dim, *event_shape)`.            condition: Conditions of shape `(sample_dim, batch_dim, *event_shape)`.

Condition variable is expected to be of format (sample_dim, batch_dim, event_shape)
Dimension 0 - Sample
Dimension 1 - Batch
Dimension 2 - Event

But in function definition in this line -https://github.com/sbi-dev/sbi/blob/main/sbi/neural_nets/estimators/nflows_flow.py#L94

...condition_batch_dim = condition.shape[0]...

0th dimension is considered as batch dimension, while it should be 1st dimension as per the doc strings.

The mismatch might be lead to usage of incorrect tensor shapes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp