public override void CatchMinValue(BaseFeature item)
        {
            base.CatchMinValue(item);
            var userFeature = (UserFeature)item;

            UniqueItemFourBehaviorCount.CatchMinValue(userFeature.UniqueItemFourBehaviorCount);
        }
 public void WriteHeaders(System.IO.StreamWriter writer)
 {
     writer.Write("userid,itemid,label,is_online,");
     //writer.Write("user_id,item_id,label,");
     BaseFeature.WriteHeaders(writer, "ui");
     UserFeature.WriteHeaders(writer);
     ItemFeature.WriteHeaders(writer);
     UserCategoryFeature.WriteHeaders(writer, "uc");
 }
        public void WriteHeaders(StreamWriter writer)
        {
            BaseFeature.WriteHeaders(writer, "c");

            #region 输出表头,浏览该类别的去重用户的数量

            string[] behaviors = new string[] { "c_unique_user_click_in_{0}_hours", "c_unique_user_store_in_{0}_hours", "c_unique_user_car_in_{0}_hours", "c_unique_user_buy_in_{0}_hours" };
            BaseFeature.WriteHeaders(writer, behaviors);

            #endregion

            TransferRateCollection.WriteHeaders(writer, new string[] { "c_click_tranfer_{0}", "c_store_tranfer_{0}", "c_car_tranfer_{0}" });
        }
        public void WriteHeaders(System.IO.StreamWriter writer)
        {
            BaseFeature.WriteHeaders(writer, "i");

            #region 输出表头,浏览该商品的去重用户的数量

            string[] behaviors = new string[] { "item_unique_user_click_in_{0}_hours", "item_unique_user_store_in_{0}_hours", "item_unique_user_car_in_{0}_hours", "item_unique_user_buy_in_{0}_hours" };
            BaseFeature.WriteHeaders(writer, behaviors);

            #endregion

            CategoryFeature.WriteHeaders(writer);

            TransferRateCollection.WriteHeaders(writer, new string[] { "i_click_tranfer_{0}", "i_store_tranfer_{0}", "i_car_tranfer_{0}" });
        }
        public void WriteHeaders(System.IO.StreamWriter writer)
        {
            BaseFeature.WriteHeaders(writer, "u");

            TransferRateCollection.WriteHeaders(writer, new string[] { "u_click_tranfer_{0}", "u_store_tranfer_{0}", "u_car_tranfer_{0}" });


            #region 输出表头,用户浏览、购买的去重商品的数量

            string[] behaviors = new string[] { "user_unique_item_click_in_{0}_hours", "user_unique_item_store_in_{0}_hours", "user_unique_item_car_in_{0}_hours", "user_unique_item_buy_in_{0}_hours" };
            BaseFeature.WriteHeaders(writer, behaviors);

            #endregion

            #region 输出表头,用户浏览、购买的去重商品类别的数量

            behaviors = new string[] { "user_unique_category_click_in_{0}_hours", "user_unique_category_store_in_{0}_hours", "user_unique_category_car_in_{0}_hours", "user_unique_category_buy_in_{0}_hours" };

            BaseFeature.WriteHeaders(writer, behaviors);

            #endregion
        }
Beispiel #6
0
 public virtual void Normalize(BaseFeature maxFeature, BaseFeature minFeature)
 {
     FourBehaviorCountCollection.Normalize(maxFeature.FourBehaviorCountCollection, minFeature.FourBehaviorCountCollection);
     FourMinHourCountCollection.Normalize(maxFeature.FourMinHourCountCollection, minFeature.FourMinHourCountCollection);
 }
Beispiel #7
0
 public virtual void CatchMinValue(BaseFeature item)
 {
     this.FourBehaviorCountCollection.CatchMinValue(item.FourBehaviorCountCollection);
     this.FourMinHourCountCollection.CatchMinValue(item.FourMinHourCountCollection);
 }