diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/functions.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/functions.py b/lib/functions.py index 978a993..3c2b424 100644 --- a/lib/functions.py +++ b/lib/functions.py @@ -277,7 +277,9 @@ class StaticFunction(ModelFunction): return ret def to_dot(self, pydot, graph, feature_names, parent=None): - graph.add_node(pydot.Node(str(id(self)), label=self.value, shape="rectangle")) + graph.add_node( + pydot.Node(str(id(self)), label=f"{self.value:.2f}", shape="rectangle") + ) @classmethod def from_json(cls, data): |