Skip to content

About code #1

@N-Kingsley

Description

@N-Kingsley

Hi, I want to ask some about your code.
In 176-188 lines in model.py, why to do this:
if start < self.window_size:
d = self.window_size - start
score[i, j, :d] = epsilon
if end > li + self.window_size:
d = (li + self.window_size) - end
score[i, j, d:] = epsilon

Shouldn’t it judge whether the selected window is beyond length?

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