Disclosure of Invention
It is an object of the present application to overcome the above problems or to at least partially solve or mitigate the above problems.
According to aspects of the present application, there are provided social connections recommendation methods, comprising:
calculating a link index between the th user and each user in the th user address list;
a vector generation step of receiving the industry demand sent by the th user and generating a supply vector based on the industry demand;
and a similar user recommending step of calculating a similar user list meeting the th user requirement based on the supply vector and the link index and sending the similar user list to the th user.
The method can establish a user portrait with the user demand attribute as a main characteristic based on the demand attribute of the user on a social platform, assist the user to establish a deep demand network based on the portrait through the user demand on a multi-dimensional industry and the user multi-dimensional portrait, and recommend a plurality of users with high similarity to the user to online users so as to establish virtual links and docking demands among the users according to the similarity.
Optionally, the link index calculating step includes:
calculating a link index based on the user's address book by calculating a parameter profile between the th user and a second user in the th user address book, the parameter profile including at least of the following:
the number of users in the th user address book;
the number of users in the second user address list;
the times of the th user are saved in the address book of other users, wherein the other users are users outside the second user in the address book of the th user;
storing the times of the second user in the address book of other users, wherein the other users are users outside the second user in the address book of the th user;
, the number of users present in both the user address book and the second user address book;
a number of users present in either said th user address book only or said second user address book only;
simultaneously saving th user and the second user in the address list;
and storing th user or the number of the second users in the address book.
Optionally, the vector generating step comprises the steps of:
receiving industry requirements sent by the th user, wherein the industry requirements comprise industries where the th user is located, interested industries and other industries, the industries in the industry requirements are respectively endowed with different weights, and a requirement vector of the th user is generated based on the weights;
and generating a supply vector according to the demand vector of the th user and the supply and demand distribution matrix among various industries.
Optionally, the similar user recommending step includes:
based on the offer vector, finding a matching user to the th user;
and sorting the users matched with the th user based on the link indexes to obtain a similar user list, and sending the similar user list to the th user.
According to another aspects of the present application, there is also provided social connections recommendation devices, comprising:
a link index calculation module configured to calculate a link index between the th user and each user in the th user address list;
a vector generation module configured to receive the industry requirements sent by the th user, generate a supply vector based on the industry requirements, and
a similar users recommendation module configured to calculate a list of similar users meeting the user requirements based on the offer vector and the link index and send the list of similar users to the user.
The device can establish a user portrait with the user demand attribute as the main characteristic based on the demand attribute of the user on the social platform, assist the user to establish a deep demand network based on the portrait through the user demand on the multidimensional industry and the user multidimensional portrait, and recommend a plurality of users with high similarity to the user to the online user so as to establish virtual link and butt joint demands among the users according to the similarity.
Optionally, the vector generation module includes:
a demand vector generation module, configured to receive industry demands sent by the th user, where the industry demands include an industry in which the th user is located, an interested industry, and other industries, and the industry demands are respectively given different weights, and a demand vector of the th user is generated based on the weights;
a supply vector generating module configured to generate supply vectors according to the demand vectors of the th users and the supply and demand distribution degree matrix among the industries.
According to another aspects of the application, the social connections recommendation system is further provided, which includes a th server, a master memory, a slave memory and a second server, wherein the master memory is connected to the th server, the master memory and the slave memory are respectively connected to the second server, the second server is loaded with a recommendation calculation engine and an index database, the master memory is connected to the slave memory and ensures real-time synchronization of information by streaming copy, wherein the second server is used for calculating link indexes between a th user and each user in the th user address book and storing the link indexes in the slave memory, the th server is used for receiving industry requirements sent by the th user and transmitting the industry requirements to a recommendation calculation engine of the second server through the master memory, the recommendation calculation engine sends the industry requirements to the index database, the index database generates a supply vector based on the industry requirements and recommends the supply vector to the recommendation calculation engine, the recommendation calculation engine meets a similar link index in the th user list and sends the similar user calculation to the user.
The system can establish a user portrait with the user demand attribute as a main characteristic based on the demand attribute of the user on a social platform, assist the user to establish a deep demand network based on the portrait through the user demand on a multi-dimensional industry and the user multi-dimensional portrait, and recommend a plurality of users with high similarity to the user to online users so as to establish virtual links and docking demands among the users according to the similarity.
Optionally, the index database is used for respectively assigning different weights to industries in the industry demands, generating th user demand vectors based on the weights, and generating supply vectors according to th user demand vectors and supply and demand distribution degree matrixes among the industries, wherein the industry demands include the th user industry, industries of interest and other industries.
According to another aspects of the present application, there is also provided computer-readable storage media, preferably non-volatile readable storage media, having stored therein a computer program which, when executed by a processor, implements the method as described above.
According to another aspects of the present application, there are also provided computer program products comprising computer readable code which, when executed by a computing device, causes the computing device to perform the method as described above.
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Detailed Description
The above and other objects, advantages and features of the present application will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
FIG. 1 is a schematic flow diagram of examples of social connections recommendation methods according to the present application.
S100, calculating a link index, namely calculating the link index between the th user and each user in the th user address list;
s200, a vector generating step, namely receiving the industry demand sent by the th user and generating a supply vector based on the industry demand;
s300, a similar user recommending step, namely calculating a similar user list meeting the requirements of the user based on the supply vector and the link index, and sending the similar user list to the user.
The method can establish a user portrait with the user demand attribute as a main characteristic based on the demand attribute of the user on a social platform, assist the user to establish a deep demand network based on the portrait through the user demand on a multi-dimensional industry and the user multi-dimensional portrait, and recommend a plurality of users with high similarity to the user to online users so as to establish virtual links and docking demands among the users according to the similarity.
It can be understood that there is no requirement for the execution sequence between the step of calculating the link index of S100 and the step of generating the vector of S200, and the steps may be executed simultaneously or of the steps may be executed first according to the selection of the user.
Optionally, the S100 link index calculating step includes:
calculating a link index based on the address book of the user by calculating parameter characteristics between the th user U1 and a second user U2 in the th user address book, wherein the parameter characteristics comprise at least of the following characteristics:
the number O of users in the th user address bookU1;
The number O of users in the second user address listU2;
The times I of the th user are stored in the address book of other usersU1Wherein, the other users are users outside the second user in the th user address list;
saving the times I of the second user in the address list of other usersU2Wherein, the other users are users outside the second user in the th user address list;
number of users IO appearing in both the th user address book and the second user address bookU1,U2;
The number UO of users appearing only in the th user address book or only in the second user address bookU1,U2;
Simultaneously saving the th user and the number II of the second users in the address bookU1,U2;
Saving th user or the second user's number of users UI in an address bookU1,U2。
The address book of the th user U1 stores information of the second user, thus constructing a user pair < U1, U2 >. based on or more of the above eight features, a link index between the th user and the second user is calculated for each case.
If the th user U1 and the second user U2 are present in the address book of each other, the index of possible link establishment between each other is:
if the second user U2 appears user in the address book of U1, but user U1 does not appear in the address book of the second user U2, the user U1 may establish a link index to the second user U2 of:
at this time, the possible link establishment indexes of the second user U2 to the user U1 are:
if neither the th user U1 nor the second user U2 are present in the other's address book, then the second user U2 may establish a link index to the th user U1 of:
by the method, the link indexes among the registered users on the platform can be obtained based on the address book of the th user, and social connections are recommended based on real social relations.
Optionally, the S200 vector generating step includes the steps of:
a demand vector generation step of receiving industry demands sent by the th user, wherein the industry demands comprise industries where the th user is located, interested industries and other industries, endowing the industries in the industry demands with different weights respectively, and generating a demand vector of the th user based on the weights;
and generating supply vectors according to the demand vectors of the th users and the supply and demand distribution matrixes among various industries.
users registered on the platform can select own industry and interested industry, and according to the importance in supply and demand, the weight value given to the industry in which users are located is 2, the weight value given to the industry in which users are interested is 1, and the weight value given to the industry in which users are not selected is 0, so that a demand vector of users is formed.
According to experience, the supply and demand matching degrees of different industries are different and unequal, for example, the supply and demand matching degree of the software industry to the medical industry is 1.5, the supply and demand matching degree of the software industry to the agricultural industry is 1, otherwise, the supply and demand matching degree of the medical industry to the software industry may be 3, and the supply and demand matching degree of the agricultural industry to the software industry may be 2.
This reduces the storage space, and when the demand vector is needed, the demand vector is calculated according to the latest industry demand of user, so as to ensure that the industry demand data involved in calculation is the latest data and the data update is not ignored.
Optionally, the S300 similar user recommending step includes:
based on the offer vector, finding a matching user to the th user;
and sorting the users matched with the th user based on the link indexes to obtain a similar user list, and sending the similar user list to the th user.
The operation relation between the link indexes and the similarity can be set according to the requirement, for example, the calculation is carried out in a weighted average mode, or the link indexes and the similarity are multiplied according to a rule of , so that the sequencing of the similar users is obtained.
Embodiments of the present application also provide social connections recommendation devices fig. 2 is a schematic block diagram of examples of social connections recommendation devices according to the present application.
A linkindex calculation module 100 configured to calculate a link index between the th user and each user in the th user address list;
a vector generation module 200 configured to receive the industry requirements sent by the th user, generate a supply vector based on the industry requirements, and
a similar users recommendation module 300 configured to calculate a list of similar users satisfying the user requirements based on the offer vector and the link index and send the list of similar users to the user.
The device can establish a user portrait with the user demand attribute as the main characteristic based on the demand attribute of the user on the social platform, assist the user to establish a deep demand network based on the portrait through the user demand on the multidimensional industry and the user multidimensional portrait, and recommend a plurality of users with high similarity to the user to the online user so as to establish virtual link and butt joint demands among the users according to the similarity.
Optionally, the vector generating module 200 includes:
a demand vector generation module, configured to receive industry demands sent by the th user, where the industry demands include an industry in which the th user is located, an interested industry, and other industries, and the industry demands are respectively given different weights, and a demand vector of the th user is generated based on the weights;
a supply vector generating module configured to generate supply vectors according to the demand vectors of the th users and the supply and demand distribution degree matrix among the industries.
The system can comprise a th server, a main memory, a secondary memory and a second server, wherein the main memory is connected with the nd server, the main memory and the secondary memory are respectively connected with the second server, the second server is loaded with a recommendation calculation engine and an index database, the main memory is connected with the secondary memory and ensures real-time synchronization of information through streaming copy, the second server is used for calculating a link index between a th user and each user in the th user address list and storing the link index in the secondary memory, the th server is used for receiving the industry demand sent by the th user and transmitting the industry demand to a recommendation calculation engine of the second server through the main memory, the recommendation calculation engine transmits the industry demand to the index database, the index database generates a supply vector based on the industry demand and transmits the supply vector to the recommendation calculation engine, the calculation database meets the similar user demand calculation of the second server based on the supply vector and the link index in the secondary memory, and transmits 368678 to the similar user.
The system can establish a user portrait with the user demand attribute as a main characteristic based on the demand attribute of the user on a social platform, assist the user to establish a deep demand network based on the portrait through the user demand on a multi-dimensional industry and the user multi-dimensional portrait, and recommend a plurality of users with high similarity to the user to online users so as to establish virtual links and docking demands among the users according to the similarity.
Optionally, the index database is used for respectively assigning different weights to industries in the industry demands, generating th user demand vectors based on the weights, and generating supply vectors according to th user demand vectors and supply and demand distribution degree matrixes among the industries, wherein the industry demands include the th user industry, industries of interest and other industries.
The th user initiates a request to the Java microserver through a user terminal, for example, a pre-installed Application (APP) on a mobile device after completing identity and security verification of th user, if the th user is judged to be a legal user, the request is initiated to the main memory to read recommended users with matching supply and demand calculated by a recommendation calculation engine in advance, and a recommended user list and necessary user information are returned to the user terminal through a network and presented to the user.
The flow of the user for the recommendation calculation engine to calculate supply and demand matching is as follows, for th users, the recommendation calculation engine firstly initiates a request to an industry supply and demand index database, the supply and demand index database is responsible for calculating a plurality of users which are most matched with the th user supply and demand, then a matching user list and the similarity are returned to the recommendation calculation engine, the recommendation calculation engine requests to read information from a storage for storing user images, the information comprises user basic information, user link indexes, user hierarchy and the like, the recommendation calculation engine sorts the recommended users in the matching user list according to the similarity and the information requested to be read from the storage, and finally the obtained similar user list is stored in a main memory.
In order to avoid read-write competition during calculation and improve the overall service quality, the high-speed storage device is divided into a main memory and a secondary memory. The main memory is a read-write memory, and the secondary memory is a read-only memory. Real-time synchronization of information is ensured between the master and slave memories by streaming replication. When the calculation engine is recommended to calculate, a large number of read operations are performed on the secondary storage, and only a small number of write operations related to the final recommendation result occur on the primary storage.
FIG. 4 is a schematic block diagram of another examples of a social context recommendation system according to the present application, showing a data transmission process in an online mode, where when an industry demand of a th user changes, a Java micro server establishes a user information change event queue including user change event messages, a recommendation calculation engine of a second server monitors the user information change event queue in real time, if an unprocessed event is found and the event is related to the supply and demand of a th user, the event related to the supply and demand is read and deleted from the queue, and for the read event, an identification code of a th user is read from the content of the event, and then a recommendation calculation task is triggered and calculated for the th user in the offline mode.
An embodiment of the present application further provides computer-readable storage media comprising a storage unit for program code, the storage unit being provided with a program for performing the steps of the method according to the invention, the program being executed by a processor.
computer program products containing instructions comprising computer readable code which when executed by a computing device causes the computing device to perform the method as described above are also provided.
The computer instructions may be stored in a computer readable storage medium, or transmitted from website sites, computers, servers, or data centers via wired (e.g., coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) to website sites, computers, servers, or data centers, for example, via a Solid state computer readable storage medium, such as a Solid state disk, a Solid state computer readable storage medium, a Solid state disk, a magnetic storage medium, a Solid state disk, a magnetic disk, a Solid state disk, a magnetic disk, a Solid state disk, a magnetic disk, a.
should also further be appreciated that the exemplary elements and algorithm steps described in connection with the embodiments disclosed herein can be implemented as electronic hardware, computer software, or combinations of both, and that the exemplary components and steps have been described in the foregoing description generally in terms of functionality for clarity of illustrating interchangeability of hardware and software.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by a program, and the program may be stored in a computer-readable storage medium, where the storage medium is a non-transitory medium, such as a random access memory, a read only memory, a flash memory, a hard disk, a solid state disk, a magnetic tape (magnetic tape), a floppy disk (floppy disk), an optical disk (optical disk), and any combination thereof.
The above description is only for the preferred embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.