summaryrefslogtreecommitdiff
path: root/lib/cli.py
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-02-20 07:23:36 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-02-20 07:23:36 +0100
commitddf6e00b3b16a07b994107a79450909f43588445 (patch)
treebeb8d4cb2b9de4a20e427fe30caa177599710cb8 /lib/cli.py
parent8290d9ee20b5d2305c5fd519bf534029f36c30d9 (diff)
Re-add (very very basic, for now) Symbolic Regression support
Diffstat (limited to 'lib/cli.py')
-rw-r--r--lib/cli.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cli.py b/lib/cli.py
index 81fd9ae..499e959 100644
--- a/lib/cli.py
+++ b/lib/cli.py
@@ -124,6 +124,10 @@ def print_staticinfo(prefix, info):
print(f"{prefix}: {info.value}")
+def print_symreginfo(prefix, info):
+ print(f"{prefix}: {str(info.regressor)}")
+
+
def print_cartinfo(prefix, info):
_print_cartinfo(prefix, info.to_json())
@@ -203,6 +207,8 @@ def print_model(prefix, info):
print_lmtinfo(prefix, info)
elif type(info) is df.XGBoostFunction:
print_xgbinfo(prefix, info)
+ elif type(info) is df.SymbolicRegressionFunction:
+ print_symreginfo(prefix, info)
else:
print(f"{prefix}: {type(info)} UNIMPLEMENTED")