File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -383,18 +383,14 @@ def regression_target(r):
383
383
properties ["function" ] = "classification"
384
384
properties ["targetVariable" ] = classification_target (result )
385
385
386
- elif algorithm == "forest" :
387
- properties ["algorithm" ] = "Random forest"
386
+ elif algorithm in ("forest" , "gradboost" , "tree-based models" ):
388
387
389
- if is_classification (result ):
390
- properties ["function" ] = "classification"
391
- properties ["targetVariable" ] = classification_target (result )
388
+ if algorithm == "forest" :
389
+ properties ["algorithm" ] = "Random forest"
390
+ elif algorithm == "gradboost" :
391
+ properties ["algorithm" ] = "Gradient boosting"
392
392
else :
393
- properties ["function" ] = "prediction"
394
- properties ["targetVariable" ] = regression_target (result )
395
-
396
- elif algorithm == "gradboost" :
397
- properties ["algorithm" ] = "Gradient boosting"
393
+ properties ["algorithm" ] = "Tree-based model"
398
394
399
395
if is_classification (result ):
400
396
properties ["function" ] = "classification"
@@ -427,7 +423,7 @@ def regression_target(r):
427
423
428
424
else :
429
425
properties ["tool" ] = ""
430
-
426
+ # todo: warn
431
427
return properties
432
428
433
429
You can’t perform that action at this time.
0 commit comments