Commodity parallel dynamic pushing method in e-commerce platform
An e-commerce platform and commodity technology, which is applied in the fields of parallel dynamic push of commodities, multi-threaded computing and e-commerce website push, and parallel clustering, which can solve the problems of time-consuming, inability to push commodities to customers, and difficulty in maintenance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
example 1
[0108] Example 1: Build a matrix.
[0109] Taking the construction of scoring matrix as an example, set the master process ID number master_id=0, and the slave process ID number slaver_id=1;
[0110] The main process master constructs the scoring matrix, the function is MasterConstructMatrix(type), as follows:
[0111] S_MasterConstructMatrix_1, initialize the MPI environment, and obtain server parameters;
[0112] S_MasterConstructMatrix_2, start all slave processes in the distributed cluster to construct block matrix;
[0113] S_MasterConstructMatrix_3, use the MPI_Recv(0, 1, matrix, &status) function to receive the block matrix constructed from the process, and assemble it into a complete matrix;
[0114] S_MasterConstructMatrix_4, the main process construction matrix ends;
[0115] Construct the block matrix in parallel from the process slaver, the function is SlaverConstructMatrix(type), as follows:
[0116] S_SlaverConstructMatrix_1. Construct the block matrix matrix...
example 2
[0119] Example 2: Parallel clustering of customers.
[0120] Let the number of clusters generated be k 1 =2,k 2 =3,k 3 =4, master process ID number master_id=0, assign three slave processes, the ID numbers of the slave processes are 1, 2, 3 in turn; w=1, c 1 =c 2 =2,z 1 =z 2 =0.5, r=1;
[0121] Let each row vector in the customer matrix be:
[0122] u 1 =(4,0,0,5,1,0,0,3); U 2 =(5,5,4,0,0,2,0,0);
[0123] u 3 =(0, 0, 0, 2, 5, 4, 3, 3); U 4 =(0,3,0,2,0,0,3,0);
[0124] u 5 =(3,2,0,2,0,0,4,0); U 6 =(4,0,0,0,1,0,0,2);
[0125] u 7 =(5,0,4,0,0,3,0,0); U 8 =(0,0,0,2,4,0,3,3);
[0126] u 9 =(0,2,0,0,0,0,3,0); U 10 =(3,2,0,0,0,0,4,0);
[0127] The target customer is U 3 , the slave process takes slaver_id=1 as an example, and the number of threads allocated from the process is 4;
[0128] The main process master executes the particle swarm optimization algorithm to optimize the number k of clusters. The function is MasterAirosol(), as follows:
[0129] S_Maste...
example 3
[0197] Example 3: Parallel calculation of product similarity.
[0198] Let each customer's rating vector for the product in the rating matrix be:
[0199] R 1 =(-0.33, 1.17, 0.83, 0);
[0200] R 2 =(0, -0.25, 0, 0.25);
[0201] R 3 =(-1.25,0,1.25,0);
[0202] R 4 =(0.5,0,0,-0.5);
[0203] Each commodity vector in the commodity attribute matrix is:
[0204] I 1 =(0,0,1,0);
[0205] I 2 =(1,0,1,1);
[0206] I 3 =(1,1,1,0);
[0207] I 4 =(0,0,0,1);
[0208] The number of allocated threads is 2, the similarity weight is w=0.4, and the target product is I 4 ;
[0209] The function for parallel calculation of product similarity is ParallelSim(), as follows:
[0210] S_ParallelSim_1, allocate 2 threads and add them to the thread queue Queue, that is, Queue=(thread_1, thread_2);
[0211] S_ParallelSim_2, set similarity weight w=0.4;
[0212] S_ParallelSim_3, thread thread_1, thread_2 dequeue, Queue=(empty);
[0213] S_ParallelSim_4, the commodity I 1 , I 2 Assig...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com