MCPcopy Create free account
hub / github.com/Derive-Risk/pyfair / _get_tree

Method _get_tree

pyfair/report/base_report.py:227–232  ·  view source on GitHub ↗

Create base64 image string using FairTreeGraph

(self, model)

Source from the content-addressed store, hash-verified

225 return metadata
226
227 def _get_tree(self, model):
228 """Create base64 image string using FairTreeGraph"""
229 ftg = FairTreeGraph(model, self._format_strings)
230 fig, ax = ftg.generate_image()
231 img_tag = self._fig_to_img_tag(fig)
232 return img_tag
233
234 def _get_distribution(self, model_or_models):
235 """Create base64 image string using FairDistributionCurve"""

Callers 2

test_get_treeMethod · 0.80
_construct_outputMethod · 0.80

Calls 3

generate_imageMethod · 0.95
_fig_to_img_tagMethod · 0.95
FairTreeGraphClass · 0.85

Tested by 1

test_get_treeMethod · 0.64