Skip to content

Incorrect calculation of standard deviation in standardizing data #1129

@XingXiaoxiao

Description

@XingXiaoxiao

"xs_mat = (x_mat - np.mean(x_mat, axis=0)) / np.std(x_mat)\n",

np.std(x_mat) should be np.std(x_mat, axis = 0)

Image

The image of Figure 7.7 (b) is obvious wrong. The standard correlation of the variable represented by the horizontal axis is obviously not 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions