Step 1 : Search OptiMax on Google Cloud Marketplace
Step 2 : Deploy the Virtual Machine
Step 3 : Navigate the Virtual Machine
Go to opt directory
cd /opt
List folders inside /opt
ls
Go to Katalyst_Street
cd K*
Check contents
ls
Go to Chocky_The_Chocolate_Shop project
cd C*
View project folders
ls
Go to OptiMax folder
cd O*
View files in OptiMax
ls
Main Executables
cd version_2_Executables/
ls
Step 4 : Learn how OptiMax frameworks are used for synthetic Chocky-The Chocolate Shop data
Install Python using:
sudo apt update
sudo apt install python3 python3-venv python3-pip
Then verify:
python3 --version
Create Virtual Environment(optional if created)
python3 -m venv venv
Activate the Virtual Environment
source venv/bin/activate
Install Required Libraries
pip install -r requirements.txt
OptiMax Code Analysis
Step 0: Create dim_Segment
Run 0_Create_dim_Segment_v7 and save output to log file
python3 0_Create_dim_Segment_v7.py > 0_Create_dim_Segment_v7.log 2>&1
View the execution output
cat 0_Create_dim_Segment_v7.log
Step 1:Create_dim_Channel
Run 1_Create_dim_Channel_V7 and save output to log file
python3 1_Create_dim_Channel_V7.py > 1_Create_dim_Channel_V7.log 2>&1
View the execution output
cat 1_Create_dim_Channel_V7.log
Step 2: Create_dim_campaign
Run 2_Create_dim_campaign_v8_0_02_24_25 and save output to log file
python3 2_Create_dim_campaign_v8_0_02_24_25.py > 2_Create_dim_campaign_v8_0_02_24_25.log 2>&1
View the execution output
cat 2_Create_dim_campaign_v8_0_02_24_25.log
Step 3: Create_dim_leads
Run 3_Create_dim_leads_v8_02_24_25 and save output to log file
python3 3_Create_dim_leads_v8.py > 3_Create_dim_leads_v8.log 2>&1
View the execution output
cat python3 3_Create_dim_leads_v8.log
Step 4: Create_dim_customer
Run 4_Create_dim_customer_V8 and save output to log file
python3 4_Create_dim_customer_V7.py > 4_Create_dim_customer_V7.log 2>&1
View the execution output
cat 4_Create_dim_customer_V7.log
Step 5: Create_dim_GiftCards
Run 3_Create_dim_GiftCards_ps and save output to log file
python3 5_Create_dim_GiftCards_ps_v7.py> 5_Create_dim_GiftCards_ps_v7.log 2>&1
View the execution output
cat 5_Create_dim_GiftCards_ps_v7.log
Step 6: Create_dim_demographics
Run 6_Create_dim_demographics_v7_02_24_25_ and save output to log file
python3 6_Create_dim_demographics_v7.py > 6_Create_dim_demographics_v7.log 2>&1
View the execution output
cat 6_Create_dim_demographics_v7.log
Step 7: Create_dim_merchandise
Run 7_Create_dim_merchandise_v7_02_24_25 and save output to log file
python3 7_Create_dim_merchandise_v7.py > 7_Create_dim_merchandise_v7.log 2>&1
View the execution output
cat 7_Create_dim_merchandise_v7_02_24_25.log
Step 8: Create_dim_fact_orderDetails
Run 8_Create_fact_orderDetails_v7_fact_orders and save output to log file
python3 8_Create_fact_orderDetails_v7_fact_orders.py > 8_Create_fact_orderDetails_v7_fact_orders.log 2>&1
View the execution output
cat 8_Create_fact_orderDetails_v7_fact_orders.log
Step 9: Create_dim_reviews
Run 9_Create_dim_reviews_v7 and save output to log file
python3 9_Create_dim_reviews_v7.py > 9_Create_dim_reviews_v7.log 2>&1
View the execution output
cat 9_Create_dim_reviews_v7.log
Step 10: Create_dim_subchannel
Run 10_Create_dim_subchannel_v8 and save output to log file
python3 10_Create_dim_subchannel_v8.py > 10_Create_dim_subchannel_v8.log 2>&1
View the execution output
cat 10_Create_dim_subchannel_v8.log
Step 11: Generate_Customers_shop2
Run 11_generate_Customers_shop2 and save output to log file
python3 11_generate_Customers_shop2.py > 11_generate_Customers_shop2.log 2>&1
View the execution output
cat 11_generate_Customers_shop2.log
Step 12: Generate_menu_shop2
Run 12_generate_menu_shop2 and save output to log file
python3 12_generate_menu_shop2.py > 12_generate_menu_shop2.log 2>&1
View the execution output
cat 12_generate_menu_shop2.log
Step 13: Generate_orders_shop2
Run 13_generate_orders_shop2 and save output to log file
python3 13_generate_orders_shop2.py > 13_generate_orders_shop2.log 2>&1
View the execution output
cat 13_generate_orders_shop2.log
Step 14:Creating_Master_Table_V8
Run 14_Creating_Master_Table_V8 and save output to log file
python3 14_Creating_Master_Table_V8.py > 14_Creating_Master_Table_V8.log 2>&1
View the execution output
cat Creating_Master_Table_V8.log
Step 15:Read_Master_Table_V8
Run 15_read_Master_Tablev8 and save output to log file
python3 15_read_Master_Tablev8.py > 15_read_Master_Tablev8.log 2>&1
View the execution output
cat 15_read_Master_Tablev8.log
Step 16:Master_Table_OptiMax_Descriptive
Run 16_Master_Table_OptiMax_Descriptive_v8_ and save output to log file
python3 16_Master_Table_OptiMax_Descriptive_v8_.py > 16_Master_Table_OptiMax_Descriptive_v8_.log 2>&1
View the execution output
cat 16_Master_Table_OptiMax_Descriptive_v8_.log
Step 17:Visualize_Past_Campaign_Performance
Run 17_Visualize_Past_Campaign_Performance_V8 and save output to log file
python3 17_Visualize_Past_Campaign_Performance_V8.py > 17_Visualize_Past_Campaign_Performance_V8.log 2>&1
View the execution output
cat 17_Visualize_Past_Campaign_Performance_V8.log
Step 18:Propensity_Logistic_Regression
Run 18_Propensity_Logistic_Regression_v8 and save output to log file
python3 18_Propensity_Logistic_Regression_v8.py > 18_Propensity_Logistic_Regression_v8.log 2>&1
View the execution output
cat 18_Propensity_Logistic_Regression_v8.log
Step 19:Scoring_and_Performance_Metrics_Response_Modeling
Run 19_Scoring_and_Performance_Metrics_Response_Modeling_v8 and save output to log file
python3 19_Scoring_and_Performance_Metrics_Response_Modeling_v8.py > 19_Scoring_and_Performance_Metrics_Response_Modeling_v8.log 2>&1
View the execution output
cat 19_Scoring_and_Performance_Metrics_Response_Modeling_v8.log
Step 20:cltv_resp_scored_master
Run 20_cltv_resp_scored_master_V8 and save output to log file
python3 20_cltv_resp_scored_master_V8.py > 20_cltv_resp_scored_master_V8.log 2>&1
View the execution output
cat 20_cltv_resp_scored_master_V8.log
Step 21:Building_CLTV_Model_on_Customers_and_Leads
Run 21_Building_CLTV_Model_on_Customers_and_Leads_v8 and save output to log file
python3 21_Building_CLTV_Model_on_Customers_and_Leads_v8.py > 21_Building_CLTV_Model_on_Customers_and_Leads_v8.log 2>&1
View the execution output
cat 21_Building_CLTV_Model_on_Customers_and_Leads_v8.log
Step 22:Optimax_Cltv_Score
Run 22_Optimax_Cltv_Score_V8 and save output to log file
python3 22_Optimax_Cltv_Score_V8.py > 22_Optimax_Cltv_Score_V8.log 2>&1
View the execution output
cat 22_Optimax_Cltv_Score_V8.log
Step 23:Scoring_CLTV_Modeling_V8
Run 23_Scoring_CLTV_Modeling_V8 and save output to log file
python3 23_Scoring_CLTV_Modeling_V8.py > 23_Scoring_CLTV_Modeling_V8.log 2>&1
View the execution output
cat 23_Scoring_CLTV_Modeling_V8.log
Step 24:optimax_segmentation_abcd
Run 24_optimax_segmentation_abcd_v8 and save output to log file
python3 24_optimax_segmentation_abcd_v8.py > 24_optimax_segmentation_abcd_v8.log 2>&1
View the execution output
cat 24_optimax_segmentation_abcd_v8.log
Step 25:Media_Mix_Modeling_Budget_Allocation_by_Channel_for_future_campagins
Run 25_Media_Mix_Modeling_Budget_Allocation_by_Channel_for_future_campagins_v8 and save output to log file
python3 25_Media_Mix_Modeling_Budget_Allocation_by_Channel_for_future_campagins_v8.py
View the execution output
cat 25_Media_Mix_Modeling_Budget_Allocation_by_Channel_for_future_campagins_v8.log
Step 26:Campaign_Hyperpersonalize_Emails_v8(Optional)
Implementation of Gemini and Vertex AI for Automated Lead Personalization
Step 27:Optimax_Inputs_Marketing_Summary
Run 27_Optimax_Inputs_Marketing_Summary and save output to log file
python3 27_Optimax_Inputs_Marketing_Summary.py > 27_Optimax_Inputs_Marketing_Summary.log 2>&1
View the execution output
27_Optimax_Inputs_Marketing_Summary.log