summaryrefslogtreecommitdiff
path: root/lib/functions.py
AgeCommit message (Expand)AuthorLines
2022-03-28StaticFunction#to_dot: round to two decimal placesDaniel Friesel-1/+3
2022-03-23RMT, CART, XGB: Add #leaves to dref exportDaniel Friesel-12/+32
2022-03-18CART export: use .left/.right instead of .child.left/.child.rightDaniel Friesel-5/+2
2022-03-17LMT: Fix max_depth and number_of_leaves gettersDaniel Friesel-2/+4
2022-03-10LMT max_depth is brokenDaniel Friesel-0/+1
2022-03-03functions: blackDaniel Friesel-3/+5
2022-03-03CART: to_json: use .left / .right instead of ."<=" / .">"Daniel Friesel-2/+2
2022-03-02CARTFunction: Add to_json method (adapted from Lennart Kaiser)Daniel Friesel-0/+44
2022-02-24AnalyticFunction: catch dividy by zero errors and the likesDaniel Friesel-1/+7
2022-02-21add dtree graphviz/dot export via --export-dot / to_dot()Daniel Friesel-0/+23
2022-02-07SplitFunction: Use mean of children for predicting unknown valuesDaniel Friesel-4/+10
2022-01-28PTAModel: Add force_tree optionDaniel Friesel-1/+5
2022-01-27add LMT support via https://github.com/cerlymarco/linear-treeDaniel Friesel-0/+4
2022-01-26Add tree attribute export for XGBoostDaniel Friesel-8/+26
2022-01-21add depth / #nodes accessor to sklearn CART modelDaniel Friesel-0/+26
2022-01-14fix categorial-to-scalar handler for categorial values unseen during trainingDaniel Friesel-1/+1
2022-01-10SKLearnRegressionFunction: handle unseen params in categorial_to_index modeDaniel Friesel-2/+13
2022-01-06sklearn (CART, XGBoost): support mapping of categorial parameter values to sc...Daniel Friesel-2/+6
2022-01-06add preliminary xgboost supportDaniel Friesel-1/+1
2022-01-05store decision tree attributes of xv models in dataref exportDaniel Friesel-0/+7
2021-12-23model: add sklearn CART support (CART with scalar features)Daniel Friesel-0/+30
2021-11-22handle fit errors in cross validationDaniel Friesel-1/+17
2021-11-17export number of dtree nodes to datarefDaniel Friesel-0/+9
2021-11-16Add env var for safe functions; disable unsafe functions in that caseDaniel Friesel-1/+7
2021-11-03Set DFATOOL_FIT_LINEAR_ONLY=1 to omit non-linear functions from regressionDaniel Friesel-18/+22
2021-07-12ModelAttribute, SplitFunction: Fix from_json methodsDaniel Friesel-0/+2
2021-05-10analyze-config, to_json: use paramNames in exported json nodesDaniel Friesel-19/+21
2021-04-20proper kconfig-webconf exportDaniel Friesel-0/+22
2021-03-22EnergyTraceWithLogicAnalyzer: Use ExternalTimerSync as wellDaniel Friesel-0/+22
2021-03-22ExternalTimerSync: Add drift compensationDaniel Friesel-0/+1
2021-03-10hardcode arg_support_enabled = TrueDaniel Friesel-2/+1
2021-03-05promote sub-state models to a first-class modeling citizenDaniel Friesel-2/+56
2021-03-05JSON: {function,value}_error -> {function,value}ErrorDaniel Friesel-6/+6
2021-03-05eval: remove unused function_args argumentDaniel Friesel-8/+6
2021-03-05Restore workload.pyDaniel Friesel-2/+9
2021-03-04Restore --export-energymodelDaniel Friesel-23/+47
2021-03-04Modelfunction.from_json_maybe: Handle "old" data format with "static" keyDaniel Friesel-0/+10
2021-03-04PTA State/Transition: Use ModelFunction instead of PTAAttributeDaniel Friesel-9/+73
2021-03-03Remove ModelInfo; add info to ModelFunction insteadDaniel Friesel-38/+12
2021-03-02ModelAttribute + sub-classes: add to_json methodDaniel Friesel-0/+27
2021-03-02ModelAttribute: remove get_fitted(), use .model_function, .model_info insteadDaniel Friesel-20/+23
2021-03-02add hashbang to modulesDaniel Friesel-0/+1
2021-03-01get_fitted: also provide information on static (sub)modelsDaniel Friesel-0/+7
2021-02-26refactor param_info, show splits in analyze-archive outputDaniel Friesel-1/+76
2021-02-18refactor model generation from Analytic/PTAModel into ModelAttribute classDaniel Friesel-37/+20
2020-10-26blacken code; do not run lint check on external Python librariesDaniel Friesel-1/+1
2020-07-06move gplearn_to_function to functions moduleDaniel Friesel-0/+41
2020-07-03AnalyticFunction: Remove _ prefix from public attributesDaniel Friesel-10/+10
2020-07-03more consistent logging; use logger. instead of logging. where appropriateDaniel Friesel-4/+4
2020-07-02Use logging module for debug outputDaniel Friesel-18/+12