This repository has been archived by the owner. It is now read-only.
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #13 from radibnia77/main
Update lookalike application
- Loading branch information
Showing
35 changed files
with
1,376 additions
and
591 deletions.
There are no files selected for viewing
File renamed without changes.
BIN
-397 KB
Model/lookalike-model/doc/ssd-v2.pdf
Binary file not shown.
BIN
+421 KB
Model/lookalike-model/doc/ssd-v3.pdf
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,15 @@ | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
|
||
# http://www.apache.org/licenses/LICENSE-2.0.html | ||
|
||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,35 +1,31 @@ | ||
product_tag: 'lookalike' | ||
pipeline_tag: '08042021' | ||
product_tag: 'lookalike_application' | ||
pipeline_tag: '08172021_1000' | ||
score_generator: | ||
input: | ||
log_table : "lookalike_03042021_logs" | ||
did_table: "lookalike_03042021_trainready" | ||
log_table : "lookalike_08172021_1000_logs" | ||
did_table: "lookalike_08172021_1000_trainready" | ||
keywords_table: "din_ad_keywords_09172020" | ||
test_table: "lookalike_trainready_jimmy_test" | ||
significant_keywords_table: "lookalike_08172021_1000_keywords" | ||
din_model_tf_serving_url: "http://10.193.217.105:8506/v1/models/lookalike:predict" | ||
din_model_length: 20 | ||
seeduser_table : "lookalike_seeduser" | ||
number_of_seeduser: 1000 | ||
extend: 2000 | ||
alg: "euclidean" ##### currently just support "euclideand" and "dot" | ||
output: | ||
did_score_table: "{product_tag}_score_{pipeline_tag}" | ||
score_norm_table: "{product_tag}_score_norm_{pipeline_tag}" | ||
normalize: False | ||
|
||
score_table: "{product_tag}_{pipeline_tag}_score" | ||
normalize: False | ||
score_vector: | ||
keywords_table: "din_ad_keywords_09172020" | ||
score_norm_table: "{product_tag}_score_norm_{pipeline_tag}" | ||
score_vector_table: "{product_tag}_score_vector_{pipeline_tag}" | ||
score_table: "{product_tag}_{pipeline_tag}_score" | ||
score_vector_table: "{product_tag}_{pipeline_tag}_score_vector" | ||
did_bucket_size: 2 | ||
did_bucket_step: 2 | ||
score_vector_rebucketing: | ||
score_matrix_table: | ||
did_bucket_size: 2 | ||
did_bucket_step: 2 | ||
alpha_did_bucket_size: 20 #default=1000 | ||
score_vector_alpha_table: '{product_tag}_score_vector_alpha_{pipeline_tag}' | ||
score_matrix_table: '{product_tag}_{pipeline_tag}_score_matrix' | ||
top_n_similarity: | ||
did_bucket_step: 1 | ||
alpha_did_bucket_step: 10 | ||
did_bucket_size: 100 | ||
did_bucket_step: 100 | ||
cross_bucket_size: 1 # in production this should be as same as did_bucket_size | ||
top_n: 10 | ||
similarity_table: "{product_tag}_similarity_{pipeline_tag}" | ||
similarity_table: "{product_tag}_{pipeline_tag}_similarity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -1,16 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# Not used as part of pipeline | ||
spark-submit --master yarn --num-executors 20 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict seed_user_selector.py config.yml "29" | ||
spark-submit --master yarn --num-executors 10 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_generator.py config.yml | ||
|
||
spark-submit --master yarn --num-executors 20 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_generator.py config.yml | ||
spark-submit --master yarn --num-executors 10 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_vector_table.py config.yml | ||
|
||
spark-submit --master yarn --num-executors 20 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_vector_table.py config.yml | ||
spark-submit --master yarn --num-executors 10 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_matrix_table.py config.yml | ||
|
||
spark-submit --master yarn --num-executors 20 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict score_vector_rebucketing.py config.yml | ||
|
||
spark-submit --master yarn --num-executors 20 --executor-cores 5 --executor-memory 16G --driver-memory 16G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict top_n_similarity_table_generator.py config.yml | ||
|
||
# Not used as part of pipeline | ||
spark-submit ---master yarn --num-executors 20 --executor-cores 5 --executor-memory 8G --driver-memory 8G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict validation.py config.yml "29" | ||
spark-submit --master yarn --num-executors 10 --executor-cores 5 --executor-memory 16G --driver-memory 16G --conf spark.driver.maxResultSize=5g --conf spark.hadoop.hive.exec.dynamic.partition=true --conf spark.hadoop.hive.exec.dynamic.partition.mode=nonstrict top_n_similarity_table_generator.py config.yml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.