Repository: incubator-hivemall Updated Branches: refs/heads/master 273851f39 -> 391e7f1c6
http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/391e7f1c/resources/ddl/define-all-as-permanent.hive ---------------------------------------------------------------------- diff --git a/resources/ddl/define-all-as-permanent.hive b/resources/ddl/define-all-as-permanent.hive index 72835b1..fe7b6f7 100644 --- a/resources/ddl/define-all-as-permanent.hive +++ b/resources/ddl/define-all-as-permanent.hive @@ -43,6 +43,12 @@ CREATE FUNCTION train_scw2 as 'hivemall.classifier.SoftConfideceWeightedUDTF$SCW DROP FUNCTION IF EXISTS train_adagrad_rda; CREATE FUNCTION train_adagrad_rda as 'hivemall.classifier.AdaGradRDAUDTF' USING JAR '${hivemall_jar}'; +DROP FUNCTION IF EXISTS train_kpa; +CREATE FUNCTION train_kpa as 'hivemall.classifier.KernelExpansionPassiveAggressiveUDTF' USING JAR '${hivemall_jar}'; + +DROP FUNCTION IF EXISTS kpa_predict; +CREATE FUNCTION kpa_predict as 'hivemall.classifier.KPAPredictUDAF' USING JAR '${hivemall_jar}'; + -------------------------------- -- Multiclass classification -- -------------------------------- @@ -186,6 +192,9 @@ CREATE FUNCTION polynomial_features as 'hivemall.ftvec.pairing.PolynomialFeature DROP FUNCTION IF EXISTS powered_features; CREATE FUNCTION powered_features as 'hivemall.ftvec.pairing.PoweredFeaturesUDF' USING JAR '${hivemall_jar}'; +DROP FUNCTION IF EXISTS feature_pairs; +CREATE FUNCTION feature_pairs as 'hivemall.ftvec.pairing.FeaturePairsUDTF' USING JAR '${hivemall_jar}'; + ----------------------- -- scaling functions -- ----------------------- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/391e7f1c/resources/ddl/define-all.hive ---------------------------------------------------------------------- diff --git a/resources/ddl/define-all.hive b/resources/ddl/define-all.hive index 351303e..b0a0226 100644 --- a/resources/ddl/define-all.hive +++ b/resources/ddl/define-all.hive @@ -39,6 +39,12 @@ create temporary function train_scw2 as 'hivemall.classifier.SoftConfideceWeight drop temporary function train_adagrad_rda; create temporary function train_adagrad_rda as 'hivemall.classifier.AdaGradRDAUDTF'; +drop temporary function train_kpa; +create temporary function train_kpa as 'hivemall.classifier.KernelExpansionPassiveAggressiveUDTF'; + +drop temporary function kpa_predict; +create temporary function kpa_predict as 'hivemall.classifier.KPAPredictUDAF'; + -------------------------------- -- Multiclass classification -- -------------------------------- @@ -182,6 +188,9 @@ create temporary function polynomial_features as 'hivemall.ftvec.pairing.Polynom drop temporary function powered_features; create temporary function powered_features as 'hivemall.ftvec.pairing.PoweredFeaturesUDF'; +drop temporary function feature_pairs; +create temporary function feature_pairs as 'hivemall.ftvec.pairing.FeaturePairsUDTF'; + ----------------------- -- scaling functions -- -----------------------