Skip to content

求解释y[:, :-1], y[:, -1] = x[:, 1:], x[:, 0] #16

Description

@aRooooooba

y[:, :-1], y[:, -1] = x[:, 1:], x[:, 0]

根据我的理解,y是标签,x是特征?那么为什么y是x里所有列循环右移的结果呢?y的最后一列为什么是同一batch里x的第一列呢?不应该是下一个batch里x的第一列吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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