generated from rudderlabs/profiles-shopify-features
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version auto upgrade #18
Open
subham-71
wants to merge
1
commit into
main
Choose a base branch
from
version-auto-upgrade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
macros: | ||
- name: macro_datediff | ||
inputs: | ||
- column | ||
value: "{% if !(end_time|isnil) %} datediff(day, date({{column}}), date('{{end_time.Format(\"2006-01-02 15:04:05\")}}')) {% else %} datediff(day, date({{column}}::timestamp), GETDATE()) {% endif %}" | ||
- name: macro_datediff_n | ||
inputs: | ||
- column | ||
- number_of_days | ||
value: "{% if !(end_time|isnil) %} datediff(day, date({{column}}), date('{{end_time.Format(\"2006-01-02 15:04:05\")}}')) <={{number_of_days}} {% else %} datediff(day, date({{column}}), GETDATE()) <= {{number_of_days}} {% endif %}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ models: | |
entity_key: user | ||
validity_time: 24h # 1 day | ||
py_repo_url: [email protected]:rudderlabs/rudderstack-profiles-classifier.git | ||
|
||
train: | ||
file_extension: .json | ||
file_validity: 168h # If the last trained model is older than this, then the model will be trained again, | ||
|
@@ -21,16 +20,13 @@ models: | |
prediction_horizon_days: 7 # Number of days in future for which we want to predict | ||
features_profiles_model: 'rudder_user_base_features' # Model name | ||
output_profiles_ml_model: *model_name_7_days # Name of output model based on current model to dinstinguish between multiple models | ||
eligible_users: | ||
eligible_users: | ||
inputs: *inputs_7_days | ||
|
||
|
||
preprocessing: &model_prep_configs_7_days | ||
ignore_features: | ||
- user_email | ||
- first_name | ||
- last_name | ||
|
||
predict: | ||
inputs: | ||
- models/rudder_user_base_features | ||
|
@@ -45,17 +41,14 @@ models: | |
features: | ||
- name: *percentile_name_7_days | ||
description: 'Percentile of churn score. Higher the percentile, higher the probability of churn' | ||
|
||
<<: *feature_meta_data_7_days | ||
|
||
!!merge <<: *feature_meta_data_7_days | ||
- name: &model_name_30_days churn_30_days_model | ||
model_type: python_model | ||
model_spec: | ||
occurred_at_col: insert_ts | ||
entity_key: user | ||
validity_time: 24h # 1 day | ||
py_repo_url: [email protected]:rudderlabs/rudderstack-profiles-classifier.git | ||
|
||
train: | ||
file_extension: .json | ||
file_validity: 168h # If the last trained model is older than this, then the model will be trained again, | ||
|
@@ -69,16 +62,13 @@ models: | |
prediction_horizon_days: 30 # Number of days in future for which we want to predict | ||
features_profiles_model: 'rudder_user_base_features' # Model name | ||
output_profiles_ml_model: *model_name_30_days # Name of output model based on current model to dinstinguish between multiple models | ||
eligible_users: | ||
eligible_users: | ||
inputs: *inputs_30_days | ||
|
||
|
||
preprocessing: &model_prep_configs_30_days | ||
ignore_features: | ||
- user_email | ||
- first_name | ||
- last_name | ||
|
||
predict: | ||
inputs: | ||
- models/rudder_user_base_features | ||
|
@@ -93,17 +83,14 @@ models: | |
features: | ||
- name: *percentile_name_30_days | ||
description: 'Percentile of churn score. Higher the percentile, higher the probability of churn' | ||
|
||
<<: *feature_meta_data_30_days | ||
|
||
!!merge <<: *feature_meta_data_30_days | ||
- name: &model_name_90_days churn_90_days_model | ||
model_type: python_model | ||
model_spec: | ||
occurred_at_col: insert_ts | ||
entity_key: user | ||
validity_time: 24h # 1 day | ||
py_repo_url: [email protected]:rudderlabs/rudderstack-profiles-classifier.git | ||
|
||
train: | ||
file_extension: .json | ||
file_validity: 168h # If the last trained model is older than this, then the model will be trained again, | ||
|
@@ -117,16 +104,13 @@ models: | |
prediction_horizon_days: 90 # Number of days in future for which we want to predict | ||
features_profiles_model: 'rudder_user_base_features' # Model name | ||
output_profiles_ml_model: *model_name_90_days # Name of output model based on current model to dinstinguish between multiple models | ||
eligible_users: | ||
eligible_users: | ||
inputs: *inputs_90_days | ||
|
||
|
||
preprocessing: &model_prep_configs_90_days | ||
ignore_features: | ||
- user_email | ||
- first_name | ||
- last_name | ||
|
||
predict: | ||
inputs: | ||
- models/rudder_user_base_features | ||
|
@@ -141,5 +125,4 @@ models: | |
features: | ||
- name: *percentile_name_90_days | ||
description: 'Percentile of churn score. Higher the percentile, higher the probability of churn' | ||
|
||
<<: *feature_meta_data_90_days | ||
!!merge <<: *feature_meta_data_90_days |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/Users/admin/Desktop/Playground/lib_projects/rudderstack-profiles-base-features |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Project name | ||
name: base_features | ||
# Project's yaml schema version | ||
schema_version: 42 | ||
schema_version: 44 | ||
# WH Connection Profile to use. | ||
connection: dev_wh | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you name the connection as |
||
# Whether to allow inputs having no timestamps, | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you delete this file from the project?