Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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