How to use the ppscore.matrix function in ppscore

To help you get started, we’ve selected a few ppscore examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Ashton-Sidhu / aethos / aethos / analysis.py View on Github external
output_file : str, optional
            Output file name for image with extension (i.e. jpeg, png, etc.)

        Examples
        --------
        >>> data.predictive_power(data_labels=True)
        >>> data.predictive_power(col='col1')
        """

        import ppscore as pps
        import seaborn as sns

        if col:
            return pps.score(self.x_train, col, self.target)
        else:
            pp_df = pps.matrix(self.x_train)

            fig = self._viz.viz_correlation_matrix(
                pp_df,
                data_labels=data_labels,
                hide_mirror=hide_mirror,
                output_file=output_file,
                **kwargs,
            )

            return fig

ppscore

Python implementation of the Predictive Power Score (PPS)

MIT
Latest version published 2 years ago

Package Health Score

49 / 100
Full package analysis

Popular ppscore functions