model

package
v0.0.0-...-83adff0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseDownGrade   = "ResponseDownGrade" // 1:recall service 2: redis
	ResponseRecallCount = "ResponseRecallCount"
	ResponseCount       = "ResponseCount"
	ResponseRecallStat  = "ResponseRecallStat"
	RankModelName       = "RankModelName"
	RankModelScore      = "RankModelScore"
	QueryID             = "QueryID"

	ScoreMessage  = "scoreMessage"
	FeatureString = "feature"

	OrderRecall           = "Order01Recall"
	OrderRanker           = "Order02Ranker"
	OrderWeakIntervention = "Order03WeakIntervention"
	OrderFinal            = "Order04Final"
	OrderPostProcess      = "OrderPostProcess"

	ScoreTotalScore = "TotalScore"

	ScoreBiliZone = "ScoreBiliZone"
	ScoreBiliTag  = "ScoreBiliTag"

	ScoreLikeTag = "scoreLikeTag"
	ScorePosTag  = "scorePosTag"
	ScoreNegTag  = "scoreNegTag"

	ScoreMatchTitle     = "scoreMatchTitle"
	ScoreFollowUP       = "scoreFollowUp"
	ScoreOperationLevel = "scoreOperationLevel"

	BiliPlayNum    = "BiliPlayNum"
	BiliFavRatio   = "BiliFavRatio"
	BiliLikeRatio  = "BiliLikeRatio"
	BiliShareRatio = "BiliShareRatio"
	BiliCoinRatio  = "BiliCoinRatio"
	BiliReplyRatio = "BiliReplyRatio"

	ScoreRelevant    = "scoreRelevant"
	ScoreRetrieveTag = "scoreRetrieveTag"
)

rank model, rank feature

View Source
const (
	ID      = "id"
	SVID    = "svid"
	AVID    = "avid"
	CID     = "cid"
	Title   = "title"
	Content = "content"

	Duration = "duration"
	TID      = "tid"
	SubTid   = "sub_tid"

	ScatterTag = "scatter_tag"
	Tags       = "tags"
	TagsName   = "tags_name"
	TagsID     = "tags_id"
	TagsType   = "tags_type"
	ZoneName   = "ZoneName"
	ZoneID     = "ZoneID"

	PlayHive  = "play_hive"
	FavHive   = "fav_hive"
	LikesHive = "likes_hive"
	ShareHive = "share_hive"
	ReplyHive = "reply_hive"
	DanmuHive = "danmu_hive"
	CoinHive  = "coin_hive"

	PlayWeekBili  = "play_week_bili"
	FavWeekBili   = "fav_week_bili"
	LikesWeekBili = "likes_week_bili"
	ShareWeekBili = "share_week_bili"
	ReplyWeekBili = "reply_week_bili"
	DanmuWeekBili = "danmu_week_bili"
	CoinWeekBili  = "coin_week_bili"

	PlayDayBili  = "play_day_bili"
	FavDayBili   = "fav_day_bili"
	LikesDayBili = "likes_day_bili"
	ShareDayBili = "share_day_bili"
	ReplyDayBili = "reply_day_bili"
	DanmuDayBili = "danmu_day_bili"
	CoinDayBili  = "coin_day_bili"

	PlayMonthTotal  = "play_month_total"
	PlayMonthFinish = "play_month_finish"
	PlayMonth       = "play_month"
	FavMonth        = "fav_month"
	LikesMonth      = "likes_month"
	ShareMonth      = "share_month"
	ReplyMonth      = "reply_month"
	DanmuMonth      = "danmu_month"

	PlayWeekTotal  = "play_week_total"
	PlayWeekFinish = "play_week_finish"
	PlayWeek       = "play_week"
	LikesWeek      = "likes_week"
	ShareWeek      = "share_week"
	ReplyWeek      = "reply_week"
	DanmuWeek      = "danmu_week"

	PlayDayTotal  = "play_day_total"
	PlayDayFinish = "play_day_finish"
	PlayDay       = "play_day"
	LikesDay      = "likes_day"
	ShareDay      = "share_day"
	ReplyDay      = "reply_day"
	DanmuDay      = "danmu_day"

	UperMid = "mid"
	PubTime = "PubTime"

	State = "state"

	Retriever       = "retriever"
	RecallClasses   = "RecallClasses"
	RecallTags      = "RecallTags"
	RecallOrder     = "RecallOrder"
	RecallScore     = "RecallScore"
	SourceTimeToNow = "SourceTimeToNow"
)

