Skip to content

Instantly share code, notes, and snippets.

@riverhxz
Created May 21, 2018 05:45
Show Gist options
  • Save riverhxz/dbd849799b6e61f077038e01a1a88631 to your computer and use it in GitHub Desktop.
Save riverhxz/dbd849799b6e61f077038e01a1a88631 to your computer and use it in GitHub Desktop.
3_online_feature
// val featuresNeedScaled = immutable.List(
// "actor_rate_message_sent_over_match_latest_7_days",
// "actor_rate_chat_sent_over_match_latest_7_days",
// "actor_rate_5mmsg_sent_over_match_latest_7_days",
// "actor_rate_10mmsg_sent_over_match_latest_7_days",
//
// "receiver_rate_message_sent_over_match_latest_7_days",
// "receiver_rate_chat_sent_over_match_latest_7_days",
// "receiver_rate_5mmsg_sent_over_match_latest_7_days",
// "receiver_rate_10mmsg_sent_over_match_latest_7_days"
// )
val featuresNeedBeCrossed = immutable.List(
"vip_status",
"constellation",
//"gender",
"mlc_type",
"bucketized_age",
"hide_contacts",
"work_active",
"study_active"
// "bucketized_count_swipe_latest_7_days",
// "bucketized_count_like_received_latest_7_days",
// "bucketized_count_like_giving_latest_7_days",
// "bucketized_count_match_latest_7_days",
// "bucketized_count_impression_latest_7_days",
// "bucketized_count_message_sent_latest_7_days",
// "bucketized_count_total_message_sent_latest_7_days",
// "bucketized_count_chat_sent_latest_7_days",
// "bucketized_count_5mmsg_sent_latest_7_days",
// "bucketized_count_10mmsg_sent_latest_7_days",
// "bucketized_rate_like_received_over_impression_latest_7_days",
// "bucketized_rate_like_giving_over_swipe_latest_7_days",
// "bucketized_rate_match_over_like_giving_latest_7_days",
// "bucketized_rate_match_over_swipe_latest_7_days",
// "bucketized_rate_5mmsg_sent_over_match_latest_7_days",
// "bucketized_rate_10mmsg_sent_over_match_latest_7_days",
// "bucketized_rate_chat_sent_over_impression_latest_7_days",
// "bucketized_rate_message_sent_over_match_latest_7_days",
// "bucketized_rate_chat_sent_over_match_latest_7_days"
)
val continuousFeatures = immutable.List(
// "actor_rate_like_received_over_impression_latest_7_days",
// "actor_rate_like_giving_over_swipe_latest_7_days",
// "actor_rate_match_over_like_giving_latest_7_days",
// "actor_rate_match_over_swipe_latest_7_days",
// "actor_rate_5mmsg_sent_over_match_latest_7_days",
// "actor_rate_10mmsg_sent_over_match_latest_7_days",
// "actor_rate_chat_sent_over_impression_latest_7_days",
// "actor_rate_message_sent_over_match_latest_7_days",
// "actor_rate_chat_sent_over_match_latest_7_days",
//"receiver_rate_like_received_over_impression_latest_7_days",
//"receiver_rate_like_giving_over_swipe_latest_7_days",
//"receiver_rate_match_over_like_giving_latest_7_days",
"receiver_rate_match_over_swipe_latest_7_days",
"receiver_rate_5mmsg_sent_over_match_latest_7_days",
"receiver_rate_10mmsg_sent_over_match_latest_7_days",
"receiver_rate_chat_sent_over_impression_latest_7_days",
"receiver_rate_message_sent_over_match_latest_7_days",
"receiver_rate_chat_sent_over_match_latest_7_days",
"receiver_popularity",
//"distance",
//"receiver_minutes_swiped_minus_last_active",
//"receiver_age",
"receiver_rate_distinct_5mmsg_sent_over_match_latest_7_days",
"receiver_rate_distinct_10mmsg_sent_over_match_latest_7_days",
"receiver_rate_distinct_chat_sent_over_impression_latest_7_days",
"receiver_rate_distinct_chat_sent_over_match_latest_7_days",
"receiver_rate_distinct_message_sent_over_match_latest_7_days",
"receiver_rate_distinct_5mmsg_sent_over_message_sent_latest_7_days",
"receiver_rate_distinct_10mmsg_sent_over_message_sent_latest_7_days",
"receiver_rate_distinct_message_sent_over_swipe_latest_7_days",
"receiver_ee_rate_like_received_over_impression_latest_7_days",
"receiver_ee_rate_like_giving_over_swipe_latest_7_days",
"receiver_ee_rate_match_over_swipe_latest_7_days"
)
val categorialFeatures = immutable.List(
// "actor_bucketized_age",
// "actor_bucketized_count_swipe_latest_7_days",
// "actor_bucketized_count_like_received_latest_7_days",
// "actor_bucketized_count_like_giving_latest_7_days",
// "actor_bucketized_count_match_latest_7_days",
// "actor_bucketized_count_impression_latest_7_days",
// "actor_bucketized_count_message_sent_latest_7_days",
// "actor_bucketized_count_total_message_sent_latest_7_days",
// "actor_bucketized_count_chat_sent_latest_7_days",
// "actor_bucketized_count_5mmsg_sent_latest_7_days",
// "actor_bucketized_count_10mmsg_sent_latest_7_days",
// "actor_bucketized_rate_like_received_over_impression_latest_7_days",
// "actor_bucketized_rate_like_giving_over_swipe_latest_7_days",
// "actor_bucketized_rate_match_over_like_giving_latest_7_days",
// "actor_bucketized_rate_match_over_swipe_latest_7_days",
// "actor_bucketized_rate_5mmsg_sent_over_match_latest_7_days",
// "actor_bucketized_rate_10mmsg_sent_over_match_latest_7_days",
// "actor_bucketized_rate_chat_sent_over_impression_latest_7_days",
// "actor_bucketized_rate_message_sent_over_match_latest_7_days",
// "actor_bucketized_rate_chat_sent_over_match_latest_7_days",
"receiver_bucketized_age",
"receiver_bucketized_count_swipe_latest_7_days",
"receiver_bucketized_count_like_received_latest_7_days",
"receiver_bucketized_count_like_giving_latest_7_days",
"receiver_bucketized_count_match_latest_7_days",
"receiver_bucketized_count_impression_latest_7_days",
"receiver_bucketized_count_message_sent_latest_7_days",
"receiver_bucketized_count_total_message_sent_latest_7_days",
"receiver_bucketized_count_chat_sent_latest_7_days",
"receiver_bucketized_count_5mmsg_sent_latest_7_days",
"receiver_bucketized_count_10mmsg_sent_latest_7_days",
//"receiver_bucketized_rate_like_received_over_impression_latest_7_days",
//"receiver_bucketized_rate_like_giving_over_swipe_latest_7_days",
//"receiver_bucketized_rate_match_over_like_giving_latest_7_days",
"receiver_bucketized_rate_match_over_swipe_latest_7_days",
"receiver_bucketized_rate_5mmsg_sent_over_match_latest_7_days",
"receiver_bucketized_rate_10mmsg_sent_over_match_latest_7_days",
"receiver_bucketized_rate_chat_sent_over_impression_latest_7_days",
"receiver_bucketized_rate_message_sent_over_match_latest_7_days",
"receiver_bucketized_rate_chat_sent_over_match_latest_7_days",
"receiver_bucketized_rate_distinct_5mmsg_sent_over_match_latest_7_days",
"receiver_bucketized_rate_distinct_10mmsg_sent_over_match_latest_7_days",
"receiver_bucketized_rate_distinct_chat_sent_over_impression_latest_7_days",
"receiver_bucketized_rate_distinct_chat_sent_over_match_latest_7_days",
"receiver_bucketized_rate_distinct_message_sent_over_match_latest_7_days",
"receiver_bucketized_rate_distinct_5mmsg_sent_over_message_sent_latest_7_days",
"receiver_bucketized_rate_distinct_10mmsg_sent_over_message_sent_latest_7_days",
"receiver_bucketized_rate_distinct_message_sent_over_swipe_latest_7_days",
"receiver_bucketized_ee_rate_like_received_over_impression_latest_7_days",
"receiver_bucketized_ee_rate_like_giving_over_swipe_latest_7_days",
"receiver_bucketized_ee_rate_match_over_swipe_latest_7_days",
"bucketized_receiver_popularity",
// "bucketized_receiver_minutes_swiped_minus_last_active",
// "bucketized_distance",
"bucketized_fine_receiver_minutes_swiped_minus_last_active",
"bucketized_fine_distance",
// "actor_vip_status",
// "actor_constellation",
// "actor_city",
// "actor_mlc_type",
"receiver_gender",
"receiver_vip_status",
"receiver_constellation",
// "receiver_city",
"receiver_mlc_type",
"receiver_hide_contacts",
"receiver_work_active",
"receiver_study_active"
)
val isSameFeatures = immutable.List(
"city",
"bucketized_age"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment