Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Restructure ridge test for different dataset cases #33

@agoscinski

Description

@agoscinski

We have certain tests in TestRidge which only work with when n_features << n_samples, so we have two data sets we are testing on. At the moment this is not so visible in the code, because we overwrite the same parameter names. We could choose different names for the parameters or pack them in a dictionary with different names. We could also use pytest fixtures for this which has the additional benefit to reduce code repetition since we do almost in every test:

        # Create input values
        X_arr = self.rng.random([2, num_targets, num_properties])
        y_arr = self.rng.random([2, num_targets, 1])
        alpha_arr = np.ones([2, 1, num_properties])
        sw_arr = np.ones([2, num_targets, 1])

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions