Repository: incubator-hivemall Updated Branches: refs/heads/master 0774727f0 -> 48b3a3bc7
Close #17: Make XGBoost related DDLs additional Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/48b3a3bc Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/48b3a3bc Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/48b3a3bc Branch: refs/heads/master Commit: 48b3a3bc712ab0fb8b42e849d4244c3e4c02849d Parents: 0774727 Author: myui <[email protected]> Authored: Tue Dec 6 22:18:33 2016 +0900 Committer: myui <[email protected]> Committed: Tue Dec 6 22:19:17 2016 +0900 ---------------------------------------------------------------------- resources/ddl/define-additional.hive | 18 ++++++++++++++++++ resources/ddl/define-all.hive | 19 ------------------- 2 files changed, 18 insertions(+), 19 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/48b3a3bc/resources/ddl/define-additional.hive ---------------------------------------------------------------------- diff --git a/resources/ddl/define-additional.hive b/resources/ddl/define-additional.hive index cd308ee..890edad 100644 --- a/resources/ddl/define-additional.hive +++ b/resources/ddl/define-additional.hive @@ -9,3 +9,21 @@ drop temporary function tokenize_ja; create temporary function tokenize_ja as 'hivemall.nlp.tokenizer.KuromojiUDF'; +------------------------------ +-- XGBoost related features -- +------------------------------ + +drop temporary function train_xgboost_regr; +create temporary function train_xgboost_regr as 'hivemall.xgboost.regression.XGBoostRegressionUDTF'; + +drop temporary function train_xgboost_classifier; +create temporary function train_xgboost_classifier as 'hivemall.xgboost.classification.XGBoostBinaryClassifierUDTF'; + +drop temporary function train_multiclass_xgboost_classifier; +create temporary function train_multiclass_xgboost_classifier as 'hivemall.xgboost.classification.XGBoostMulticlassClassifierUDTF'; + +drop temporary function xgboost_predict; +create temporary function xgboost_predict as 'hivemall.xgboost.tools.XGBoostPredictUDTF'; + +drop temporary function xgboost_multiclass_predict; +create temporary function xgboost_multiclass_predict as 'hivemall.xgboost.tools.XGBoostMulticlassPredictUDTF'; http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/48b3a3bc/resources/ddl/define-all.hive ---------------------------------------------------------------------- diff --git a/resources/ddl/define-all.hive b/resources/ddl/define-all.hive index f9d9be4..37d262a 100644 --- a/resources/ddl/define-all.hive +++ b/resources/ddl/define-all.hive @@ -577,25 +577,6 @@ create temporary function rf_ensemble as 'hivemall.smile.tools.RandomForestEnsem drop temporary function guess_attribute_types; create temporary function guess_attribute_types as 'hivemall.smile.tools.GuessAttributesUDF'; ------------------------------- --- XGBoost related features -- ------------------------------- - -drop temporary function train_xgboost_regr; -create temporary function train_xgboost_regr as 'hivemall.xgboost.regression.XGBoostRegressionUDTF'; - -drop temporary function train_xgboost_classifier; -create temporary function train_xgboost_classifier as 'hivemall.xgboost.classification.XGBoostBinaryClassifierUDTF'; - -drop temporary function train_multiclass_xgboost_classifier; -create temporary function train_multiclass_xgboost_classifier as 'hivemall.xgboost.classification.XGBoostMulticlassClassifierUDTF'; - -drop temporary function xgboost_predict; -create temporary function xgboost_predict as 'hivemall.xgboost.tools.XGBoostPredictUDTF'; - -drop temporary function xgboost_multiclass_predict; -create temporary function xgboost_multiclass_predict as 'hivemall.xgboost.tools.XGBoostMulticlassPredictUDTF'; - -------------------------------------------------------------------------------------------------- -- macros available from hive 0.12.0 -- see https://issues.apache.org/jira/browse/HIVE-2655
