Example matrices module¶
This is where we store standard examples of pairwise and supermatrices.
-
pyanp.exmats.
matrix_matching
(df=None, description=None, keywords=None, size=None, author=None)[source]¶ Finds matrices that match search criteria
Parameters: - df – The dataframe to search through, either SUPERMATRIX_EXS or PAIRWISE_EXS if None we use SUPERMATRIX_EXS
- description – A substring to search through description
- keywords – A list of keywords to find
- size – The size
- author – The contributing author, a substring search
Returns: List of indices of the matches in the given dataframe
-
pyanp.exmats.
pairwisematrix_ex
(name=None, description=None, keywords=None, size=None, author=None)[source]¶ Find the pairwise matrix example that matches the conditions
Parameters: - name – If not None, we find the single matrix with this name/id
- description – Substring search in description
- keywords – exact match keywords
- size – exact match size
- author – substring search author
Returns: A single numpy.array item if only one matches the constraint, or a panda.Series indexed by name or the resulting numpy.array s.
-
pyanp.exmats.
supermatrix_ex
(name=None, description=None, keywords=None, size=None, author=None)[source]¶ Find the supermatrix example that matches the conditions
Parameters: - name – If not None, we find the single matrix with this name/id
- description – Substring search in description
- keywords – exact match keywords
- size – exact match size
- author – substring search author
Returns: A single numpy.array item if only one matches the constraint, or a panda.Series indexed by name or the resulting numpy.array s.