record 字段

View Source
const (

	//State0 视频未审核
	State0 = 0

	//State1 视频安全审核通过
	State1 = 1

	//State2 待冷启动回查
	State2 = 2

	//State3 回查可放出
	State3 = 3

	//State4 视频优质
	State4 = 4

	//State5 视频精选
	State5 = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Record4Dup

type Record4Dup struct {
	SVID int64  `json:"svid"`
	MID  string `json:"mid"`
	Tag  string `json:"tag"`
}

Record4Dup ...

type Tag

type Tag struct {
	TagName string
	TagType int64
	TagID   int64
}

Tag ...

type Tuple

type Tuple struct {
	Timestamp int64
	Count     int64
}

Tuple ...

type UserProfile

type UserProfile struct {
	Mid    int64  `json:"Mid,omitempty"`
	Buvid  string `json:"Buvid,omitempty"`
	Name   string `json:"Name,omitempty"`
	Gender int8   `json:"Gender,omitempty"`

	ViewVideos []int64 `json:"ViewVideos,omitempty"`

	//bbq user profile
	//key:up mid, value: timestamp
	BBQFollowAction map[int64]int64 `json:"BBQFollowAction,omitempty"`
	//key:up mid, value: 1
	BBQFollow map[int64]int64 `json:"BBQFollow,omitempty"`
	BBQBlack  map[int64]int64 `json:"BBQBlack,omitempty"`

	BBQTags    map[string]float64 `json:"BBQTags,omitempty"`
	BBQZones   map[string]float64 `json:"BBQZones,omitempty"`
	BBQPrefUps map[int64]int64    `json:"BBQPrefUps,omitempty"`

	//bili user profile
	BiliTags  map[string]float64 `json:"BiliTags,omitempty"`
	Zones1    map[string]float64 `json:"Zones1,omitempty"`
	Zones2    map[string]float64 `json:"Zones2,omitempty"`
	FollowUps map[int64]int64    `json:"FollowUps,omitempty"`

	//bbq实时数据
	//key: SVID, value: timestamp
	PosVideos  map[int64]int64 `json:"PosVideos,omitempty"`
	NegVideos  map[int64]int64 `json:"NegVideos,omitempty"`
	LikeVideos map[int64]int64 `json:"LikeVideos,omitempty"`

	//key: tagID, value: count
	LikeTagIDs map[int64]int64 `json:"LikeTagIDs,omitempty"`
	PosTagIDs  map[int64]int64 `json:"PosTagIDs,omitempty"`
	NegTagIDs  map[int64]int64 `json:"NegTagIDs,omitempty"`

	//key: UP MID, value: timestamp
	LikeUPs map[int64]int64 `json:"LikeUPs,omitempty"`

	//for old retrieve function
	LikeTags map[string]float64 `json:"LikeTags,omitempty"`
	PosTags  map[string]float64 `json:"PosTags,omitempty"`
	NegTags  map[string]float64 `json:"NegTags,omitempty"`

	//DedupVideos 根据ID去重
	DedupVideos    []int64      `json:"DedupVideos,omitempty"`
	LastRecords    []Record4Dup `json:"LastRecords,omitempty"`
	LastUpsRecords []Record4Dup `json:"LastRecords,omitempty"`

	//BloomFilter 去重用到 SVID
	BloomFilter *bloomfilter.BloomFilter `json:"BloomFilter,omitempty"`
}

UserProfile 用户画像数据 包括历史画像和实时日志

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL