@classmethod<EOL><INDENT>def _basis_polynomial_factory(cls, kind):<DEDENT>
valid_kind = cls._validate(kind)<EOL>basis_polynomial = getattr(np.polynomial, valid_kind)<EOL>return basis_polynomial<EOL>
Return a polynomial given some coefficients.