standardize to chi2
Project: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/commit/6dc23449 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/tree/6dc23449 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hivemall/diff/6dc23449 Branch: refs/heads/JIRA-22/pr-385 Commit: 6dc234490dc25f563b22e5659c378e6ebcf8dcdb Parents: 89c81aa Author: amaya <[email protected]> Authored: Wed Sep 21 11:41:59 2016 +0900 Committer: amaya <[email protected]> Committed: Wed Sep 21 13:35:23 2016 +0900 ---------------------------------------------------------------------- resources/ddl/define-all-as-permanent.hive | 4 ++-- resources/ddl/define-all.hive | 4 ++-- resources/ddl/define-all.spark | 4 ++-- resources/ddl/define-udfs.td.hql | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/6dc23449/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 adf6a14..b515b24 100644 --- a/resources/ddl/define-all-as-permanent.hive +++ b/resources/ddl/define-all-as-permanent.hive @@ -206,8 +206,8 @@ CREATE FUNCTION l2_normalize as 'hivemall.ftvec.scaling.L2NormalizationUDF' USIN -- selection functions -- ------------------------- -DROP FUNCTION IF EXISTS chi_square; -CREATE FUNCTION chi_square as 'hivemall.ftvec.selection.ChiSquareUDF' USING JAR '${hivemall_jar}'; +DROP FUNCTION IF EXISTS chi2; +CREATE FUNCTION chi2 as 'hivemall.ftvec.selection.ChiSquareUDF' USING JAR '${hivemall_jar}'; -------------------- -- misc functions -- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/6dc23449/resources/ddl/define-all.hive ---------------------------------------------------------------------- diff --git a/resources/ddl/define-all.hive b/resources/ddl/define-all.hive index 1586d2e..2124892 100644 --- a/resources/ddl/define-all.hive +++ b/resources/ddl/define-all.hive @@ -202,8 +202,8 @@ create temporary function l2_normalize as 'hivemall.ftvec.scaling.L2Normalizatio -- selection functions -- ------------------------- -drop temporary function chi_square; -create temporary function chi_square as 'hivemall.ftvec.selection.ChiSquareUDF'; +drop temporary function chi2; +create temporary function chi2 as 'hivemall.ftvec.selection.ChiSquareUDF'; ----------------------------------- -- Feature engineering functions -- http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/6dc23449/resources/ddl/define-all.spark ---------------------------------------------------------------------- diff --git a/resources/ddl/define-all.spark b/resources/ddl/define-all.spark index 50d560b..47f0ce5 100644 --- a/resources/ddl/define-all.spark +++ b/resources/ddl/define-all.spark @@ -187,8 +187,8 @@ sqlContext.sql("CREATE TEMPORARY FUNCTION normalize AS 'hivemall.ftvec.scaling.L * selection functions */ -sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS chi_square") -sqlContext.sql("CREATE TEMPORARY FUNCTION chi_square AS 'hivemall.ftvec.selection.ChiSquareUDF'") +sqlContext.sql("DROP TEMPORARY FUNCTION IF EXISTS chi2") +sqlContext.sql("CREATE TEMPORARY FUNCTION chi2 AS 'hivemall.ftvec.selection.ChiSquareUDF'") /** * misc functions http://git-wip-us.apache.org/repos/asf/incubator-hivemall/blob/6dc23449/resources/ddl/define-udfs.td.hql ---------------------------------------------------------------------- diff --git a/resources/ddl/define-udfs.td.hql b/resources/ddl/define-udfs.td.hql index 601eead..fd7dc1d 100644 --- a/resources/ddl/define-udfs.td.hql +++ b/resources/ddl/define-udfs.td.hql @@ -50,7 +50,7 @@ create temporary function powered_features as 'hivemall.ftvec.pairing.PoweredFea create temporary function rescale as 'hivemall.ftvec.scaling.RescaleUDF'; create temporary function zscore as 'hivemall.ftvec.scaling.ZScoreUDF'; create temporary function l2_normalize as 'hivemall.ftvec.scaling.L2NormalizationUDF'; -create temporary function chi_square as 'hivemall.ftvec.selection.ChiSquareUDF'; +create temporary function chi2 as 'hivemall.ftvec.selection.ChiSquareUDF'; create temporary function amplify as 'hivemall.ftvec.amplify.AmplifierUDTF'; create temporary function rand_amplify as 'hivemall.ftvec.amplify.RandomAmplifierUDTF'; create temporary function add_bias as 'hivemall.ftvec.AddBiasUDF';
