Skip to content

Ambiguity in calculating log likelihood #14

@hojjatkarami

Description

@hojjatkarami

Hi,
I have the following issue regarding calculating LL in Utils.py
in line 49 inside the function "compute_integral_unbiased":

temp_hid = torch.sum(temp_hid * type_mask[:, 1:, :], dim=2, keepdim=True)

you have only considered the occurred events for calculating integral while according to the formula we should compute the integral of each event type.
I would expect the output dimension of this function to be [Batch_size, Length, Num_types].
then we should sum over all num_types instead of reducing it to only occurred events.

I believe that this underestimation of this integral has led to your high overall LL compared to other studies.

looking forward to your clarifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions