CN104090892A - Method and device for on-line computing of off-line algorithm - Google Patents

Method and device for on-line computing of off-line algorithm Download PDF

Info

Publication number
CN104090892A
CN104090892A CN201310688366.8A CN201310688366A CN104090892A CN 104090892 A CN104090892 A CN 104090892A CN 201310688366 A CN201310688366 A CN 201310688366A CN 104090892 A CN104090892 A CN 104090892A
Authority
CN
China
Prior art keywords
matrix
business information
business
user
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310688366.8A
Other languages
Chinese (zh)
Other versions
CN104090892B (en
Inventor
罗如海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201310688366.8A priority Critical patent/CN104090892B/en
Publication of CN104090892A publication Critical patent/CN104090892A/en
Application granted granted Critical
Publication of CN104090892B publication Critical patent/CN104090892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and device for on-line computing of an off-line algorithm, and belongs to the field of Internet. The method comprises the following steps: obtaining a history record corresponding to each service information operated by a user within a first time period, wherein the first time period is a time period which is the time period closest to the present and is in a preset time length; building a first user interest matrix according to the history record corresponding to each service information; according to the first user interest matrix, correcting a second user interest matrix which is stored to obtain a third user interest matrix; according to a preset service information matrix and the third user interest matrix, computing an on-line service recommending matrix. The device comprises an obtaining module, a building module, a correcting module and a computing module. Through the adoption of the method and device, disclosed by the invention, the accuracy of the recommended service information can be improved.

Description

A kind of method that off-line algorithm is calculated online and device
Technical field
The present invention relates to field of Internet communication, particularly a kind of method that off-line algorithm is calculated online and device.
Background technology
At present, user browses dissimilar business information on the network of being everlasting, as video, advertisement and merchandise news etc., the business information that server can be browsed in the past according to user, the interested business information of the current possibility of predictive user, and the business information of prediction is recommended to user.
Server recommends the process of business information as follows:
Server is the in the situation that of off-line, first obtain user from current recently and historical record corresponding to each business information that operate in the time period for default duration of duration, the corresponding historical record of this business information at least comprises the sign of this business information, operates the running time of operation behavior type and this business information of operation of this business information.According to historical record calculated off-line corresponding to each business information, go out this user's user interest matrix B k*N, user interest matrix B k*Na kind of attribute factor of the corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, user interest matrix B k*Nin element B ijrepresent that the interest value of operation behavior j occurs attribute factor i this user, and be kept at the user's who calculates under off-line case user interest matrix B k*N.Then server is every the time of default duration, this user's of calculated off-line user interest matrix as stated above, and by the user interest matrix update of preserving, be the user interest matrix of new calculating.
When needs are recommended business information to this user, obtain default business information matrix A m*K, business information matrix A m*Kthe corresponding business information of every a line, each is listed as a kind of attribute factor of corresponding business information, business information matrix A m*Kin elements A ijrepresent the weight of attribute factor j in business information i.According to the business information matrix A of obtaining m*Kthis user's who obtains with the calculated off-line of preserving user interest matrix B k*N, calculate offline business and recommend matrix W m*N, offline business is recommended matrix W m*Nthe corresponding business information of every a line, each be listed as corresponding a kind of operation behavior, offline business recommendation matrix W m*Nin element W ijrepresent that the level of interest of operation behavior j occurs business information i this user.According to offline business, recommend matrix W m*Nobtain several business information that the level of interest maximum of operation behavior occurs user, using the business information of obtaining as user is current may interested business information and recommend user.
In realizing process of the present invention, inventor finds prior art, and at least there are the following problems:
Server upgrades once this user's user interest matrix every the time of default duration, and default duration is often two weeks or one month etc.And user is constantly to change to the interest level of business information, the larger business information of level of interest that the offline business so obtaining according to user interest matrix recommends matrix to comprise may not be the interested business information of active user, thereby has reduced the accuracy of recommending business information.
Summary of the invention
In order to improve the accuracy of recommending business information, the invention provides a kind of method that off-line algorithm is calculated online and device.Described technical scheme is as follows:
The method that off-line algorithm is calculated online, described method comprises:
Obtain historical record corresponding to each business information that user operates in very first time section, described very first time section be from current recently and duration be default duration time period;
According to historical record corresponding to described each business information, build first user interests matrix;
According to described first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix;
According to default business information matrix and described the 3rd user interest matrix, calculate online business recommended matrix.
The device that off-line algorithm is calculated online, described device comprises:
Acquisition module, historical record corresponding to each business information operating in very first time section for obtaining user, described very first time section be from current recently and duration be default duration time period;
Build module, for according to historical record corresponding to described each business information, build first user interests matrix;
Correcting module, for according to described first user interests matrix, revises preserving the second user interest matrix that calculated off-line obtains, and obtains the 3rd user interest matrix;
Computing module, for according to default business information matrix and described the 3rd user interest matrix, calculates online business recommended matrix.
In embodiments of the present invention, obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period; The historical record corresponding according to each business information, builds first user interests matrix; According to first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix; According to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.Due to historical record corresponding to each business information operating in very first time section according to user, built first user interests matrix, and utilize first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, obtain the 3rd user interest matrix, the larger business information of level of interest that the online business recommended matrix so obtaining according to the 3rd user interest matrix the comprises current interested business information of being more close to the users, thus the accuracy of recommending business information improved.
Accompanying drawing explanation
Fig. 1 is a kind of process flow diagram that off-line algorithm is calculated online that the embodiment of the present invention 1 provides;
Fig. 2 is a kind of process flow diagram that off-line algorithm is calculated online that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of apparatus structure schematic diagram that off-line algorithm is calculated online that the embodiment of the present invention 3 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
Referring to Fig. 1, the embodiment of the present invention provides a kind of method that off-line algorithm is calculated online, comprising:
Step 101: obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period;
Step 102: the historical record corresponding according to each business information, builds first user interests matrix;
Step 103: according to first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix;
Step 104: according to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.
Preferably, obtain historical record corresponding to each business information that this user operates in very first time section, comprising:
From this user's history file, obtain historical record corresponding to the business information of running time in very first time section;
If the number of the historical record that the business information of obtaining is corresponding is greater than default number, from historical record corresponding to the business information obtained, obtain the running time from a current nearest default historical record corresponding to several business information.
Further, obtain historical record corresponding to each business information that this user operates in very first time section, also comprise:
If the number of the historical record that the business information of obtaining is corresponding is less than or equal to default number, select historical record corresponding to each business information obtaining.
Preferably, the historical record corresponding according to each business information, builds first user interests matrix, comprising:
The historical record corresponding according to each business information builds business conduct matrix, the corresponding business information of every a line of business conduct matrix, each is listed as corresponding a kind of operation behavior, the number of times of this user of the element representation in business conduct matrix to business information generation operation behavior;
From default business information matrix, obtain a line item corresponding to each business information and form the first business information matrix;
According to business conduct matrix and the first business information matrix, obtain first user interests matrix.
Preferably, according to business conduct matrix and the first business information matrix, obtain first user interests matrix, comprising:
The historical record corresponding according to each business information, calculates respectively time correlation coefficient corresponding to each business information;
In the first business information matrix, by a line item corresponding to each business information time correlation multiplication corresponding with each business information respectively, obtain the second business information matrix;
According to the second business information transpose of a matrix matrix and business conduct matrix, calculate first user interests matrix.
Preferably, according to the second business information transpose of a matrix matrix and business conduct matrix, calculate first user interests matrix, comprising:
According to the second business information transpose of a matrix matrix and business conduct matrix, by formula as follows (1), calculate first user interests matrix;
B 1 K*N=(R X*KT*F X*N……(1)
In formula (1), B 1 k*Nfor first user interests matrix, first user interests matrix B 1 k*Nline number be that K and columns are N; (R x*K) tbe the second business interests matrix R x*Ktransposed matrix, the second business interests matrix R x*Kline number be that X and columns are K; F x*Nfor business conduct matrix, business conduct matrix F x*Nline number be that X and columns are N.
Preferably, according to first user interests matrix, the second user interest matrix that the calculated off-line of preserving is obtained is revised, and obtains the 3rd user interest matrix, comprising:
According to first user interests matrix and second user's matrix, by formula as follows (2), calculate the 3rd user interest matrix;
B 2 K*N=B K*N+B 1 K*N……(2)
In formula (2), B 2 k*Nbe the 3rd user interest matrix, the 3rd user interest matrix B 2 k*Nline number be that K and columns are N; B k*Nbe the second user interest matrix, the second user interest matrix B k*Nline number be that K and columns are N.
Preferably, according to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix, comprising:
Determine the columns that default business information matrix comprises, build a diagonal matrix, the line number of diagonal matrix and columns equate with definite columns, and the element on the diagonal line in diagonal matrix is all default value;
According to default business information matrix, diagonal matrix and the 3rd user interest matrix, calculate online business recommended matrix.
Preferably, according to default business information matrix, diagonal matrix and the 3rd user interest matrix, calculate online business recommended matrix, comprising:
According to default business information matrix, diagonal matrix and the 3rd user interest matrix, according to formula as follows (3), calculate online business recommended matrix;
W M*N=A M*K*C K*K*B 2 K*N……(3)
In formula (3), W m*Nfor online business recommended matrix, online business recommended matrix W m*Nline number be that M and columns are N; A m*Kfor business information matrix, business information matrix A m*Kline number be that M and columns are K; C k*Kfor diagonal matrix, diagonal matrix C k*Kline number and columns be all K.
Further, the method also comprises:
A line item corresponding to each business information comprising for online business recommended matrix, there is level of interest and every kind of weight coefficient that operation behavior is corresponding of every kind of operation behavior in this user who comprises according to record, calculates the total level of interest of this user to business information generation operation behavior to business information.
In embodiments of the present invention, obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period; The historical record corresponding according to each business information, builds first user interests matrix; According to first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix; According to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.Due to historical record corresponding to each business information operating in very first time section according to user, built first user interests matrix, and utilize first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, obtain the 3rd user interest matrix, the larger business information of level of interest that the online business recommended matrix so obtaining according to the 3rd user interest matrix the comprises current interested business information of being more close to the users, thus the accuracy of recommending business information improved.
Embodiment 2
The embodiment of the present invention provides a kind of method that off-line algorithm is calculated online.
When server need to be recommended business information to user, server obtains online business recommended matrix according to the method providing by the embodiment of the present invention, and then recommends business information to user according to online business recommended matrix.
Referring to Fig. 2, the method specifically comprises:
Step 201: obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period;
Wherein, business information can be the information of the different information types such as video, advertisement or merchandise news, at this, just differs one for example.When user operates a business information, for example, when user watches, clicks or collects a business information, server can operate the sign of this business information, this user the operation behavior type of this business information and operate a historical record of running time composition of this business information, and this historical record is kept in this user's history file.Operation behavior type comprises to be watched, clicks or collection etc.Default duration can be half an hour, ten minutes or two minutes etc.
This step is specially, and obtains historical record corresponding to the business information of running time in very first time section from this user's history file; If the number of the historical record that the business information of obtaining is corresponding is greater than default number, from historical record corresponding to the business information obtained, select the running time from a current nearest default historical record corresponding to several business information; For example, default number can be the numerical value such as 15,20 or 30, suppose, the number of the historical record that the business information obtained is corresponding is 30, and default number is 20, from historical record corresponding to 30 business information obtaining, select the running time from current 20 nearest historical records that business information is corresponding.If the number of the historical record that the business information of obtaining is corresponding is less than or equal to default number, select historical record corresponding to each business information obtaining, suppose, the number of the historical record that the business information obtained is corresponding is 15, and default number is 20, select 15 historical records that business information is corresponding that obtain.
Step 202: the historical record corresponding according to each business information, builds business conduct matrix;
Wherein, for each business information, according to the historical record of this business information, calculate user this business information is occurred to for the number of times of every kind of operation behavior, the number of times that user, to this business information, every kind of operation behavior is occurred to forms a line item corresponding to this business information, obtain in a manner described a line item corresponding to each business information, and a line item corresponding to each business information formed to business conduct matrix F x*N, and the business conduct matrix F forming x*Nas follows.
Business conduct matrix F x*Nthe corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, X is business conduct matrix F x*Nthe line number comprising and equating with the number of the business information of obtaining, N is business conduct matrix F x*Nthe columns comprising and equate F in business conduct matrix with the number of operation behavior x*Nelement F ijrepresent that the number of times of operation behavior j occurs business information i user.For example, business conduct matrix F as follows x*N, business conduct matrix F x*Nthe corresponding business information 2 of corresponding business information 1, the second row of the first row ..., the capable corresponding business information X of X, business conduct matrix F x*Nfirst row respective operations behavior 1, secondary series respective operations behavior 2 ..., N row respective operations behavior N, business conduct matrix F x*Nelement F 11represent that the number of times of operation behavior 1, element F occur business information 1 user 12represent that the number of times of operation behavior 2 occurs business information 1 user ..., element F xNrepresent that the number of times of operation behavior N occurs business information X user.
F X * N = F 11 F 12 . . . F 1 N F 21 F 22 . . . F 2 N . . . . . . . . . . . . F X 1 F X 2 . . . F XN
Step 203: obtain a line item corresponding to each business information and form the first business information matrix from default business information matrix;
In advance default business information matrix A as follows m*K, business information matrix A m*Kin every a line corresponding server in the business information of storing, business information matrix A m*Keach be listed as a kind of attribute factor of corresponding business information, business information matrix A m*Kin elements A ijrepresent the weight of attribute factor j in business information i.
For example, in server, store business information 1,2 ..., M, the attribute factor of business information comprise attribute factor 1,2 ..., K.In business information matrix A m*Kin, the corresponding business information 2 of corresponding business information 1, the second row of the first row ..., the capable corresponding business information M of M, and, the corresponding attribute factor 1 of first row, the corresponding attribute factor 2 of secondary series ..., K is listed as corresponding attribute factor K, business information matrix A m*Kelements A 11represent the weight of attribute factor 1 in business information 1, elements A 12represent the weight of attribute factor 2 in business information 1 ..., elements A kNrepresent the weight of attribute factor N in business information K.
A M * K = A 11 A 12 . . . A 1 K A 21 A 22 . . . A 2 K . . . . . . . . . . . . A X 1 A X 2 . . . A XK . . . . . . . . . . . . A M 1 A M 2 . . . A MK
Wherein, each business information is corresponding multiple attribute factor all, and different for the attribute factor that the business information of different information types is corresponding, such as attribute factor corresponding to video, can be terror, suspense and describing love affairs etc., attribute factor corresponding to advertisement can be automobile, house property and books etc., attribute factor corresponding to merchandise news can be clothes, food and furniture etc., at this, just differs one for example.
Suppose that step 201 obtained x the business information that this user operates in very first time section, from default business information matrix A m*Kin obtain the first business information matrix S of a line item corresponding to each business information in this x business information shown in composed as follows x*K.
S X * K = A 11 A 12 . . . A 1 K A 21 A 22 . . . A 2 K . . . . . . . . . . . . A X 1 A X 2 . . . A XK
Step 204: according to business conduct matrix and the first business information matrix, obtain first user interests matrix;
Particularly, the historical record corresponding according to each business information, calculates respectively time correlation coefficient corresponding to each business information; In the first business information matrix, by a line item corresponding to each business information time correlation multiplication corresponding with each business information respectively, obtain the second business information matrix; According to the second business information transpose of a matrix matrix and business conduct matrix, calculate first user interests matrix.
For example, the operation behavior type of this user's operation service information 1 comprising according to the historical record of business information 1 correspondence and the running time of operation service information 1, by time decay algorithm, calculate the time correlation factor beta of business information 1 correspondence 1, in the first business information matrix S x*Kin, the first row of business information 1 correspondence is recorded to the time correlation factor beta that is multiplied by business information 1 correspondence 1.For other each business information in this X business information with business information 1 according to aforesaid operations, calculate the time correlation factor beta of business information 2 correspondences 2, the time correlation factor beta of business information 3 correspondences 3..., the time correlation factor beta that business information X is corresponding x, and, in the first business information matrix S x*Kin, the second line item of business information 2 correspondences is multiplied by the time correlation factor beta of business information 2 correspondences 2, the third line of business information 3 correspondences is recorded to the time correlation factor beta that is multiplied by business information 3 correspondences 3..., X line item corresponding to business information X is multiplied by the time correlation factor beta that business information X is corresponding x, obtain the second business information matrix R as follows x*K.
R X * K = β 1 A 11 β 1 A 12 . . . β 1 A 1 K β 2 A 21 β 2 A 22 . . . β 2 A 2 K . . . . . . . . . . . . β X A X 1 β X A X 2 . . . β X A XK
Obtain the second business information matrix R x*Ktransposed matrix, as follows:
( R X * K ) T = β 1 A 11 β 2 A 21 . . . β X A X 1 β 1 A 12 β 2 A 22 . . . β X A X 2 . . . . . . . . . . . . β 1 A 1 K β 2 A 2 K . . . β X A XK
According to the second business information matrix R x*Ktransposed matrix (R x*K) twith business conduct matrix F x*N, calculate first user interests matrix B as follows 1 k*N, first user interests matrix B 1 k*Na kind of attribute factor of the corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, first user interests matrix B 1 k*Nin element B 1 ijrepresent that the interest value of operation behavior j occurs attribute factor i this user.For example,, at first user interests matrix B 1 k*Nin, first user interests matrix B 1 k*Nthe corresponding attribute factor 2 of corresponding attribute factor 1, the second row of the first row ..., the capable corresponding attribute factor K of K, first user interests matrix B 1 k*Nfirst row respective operations behavior 1, secondary series respective operations behavior 2 ..., N row respective operations behavior N, and, first user interests matrix B 1 k*Nelement B 1 11represent that the interest value of operation behavior 1, element B occur attribute factor 1 this user 1 12represent that the interest value of operation behavior 2, element B occur attribute factor 1 this user 1 1Nrepresent that the interest value of operation behavior N occurs attribute factor 1 this user ..., element B 1 kNrepresent that the interest value of operation behavior N occurs attribute factor K this user.
B 1 K * N = ( R X * K ) T * F X * N = B 11 1 B 12 1 . . . B 1 N 1 B 21 1 B 22 1 . . . B 2 N 1 . . . . . . . . . . . . B K 1 1 B K 2 1 . . . B KN 1
Step 204: according to first user interests matrix, the second user interest matrix that the calculated off-line of preserving is obtained is revised, and obtains the 3rd user interest matrix;
Wherein, in server, preserved the second user interest matrix B as follows k*N, the second user interest matrix B k*Nhistorical record calculated off-line corresponding to each business information periodically operating in one-period according to user for server obtains, and the initial time in corresponding cycle of the second user interest matrix is early than the initial time of very first time section.The second user interest matrix B k*Na kind of attribute factor of the corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, the second user interest matrix B k*Nin element B ijrepresent that the interest value of operation behavior j occurs attribute factor i this user, for example, in the second user interest matrix B k*Nin, the second user interest matrix B k*Nthe corresponding attribute factor 2 of corresponding attribute factor 1, the second row of the first row ..., the capable corresponding attribute factor K of K, the second user interest matrix B k*Nfirst row respective operations behavior 1, secondary series respective operations behavior 2 ..., N row respective operations behavior N, and, the second user interest matrix B k*Nelement B 11represent that the interest value of operation behavior 1, element B occur attribute factor 1 this user 12represent that the interest value of operation behavior 2, element B occur attribute factor 1 this user 1Nrepresent that the interest value of operation behavior N occurs attribute factor 1 this user ..., element B kNrepresent that the interest value of operation behavior N occurs attribute factor K this user.
B K * N = B 11 B 12 . . . B 1 N B 21 B 22 . . . B 2 N . . . . . . . . . . . . B K 1 B K 2 . . . B KN
According to first user interests matrix B 1 k*N, the second user interest matrix B that the calculated off-line of preserving is obtained k*Nrevise, obtain the 3rd user interest matrix B as follows 2 k*N, the 3rd user interest matrix B 2 k*Na kind of attribute factor of the corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, the 3rd user interest matrix B 2 k*Nin element B 2 ijrepresent that the interest value of operation behavior j occurs attribute factor i this user, for example, in the 3rd user interest matrix B 2 k*Nin, the 3rd user interest matrix B 2 k*Nthe corresponding attribute factor 2 of corresponding attribute factor 1, the second row of the first row ..., the capable corresponding attribute factor K of K, the 3rd user interest matrix B 2 k*Nfirst row respective operations behavior 1, secondary series respective operations behavior 2 ..., N row respective operations behavior N, and, the 3rd user interest matrix B 2 k*Nelement B 2 11represent that the interest value of operation behavior 1, element B occur attribute factor 1 this user 2 12represent that the interest value of operation behavior 2, element B occur attribute factor 1 this user 2 1Nrepresent that the interest value of operation behavior N occurs attribute factor 1 this user ..., element B 2 kNrepresent that the interest value of operation behavior N occurs attribute factor K this user.
B 2 K * N = B K * N + B 1 K * N = B 11 2 B 12 2 . . . B 1 N 2 B 21 2 B 22 2 . . . B 2 N 2 . . . . . . . . . . . . B K 1 2 B K 2 2 . . . B KN 2
Further, calculating the 3rd user interest matrix B 2 k*Nbefore, can also be to a default value on the second user interest Matrix Multiplication, to dwindle the second user interest matrix, this default value can be for being less than 1 positive number, as 0.1,0.5 or 0.7 etc.
Step 205: according to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.
Particularly, obtain the default business information matrix A of having stored m*K, determine default business information matrix A m*Kthe columns K comprising, builds diagonal matrix C as follows k*K, this diagonal matrix C k*Kline number and columns be all K, and diagonal matrix C k*Kin diagonal line on element be all the default value (Elements C on diagonal line 11, C 22..., C kKbe all the numerical value pre-setting).
C K * K = C 11 0 . . . 0 0 C 22 . . 0 . . . . . . . . . . . . 0 0 . . . C KK
According to this diagonal matrix C k*K, the 3rd user interest matrix B 2 k*Nwith the business information matrix A of obtaining m*K, calculate online business recommended matrix W as follows m*N, online business recommended matrix W m*Nthe corresponding business information of every a line, each is listed as corresponding a kind of operation behavior, online business recommended matrix W m*Nin element W ijrepresent that the level of interest of operation behavior j occurs business information i this user.For example, online business recommended matrix W m*Nthe corresponding business information 2 of corresponding business information 1, the second row of the first row ..., the capable corresponding business information M of M, online business recommended matrix W m*Nfirst row respective operations behavior 1, secondary series respective operations behavior 2 ..., N row respective operations behavior N, and, online business recommended matrix W m*Nelement W 11represent that the level of interest of operation behavior 1, the 5 plain W of unit occur business information 1 this user 12represent that the level of interest of operation behavior 2, element W occur business information 1 this user 1Nrepresent that the level of interest of operation behavior N occurs business information 1 this user ..., element W mNrepresent that the level of interest of operation behavior N occurs business information M this user.
W M * N = A M * K * C K * K * B 2 K * N = W 11 W 12 . . . W 1 N W 21 W 22 . . . W 2 N . . . . . . . . . . . . W M 1 W M 2 . . . W MN
Further, according to online business recommended matrix W m*N, this user may interested business information be recommended to this user, be specifically as follows:
From user's history file, obtain the business information that user has operated, from online business recommended matrix W m*Nin filter out a line item corresponding to each business information that user has operated.For the online business recommended matrix W after filtering m*Neach business information comprising, the user who comprises according to a line item corresponding to this business information, to level of interest corresponding to every kind of operation behavior of this business information generation and the weight coefficient of every kind of operation behavior, calculates the total interest-degree of this user to this business information transmit operation behavior by default algorithm.
For example, suppose that this business information is business information i, and a line corresponding to business information i is recorded as [W i1, W i2..., W iN].The level of interest of every kind of operation behavior is occurred business information i the user who comprises according to a line item corresponding to business information i to and the weight coefficient of every kind of operation behavior can calculate the total interest-degree W of this user to business information i generation operation behavior by formula as follows (1) i.
W i1*W i12*W i2+……+ω N*W iN……(1)
Wherein, ω 1for the weight coefficient of operation behavior 1, ω 2for the weight coefficient of operation behavior 2 ..., ω nthe weight coefficient of operation behavior N.
Wherein, for the online business recommended matrix W after filtering m*Neach business information comprising, calculates the total interest-degree of this user to each business information generation operation behavior with business information i is the same according to aforesaid operations, then each business information is sorted according to total interest-degree order from big to small.Online business recommended matrix W from sequence m*Nfirst business information comprising starts, and obtains a preset number business information, and the preset number of an obtaining business information is defined as to the interested business information of user's possibility, then these business information is sent to terminal corresponding to this user.
Further, in step 205, can also first obtain the business information that user has operated, from default business information matrix, filter out a line item corresponding to each business information that user has operated, according to business information matrix and the 3rd user interest matrix after filtering, calculate online business recommended matrix again.
In embodiments of the present invention, obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period; The historical record corresponding according to each business information, builds first user interests matrix; According to first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix; According to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.Due to historical record corresponding to each business information operating in very first time section according to user, built first user interests matrix, and utilize first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, obtain the 3rd user interest matrix, the larger business information of level of interest that the online business recommended matrix so obtaining according to the 3rd user interest matrix the comprises current interested business information of being more close to the users, thus the accuracy of recommending business information improved.
Embodiment 3
Referring to Fig. 3, the embodiment of the present invention provides a kind of device that off-line algorithm is calculated online, comprising:
Acquisition module 301, historical record corresponding to each business information operating in very first time section for obtaining this user, very first time section be from current recently and duration be default duration time period;
Build module 302, for the historical record corresponding according to each business information, build first user interests matrix;
Correcting module 303, for according to first user interests matrix, revises preserving the second user interest matrix that calculated off-line obtains, and obtains the 3rd user interest matrix;
Computing module 304, for according to default business information matrix and the 3rd user interest matrix, calculates online business recommended matrix.
Wherein, acquisition module 301 comprises:
The first acquiring unit, obtains historical record corresponding to the business information of running time in very first time section for the history file from this user;
Second acquisition unit, if the number for historical record corresponding to the business information obtained is greater than default number, from historical record corresponding to the business information obtained, obtain the running time from a current nearest default historical record corresponding to several business information.
Wherein, acquisition module 301, if be also less than or equal to default number for the number of historical record corresponding to the business information obtained, selects historical record corresponding to each business information obtaining.
Wherein, building module 302 comprises:
Construction unit, for building business conduct matrix according to historical record corresponding to each business information, the corresponding business information of every a line of business conduct matrix, each is listed as corresponding a kind of operation behavior, the number of times of this user of the element representation in business conduct matrix to business information generation operation behavior;
Obtain component units, for the business information matrix from default, obtain a line item corresponding to each business information and form the first business information matrix;
The 3rd acquiring unit, for according to business conduct matrix and the first business information matrix, obtains first user interests matrix.
Wherein, the 3rd acquiring unit comprises:
The first computation subunit, for the historical record corresponding according to each business information, calculates respectively time correlation coefficient corresponding to each business information;
The second computation subunit, at the first business information matrix by a line item corresponding to each business information time correlation multiplication corresponding with each business information respectively, obtain the second business information matrix;
The 3rd computation subunit, for according to the second business information transpose of a matrix matrix and business conduct matrix, calculates first user interests matrix.
Wherein, the 3rd computation subunit, specifically for according to the second business information transpose of a matrix matrix and business conduct matrix, by formula as follows (1), is calculated first user interests matrix;
B 1 K*N=(R X*KT*F X*N……(1)
In formula (1), B 1 k*Nfor first user interests matrix, first user interests matrix B 1 k*Nline number be that K and columns are N; (R x*K) tbe the second business interests matrix R x*Ktransposed matrix, described the second business interests matrix R x*Kline number be that X and columns are K; F x*Nfor business conduct matrix, business conduct matrix F x*Nline number be that X and columns are N.
Wherein, correcting module 303, comprising:
The first computing unit, for according to first user interests matrix and second user's matrix, by formula as follows (2), calculates the 3rd user interest matrix;
B 2 K*N=B K*N+B 1 K*N……(2)
In formula (2), B 2 k*Nbe the 3rd user interest matrix, the 3rd user interest matrix B 2 k*Nline number be that K and columns are N; B k*Nbe the second user interest matrix, the second user interest matrix B k*Nline number be that K and columns are N.
Wherein, computing module 304, comprising:
The second construction unit, the columns for determining that default business information matrix comprises, builds a diagonal matrix, and the line number of diagonal matrix and columns equate with definite columns, and the element on the diagonal line in diagonal matrix is all default value;
The second computing unit, for according to default business information matrix, diagonal matrix and the 3rd user interest matrix, calculates online business recommended matrix.
Wherein, the second computing unit, comprising:
The 4th computation subunit, for according to according to default business information matrix, diagonal matrix and the 3rd user interest matrix, according to formula as follows (3), calculates online business recommended matrix;
W M*N=A M*K*C K*K*B 2 K*N……(3)
In formula (3), W m*Nfor online business recommended matrix, online business recommended matrix W m*Nline number be that M and columns are N; A m*Kfor business information matrix, business information matrix A m*Kline number be that M and columns are K; C k*Kfor diagonal matrix, diagonal matrix C k*Kline number and columns be all N.
Further, this device, a line item corresponding to each business information for comprising for online business recommended matrix also, there is level of interest and every kind of weight coefficient that operation behavior is corresponding of every kind of operation behavior in this user who comprises according to record, calculates the total level of interest of user to business information generation operation behavior to business information.
In embodiments of the present invention, obtain historical record corresponding to each business information that user operates in very first time section, very first time section be from current recently and duration be default duration time period; The historical record corresponding according to each business information, builds first user interests matrix; According to first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, and obtains the 3rd user interest matrix; According to default business information matrix and the 3rd user interest matrix, calculate online business recommended matrix.Due to historical record corresponding to each business information operating in very first time section according to user, built first user interests matrix, and utilize first user interests matrix, the second user interest matrix that preservation calculated off-line is obtained is revised, obtain the 3rd user interest matrix, the larger business information of level of interest that the online business recommended matrix so obtaining according to the 3rd user interest matrix the comprises current interested business information of being more close to the users, thus the accuracy of recommending business information improved.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (20)

1. a method of off-line algorithm being calculated online, is characterized in that, described method comprises:
Obtain historical record corresponding to each business information that user operates in very first time section, described very first time section be from current recently and duration be default duration time period;
According to historical record corresponding to described each business information, build first user interests matrix;
According to described first user interests matrix, the second user interest matrix that the calculated off-line of preserving is obtained is revised, and obtains the 3rd user interest matrix;
According to default business information matrix and described the 3rd user interest matrix, calculate online business recommended matrix.
2. the method for claim 1, is characterized in that, described in obtain historical record corresponding to each business information that user operates in very first time section, comprising:
From described user's history file, obtain historical record corresponding to the business information of running time in very first time section;
If described in the number of historical record corresponding to the business information obtained be greater than default number, from historical record corresponding to the described business information of obtaining, obtain the running time from a current nearest default historical record corresponding to several business information.
3. method as claimed in claim 2, is characterized in that, described method also comprises:
If described in the number of historical record corresponding to the business information obtained be less than or equal to default number, select historical record corresponding to each business information obtaining.
4. the method for claim 1, is characterized in that, historical record corresponding to each business information described in described basis builds first user interests matrix, comprising:
The historical record corresponding according to each business information builds business conduct matrix, the corresponding business information of every a line of described business conduct matrix, each is listed as corresponding a kind of operation behavior, the number of times of user to business information generation operation behavior described in the element representation in described business conduct matrix;
From default business information matrix, obtain a line item corresponding to described each business information and form the first business information matrix;
According to described business conduct matrix and described the first business information matrix, obtain first user interests matrix.
5. method as claimed in claim 4, is characterized in that, describedly according to described business conduct matrix and described the first business information matrix, obtains first user interests matrix, comprising:
According to historical record corresponding to described each business information, calculate respectively described time correlation coefficient corresponding to each business information;
In described the first business information matrix, by a line item corresponding to described each business information time correlation multiplication corresponding with described each business information respectively, obtain the second business information matrix;
According to described the second business information transpose of a matrix matrix and described business conduct matrix, calculate first user interests matrix.
6. method as claimed in claim 5, is characterized in that, described according to described the second business information transpose of a matrix matrix and described business conduct matrix, calculates first user interests matrix, comprising:
According to described the second business information transpose of a matrix matrix and described business conduct matrix, by formula as follows (1), calculate described first user interests matrix;
B 1 K*N=(R X*KT*F X*N……(1)
In formula (1), B 1 k*Nfor described first user interests matrix, described first user interests matrix B 1 k*Nline number be that K and columns are N; (R x*K) tfor described the second business interests matrix R x*Ktransposed matrix, described the second business interests matrix R x*Kline number be that X and columns are K; F x*Nfor described business conduct matrix, described business conduct matrix F x*Nline number be that X and columns are N.
7. the method for claim 1, is characterized in that, described according to described first user interests matrix, and the second user interest matrix that the calculated off-line of preserving is obtained is revised, and obtains the 3rd user interest matrix, comprising:
According to described first user interests matrix and described second user's matrix, by formula as follows (2), calculate described the 3rd user interest matrix;
B 2 K*N=B K*N+B 1 K*N……(2)
In formula (2), B 2 k*Nfor described the 3rd user interest matrix, described the 3rd user interest matrix B 2 k*Nline number be that K and columns are N; B k*Nfor described the second user interest matrix, described the second user interest matrix B k*Nline number be that K and columns are N.
8. the method for claim 1, is characterized in that, the business information matrix that described basis is default and described the 3rd user interest matrix, calculate online business recommended matrix, comprising:
Determine the columns that described default business information matrix comprises, build a diagonal matrix, the line number of described diagonal matrix and columns equate with described definite columns, and the element on the diagonal line in described diagonal matrix is all default value;
According to described default business information matrix, described diagonal matrix and described the 3rd user interest matrix, calculate described online business recommended matrix.
9. method as claimed in claim 8, is characterized in that, describedly according to described default business information matrix, described diagonal matrix and described the 3rd user interest matrix, calculates described online business recommended matrix, comprising:
According to described default business information matrix, described diagonal matrix and described the 3rd user interest matrix, according to formula as follows (3), calculate described online business recommended matrix;
W M*N=A M*K*C K*K*B 2 K*N……(3)
In formula (3), W m*Nfor described online business recommended matrix, described online business recommended matrix W m*Nline number be that M and columns are N; A m*Kfor described business information matrix, described business information matrix A m*Kline number be that M and columns are K; C k*Kfor described diagonal matrix, described diagonal matrix C k*Kline number and columns be all K.
10. the method as described in claim 1 to 9 any one claim, is characterized in that, the business information matrix that described basis is default and described the 3rd user interest matrix, after calculating online business recommended matrix, also comprise:
A line item corresponding to each business information comprising for described online business recommended matrix, there is level of interest and the weight coefficient corresponding to described every kind of operation behavior of every kind of operation behavior in the described user who comprises according to described record, calculates the total level of interest of described user to described business information generation operation behavior to described business information.
11. 1 kinds of devices that off-line algorithm is calculated online, is characterized in that, described device comprises:
Acquisition module, historical record corresponding to each business information operating in very first time section for obtaining user, described very first time section be from current recently and duration be default duration time period;
Build module, for according to historical record corresponding to described each business information, build first user interests matrix;
Correcting module, for according to described first user interests matrix, the second user interest matrix that the calculated off-line of preserving is obtained is revised, and obtains the 3rd user interest matrix;
Computing module, for according to default business information matrix and described the 3rd user interest matrix, calculates online business recommended matrix.
12. devices as claimed in claim 11, is characterized in that, described acquisition module comprises:
The first acquiring unit, obtains historical record corresponding to the business information of running time in very first time section for the history file from described user;
Second acquisition unit, if the number of the historical record that the business information of obtaining described in being used for is corresponding is greater than default number, from historical record corresponding to the described business information of obtaining, obtain the running time from a current nearest default historical record corresponding to several business information.
13. devices as claimed in claim 12, is characterized in that, described acquisition module, if also for described in the number of historical record corresponding to the business information obtained be less than or equal to default number, select historical record corresponding to each business information obtaining.
14. devices as claimed in claim 11, is characterized in that, described structure module comprises:
The first construction unit, for building business conduct matrix according to historical record corresponding to each business information, the corresponding business information of every a line of described business conduct matrix, each is listed as corresponding a kind of operation behavior, the number of times of user to business information generation operation behavior described in the element representation in described business conduct matrix;
Obtain component units, for the business information matrix from default, obtain a line item corresponding to described each business information and form the first business information matrix;
The 3rd acquiring unit, for according to described business conduct matrix and described the first business information matrix, obtains first user interests matrix.
15. devices as claimed in claim 14, is characterized in that, described the 3rd acquiring unit comprises:
The first computation subunit, for according to historical record corresponding to described each business information, calculates respectively described time correlation coefficient corresponding to each business information;
The second computation subunit, at described the first business information matrix by a line item corresponding to described each business information time correlation multiplication corresponding with described each business information respectively, obtain the second business information matrix;
The 3rd computation subunit, for according to described the second business information transpose of a matrix matrix and described business conduct matrix, calculates first user interests matrix.
16. devices as claimed in claim 15, is characterized in that,
Described the 3rd computation subunit, specifically for according to described the second business information transpose of a matrix matrix and described business conduct matrix, by formula as follows (1), is calculated described first user interests matrix;
B 1 K*N=(R X*KT*F X*N……(1)
In formula (1), B 1 k*Nfor described first user interests matrix, described first user interests matrix B 1 k*Nline number be that K and columns are N; (R x*K) tfor described the second business interests matrix R x*Ktransposed matrix, described the second business interests matrix R x*Kline number be that X and columns are K; F x*Nfor described business conduct matrix, described business conduct matrix F x*Nline number be that X and columns are N.
17. devices as claimed in claim 11, is characterized in that, described correcting module, comprising:
The first computing unit, for according to described first user interests matrix and described second user's matrix, by formula as follows (2), calculates described the 3rd user interest matrix;
B 2 K*N=B K*N+B 1 K*N……(2)
In formula (2), B 2 k*Nfor described the 3rd user interest matrix, described the 3rd user interest matrix B 2 k*Nline number be that K and columns are N; B k*Nfor described the second user interest matrix, described the second user interest matrix B k*Nline number be that K and columns are N.
18. devices as claimed in claim 11, is characterized in that, described computing module, comprising:
The second construction unit, for the columns of determining that described default business information matrix comprises, build a diagonal matrix, the line number of described diagonal matrix and columns equate with described definite columns, and the element on the diagonal line in described diagonal matrix is all default value;
The second computing unit, for according to described default business information matrix, described diagonal matrix and described the 3rd user interest matrix, calculates described online business recommended matrix.
19. devices as claimed in claim 18, is characterized in that, described the second computing unit, comprising:
The 4th computation subunit, for according to according to described default business information matrix, described diagonal matrix and described the 3rd user interest matrix, according to formula as follows (3), calculates described online business recommended matrix;
W M*N=A M*K*C K*K*B 2 K*N……(3)
In formula (3), W m*Nfor described online business recommended matrix, described online business recommended matrix W m*Nline number be that M and columns are N; A m*Kfor described business information matrix, described business information matrix A m*Kline number be that M and columns are K; C k*Kfor described diagonal matrix, described diagonal matrix C k*Kline number and columns be all K.
20. devices as described in claim 11 to 19 any one claim, it is characterized in that, described device, a line item corresponding to each business information for comprising for described online business recommended matrix also, there is level of interest and the weight coefficient corresponding to described every kind of operation behavior of every kind of operation behavior in the described user who comprises according to described record, calculates the total level of interest of described user to described business information generation operation behavior to described business information.
CN201310688366.8A 2013-12-16 2013-12-16 A kind of method that off-line algorithm is carried out calculating online and device Active CN104090892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310688366.8A CN104090892B (en) 2013-12-16 2013-12-16 A kind of method that off-line algorithm is carried out calculating online and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310688366.8A CN104090892B (en) 2013-12-16 2013-12-16 A kind of method that off-line algorithm is carried out calculating online and device

Publications (2)

Publication Number Publication Date
CN104090892A true CN104090892A (en) 2014-10-08
CN104090892B CN104090892B (en) 2016-06-08

Family

ID=51638608

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310688366.8A Active CN104090892B (en) 2013-12-16 2013-12-16 A kind of method that off-line algorithm is carried out calculating online and device

Country Status (1)

Country Link
CN (1) CN104090892B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190803A (en) * 2018-08-14 2019-01-11 北京粉笔未来科技有限公司 Prediction technique, calculates equipment and storage medium at device
CN114065044A (en) * 2021-11-23 2022-02-18 聚好看科技股份有限公司 Content recommendation optimization method and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060198430A1 (en) * 2005-03-03 2006-09-07 Adaptive Spectrum And Signal Alignment, Inc. DSL state and line profile control
CN101287082A (en) * 2008-05-16 2008-10-15 华东师范大学 Collaborative filtered recommendation method introducing hotness degree weight of program
CN101694652A (en) * 2009-09-30 2010-04-14 西安交通大学 Network resource personalized recommended method based on ultrafast neural network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060198430A1 (en) * 2005-03-03 2006-09-07 Adaptive Spectrum And Signal Alignment, Inc. DSL state and line profile control
CN101287082A (en) * 2008-05-16 2008-10-15 华东师范大学 Collaborative filtered recommendation method introducing hotness degree weight of program
CN101694652A (en) * 2009-09-30 2010-04-14 西安交通大学 Network resource personalized recommended method based on ultrafast neural network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190803A (en) * 2018-08-14 2019-01-11 北京粉笔未来科技有限公司 Prediction technique, calculates equipment and storage medium at device
CN109190803B (en) * 2018-08-14 2020-08-25 北京猿力未来科技有限公司 Prediction method, prediction device, computing equipment and storage medium
CN114065044A (en) * 2021-11-23 2022-02-18 聚好看科技股份有限公司 Content recommendation optimization method and server

Also Published As

Publication number Publication date
CN104090892B (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN101324948B (en) A kind of method of information recommendation and device
CN103886487B (en) Based on personalized recommendation method and the system of distributed B2B platform
JP7105700B2 (en) Time-division recommendation method and apparatus for service target
CN101432713B (en) Method and system for providing content to users based on frequency of interaction
US20140181121A1 (en) Feature embedding in matrix factorization
US20070005425A1 (en) Method and system for predicting consumer behavior
US20120036037A1 (en) Product reccommendation system
US8438280B1 (en) Detecting and reporting on consumption rate changes
US20120143718A1 (en) Optimization of a web-based recommendation system
US8799455B1 (en) Addressable network resource selection management
CN102033883A (en) Method, device and system for improving data transmission speed of website
CN103678518A (en) Method and device for adjusting recommendation lists
KR20150135196A (en) Tailoring user experience for unrecognized and new users
CN101271559A (en) Cooperation recommending system based on user partial interest digging
KR102049777B1 (en) Item recommendation method and apparatus based on user behavior
US20150332315A1 (en) Click Through Ratio Estimation Model
CN105701108A (en) Information recommendation method, information recommendation device and server
US20130166415A1 (en) Adapting Mobile Catalogs by Filtering for Available Products, Mass Movers and Hot-Sellers
CN109242654A (en) A kind of item recommendation method and system
CN103927673A (en) Method and device for recommending service information
CN104317790A (en) Big-data based user behavior control method and system
CN109710611A (en) The method of storage table data, the method, apparatus of lookup table data and storage medium
CN105678335A (en) Click rate pre-estimation method, device and calculating equipment
CN110188268A (en) A kind of personalized recommendation method based on label and temporal information
CN110310168A (en) Method of adjustment, device, server and the storage medium of model

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant