Skip to content

Replace pearson correlation function from SciPy with the one from Numpy #6

@RalfG

Description

@RalfG

Can this line:

corr = scipy.stats.pearsonr(y, pred_test)[0]

be replaced with:

np.corrcoef(y, pred_test)[0][1]

to avoid the SciPy dependency? As far as I can see, this is the only place SciPy is used.

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