L1NormGenomicSelectionProblemMixin#

class pybrops.breed.prot.sel.prob.L1NormGenomicSelectionProblem.L1NormGenomicSelectionProblemMixin[source]#

Bases: object

Helper class containing common properties for L1GS problems.

Methods

from_numpy

type mkrwt:

ndarray

Attributes

V

Cholesky decomposition of the kinship matrix.

nlatent

Number of latent variables.

property V: ndarray#

Cholesky decomposition of the kinship matrix.

abstract classmethod from_numpy(mkrwt, tafreq, tfreq, ndecn, decn_space, decn_space_lower, decn_space_upper, nobj, obj_wt=None, obj_trans=None, obj_trans_kwargs=None, nineqcv=None, ineqcv_wt=None, ineqcv_trans=None, ineqcv_trans_kwargs=None, neqcv=None, eqcv_wt=None, eqcv_trans=None, eqcv_trans_kwargs=None, **kwargs)[source]#
Parameters:
  • mkrwt (numpy.ndarray) –

    A marker weight array of shape (p,t).

    Where:

    • p is the number of markers.

    • t is the number of traits.

  • tafreq (numpy.ndarray) –

    Taxa allele frequency array of shape (n,p).

    Where:

    • n is the number of taxa.

    • p is the number of markers.

  • tfreq (numpy.ndarray) –

    Target allele frequency array of shape (p,t).

    Where:

    • p is the number of markers.

    • t is the number of traits.

Return type:

L1NormGenomicSelectionProblemMixin

property nlatent: Integral#

Number of latent variables.