Skip to content

Commit

Permalink
changes in default parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Timoteo committed Jan 4, 2024
1 parent 8978054 commit 2e2bbb3
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion config/config.yaml.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ vertex_ai:
positive_label: "1"
clv_model_display_name: "clv-training-pl-model" # must match the model name defined in the training pipeline. for now it is {NAME_OF_PIPELINE}-model
clv_model_metric_name: "meanAbsoluteError" #'rootMeanSquaredError', 'meanAbsoluteError', 'meanAbsolutePercentageError', 'rSquared', 'rootMeanSquaredLogError'
clv_model_metric_threshold: 100
clv_model_metric_threshold: 400
number_of_clv_models_considered: 1
purchase_bigquery_source: "${project_id}.purchase_propensity.v_purchase_propensity_inference_30_30"
purchase_bigquery_destination_prefix: "${project_id}.customer_lifetime_value"
Expand Down
7 changes: 2 additions & 5 deletions sql/query/audience_segmentation_query_template.sqlx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,5 @@ SELECT user_pseudo_id AS client_id,
ltv_revenue_past_7_15_day AS ltv_revenue_past_7_15,
geo_region
FROM `{{source_table}}`
WHERE prediction IN (3,4,14)
AND geo_region IN ('California', 'New York', 'Washington')
AND visits_past_1_7_day = 1
ORDER BY ltv_revenue_past_7_15_day DESC
LIMIT 1000
WHERE prediction IS NOT NULL
LIMIT 10000
4 changes: 3 additions & 1 deletion sql/query/auto_audience_segmentation_query_template.sqlx
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ SELECT
user_id AS client_id,
EXTRACT(DATE FROM feature_timestamp AT TIME ZONE 'UTC') AS inference_date,
prediction as prediction
FROM `{{source_table}}`
FROM `{{source_table}}`
WHERE prediction IS NOT NULL
LIMIT 10000
2 changes: 1 addition & 1 deletion sql/query/cltv_query_template.sqlx
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ SELECT * EXCEPT(user_pseudo_id, processed_timestamp),
FROM `{{source_table}}`
WHERE prediction > 0
ORDER BY prediction DESC
LIMIT 1000
LIMIT 10000
3 changes: 1 addition & 2 deletions sql/query/purchase_propensity_query_template.sqlx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ SELECT * EXCEPT(user_pseudo_id, processed_timestamp, user_id),
EXTRACT(DATE FROM processed_timestamp AT TIME ZONE 'UTC') AS inference_date
FROM `{{source_table}}`
WHERE prediction = 'true'
AND prediction_prob > 0.5
ORDER BY prediction_prob DESC
LIMIT 1000
LIMIT 10000

0 comments on commit 2e2bbb3

Please sign in to comment.