How to use ppscore - 2 common examples

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
github Ashton-Sidhu / aethos / aethos / analysis.py View on Github external
Whether to display the mirroring half of the correlation plot, by default False

        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

55 / 100
Full package analysis

Popular ppscore functions