CN104660712A - Offline downloading method and device - Google Patents
Offline downloading method and device Download PDFInfo
- Publication number
- CN104660712A CN104660712A CN201510112096.5A CN201510112096A CN104660712A CN 104660712 A CN104660712 A CN 104660712A CN 201510112096 A CN201510112096 A CN 201510112096A CN 104660712 A CN104660712 A CN 104660712A
- Authority
- CN
- China
- Prior art keywords
- information source
- heat value
- type
- value
- mrow
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 238000004364 calculation method Methods 0.000 claims description 31
- 238000012937 correction Methods 0.000 claims description 29
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 6
- 239000011159 matrix material Substances 0.000 description 3
- 238000010606 normalization Methods 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 238000012706 support-vector machine Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/59—Providing operational support to end devices by off-loading in the network or by emulation, e.g. when they are unavailable
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides an offline downloading method. The method comprises calculating the hot degree of an information source according to the usage amount of the information source and determining an offline downloading order of the information source according to the hot degree of the information source. After the hot degree of the information source is calculated and the offline downloading order is determined according to the hot degree of the information source, the information source can be automatically downloaded in an offline manner according to the offline downloading order; the method is capable of achieving the offline downloading of the information source without manual operation, and therefore, the offline downloading efficiency of the information source can be remarkably improved and relatively good experience is brought for users. Besides, the invention also provides an offline downloading device in another embodiment.
Description
Technical Field
The embodiment of the invention relates to the technical field of internet, in particular to an offline downloading method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
With the development of mobile internet technology, more and more information applications are applied to mobile clients, and each information application generally provides a plurality of information sources for users to subscribe, and simultaneously provides an offline downloading function of information source data for users.
In the prior art, the off-line downloading scheme of the information source is generally that a user manually selects the information source to be downloaded and manually initiates the downloading.
Disclosure of Invention
However, a user may use a plurality of information applications, each of which subscribes to a plurality of information sources, and if the information sources are downloaded manually in the prior art, the downloading process needs to be repeated many times, and especially when the number of the information sources is large, it takes a lot of time to select the information sources for downloading, which is inefficient.
For the automatic downloading of the information sources, the prior art lacks a corresponding triggering basis, especially the downloading sequence of each information source.
For this reason, there is a great need for an automatic ordering scheme for information sources, which is used as a basis for automatic offline downloading.
In this context, embodiments of the present invention are intended to provide an offline downloading method and apparatus.
In a first aspect of embodiments of the present invention, an offline downloading method is provided, for example, the method may include: calculating the heat value of the information source according to the usage amount of the information source; and determining the off-line downloading sequence of the information source according to the heat value of the information source.
In a second aspect of embodiments of the present invention, there is provided an offline download apparatus, for example, the apparatus may include: the calculating unit is used for calculating the heat value of the information source according to the using amount of the information source; the first determining unit is used for determining the off-line downloading sequence of the information source according to the heat value of the information source.
According to the offline downloading method and device provided by the embodiment of the invention, the heat value of the information source can be obtained through calculation according to the usage amount of the information source, the heat value of the information source can reflect the preference degree of a user on the information source, the offline downloading sequence of the information source is determined according to the heat value of the information source, the information source can be automatically downloaded offline according to the offline downloading sequence of the information source, the offline downloading of the information source can be intelligently realized, the trouble of manually downloading the information source is avoided, the time for selecting the information source for downloading is remarkably reduced, the efficiency is improved, and better experience is brought to the user.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
FIG. 1 schematically illustrates a framework diagram of an exemplary application scenario, according to an embodiment of the present invention;
FIG. 2 is a flow chart schematically illustrating an embodiment of an offline download method according to an embodiment of the present invention;
FIG. 3 is a flow chart that schematically illustrates one implementation of calculating a heat value for an information source, in accordance with an embodiment of the present invention;
FIG. 4 is a flow diagram that schematically illustrates one implementation of offline downloading of information sources, in an embodiment of the present invention;
fig. 5 is a block diagram schematically illustrating an example of an offline download apparatus according to an embodiment of the present invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, an offline downloading method and device are provided.
In this document, it is to be understood that any number of elements in the figures are provided by way of illustration and not limitation, and any nomenclature is used for differentiation only and not in any limiting sense.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that in the prior art, more and more information applications are applied to the mobile client, each information application user usually subscribes to a plurality of information sources, and the current offline downloading of information source data requires that the user self-selects which information sources to download and manually triggers the downloading, so that when the information sources subscribed by the user are many, the manual downloading of the information sources is undoubtedly a time-consuming and labor-consuming matter, namely, the efficiency of downloading the information sources is low.
Aiming at the problems, the inventor proposes to adopt a modeling scheme to reflect the preference degree of a user to an information source, namely the heat value of the information source can be calculated by using the usage amount of the information source, then the offline downloading sequence of the information source is determined according to the heat value of the information source, the automatic information source is downloaded offline according to the offline downloading sequence of the information source, and the offline downloading of the information source is not required to be performed manually, so that the offline downloading efficiency of the information source is obviously improved, and better experience is brought to the user; and the information source is downloaded off-line according to the off-line downloading sequence of the information source, so that the information source with high heat value can be guaranteed to be downloaded preferentially, and the downloading amount of data is reduced.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring first to fig. 1, fig. 1 is a block diagram of an exemplary application scenario of an embodiment of the present invention. Wherein, the user interacts with the server 101 providing the information application service through the client 102 on the user equipment. Those skilled in the art will appreciate that the block diagram shown in FIG. 1 is merely one example in which embodiments of the present invention may be implemented. The scope of applicability of embodiments of the present invention is not limited in any way by this framework.
It is noted that the user device herein may be any user device now existing, developing or developed in the future that is capable of enabling interaction of the client 102 thereon with the server 101 via any form of wired and/or wireless connection (e.g., Wi-Fi, LAN, cellular, coaxial cable, etc.), including but not limited to: existing, developing, or future developing smartphones, non-smartphones, tablets, laptop personal computers, desktop personal computers, minicomputers, midrange computers, mainframe computers, and the like.
It should also be noted that the server 101 is only one example of an existing, developing or future developing device capable of providing information-based application services to users. The embodiments of the invention are not limited in any way in this respect.
Based on the framework shown in FIG. 1, the client 102 can calculate the heat value of the information source according to the usage amount of the information source; then, the client 102 can determine the offline downloading sequence of the information source according to the heat value of the information source.
It is to be appreciated that while the acts of embodiments of the present invention are described herein and below as being performed by client 102 in the context of the application of the present invention, the present invention is not limited in the subject of execution, as long as the acts disclosed in embodiments of the present invention are performed.
Exemplary method
A method for offline downloading according to an exemplary embodiment of the present invention is described below with reference to fig. 2-4 in conjunction with the application scenario of fig. 1. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Referring to fig. 2, a flowchart of an embodiment of the offline downloading method in the present invention is shown, which may specifically include the following steps:
step 201, calculating the heat value of the information source according to the usage amount of the information source.
The popularity value of the information source can reflect the user's preference degree to the information source, thereby realizing the quantification of the user's preference degree to the information source, and the higher the popularity value is, the deeper the preference degree is represented. Can establish a heat model for the heat value of the information source, and calculate the heat value of the information source based on the usage amount of the information source. Each information application can record the usage of the information source provided by the information application by the user, and the usage of the information source can represent the actual usage of the information source, for example, the usage number per unit time or the usage duration per unit time can be measured.
For example, in some possible embodiments, the specific implementation of step 201 may include: dividing the information source into several types; and performing weighting calculation to obtain the heat value of each information source according to the usage amount of each information source in each type and the correction value of each information source in the type.
Each information source can have a type attribute, such as news, entertainment, etc., and the information sources can be divided into several types according to the type attribute of the information source. When the heat value of the information source is calculated, the type of the information source is considered, so that the overall preference degree of the user and the preference degree of the user to the information source under different classification conditions can be reflected more truly.
In some possible embodiments, the performing the weighted calculation according to the usage amount of each information source in each type and the corrected value of each information source in the type to obtain the heat value of each information source may include: obtaining a first calculation term according to the sum of the usage of each information source in each type, the first weighting coefficient and the usage of the current information source in the type; obtaining a second calculation term according to the sum of the correction values of all information sources in the type, the first weighting coefficient and the correction value of the current information source in the type; and obtaining the heat value of the current information source in the type according to the first calculation item, the second weighting coefficient and the second calculation item.
In particular, it is assumed that the subscriber has an information source S1,…,SnEach information source having a type attribute, for any type T information source ST1,…,STkCorresponding heat value is RT1,…,RTkThe usage amount of each information source is UT1,…,UTkThe sum of the heat values of all information sources under type T is RTThe above parameters satisfy the following relations:
wherein R isTiThe heat value of the ith information source with the type of T is used for representing the preference degree of the user to the information source, and the larger the value is, the higher the preference degree of the user to the information source is represented; alpha and beta are weighting coefficients, and the value range of alpha is alpha epsilon (0, 1)]The value range of beta belongs to [0,1) and alpha + beta is 1; k is the total number of information sources of type T, RTIs the sum of the heat values of the information sources with the type T; u shapeTiThe usage amount of the ith information source with the type of T represents the actual usage degree of the information source, and can be measured by using the usage times in unit time or the usage duration in unit time; dTiThe server background data can be received from the server, and the background data can represent the actual measured heat value of each information source measured by the server, wherein i in the parameters is a positive integer.
In order to prevent the difference between the number levels of the parameters from being too large, in practical application, normalization processing may be performed on each parameter, for example, normalization processing is performed by using linear conversion, logarithmic conversion, and the like, and the normalization mode may be determined according to actual needs.
Converting the above relationship into a matrix form:
the shift calculation of the matrix can obtain:
wherein,full rank, the inverse of which must exist.
Thus, the matrix is sorted to obtain an information source thermal model: <math>
<mrow>
<msub>
<mi>R</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<mi>α</mi>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
</math> the heat value of each information source can be calculated by using the information source heat model.
That is to sayBeta is understood as the first weighting factor and alpha is understood as the second weighting factor, U, for the sum of the usage of the individual information sources in each typeTiThen for the usage of the current information source in the type, a first calculation term is obtained according to the sum of the usage of each information source in each type, the first weighting factor and the usage of the current information source in the typeIn a similar manner, the first and second substrates are,is the sum of the correction values of the individual information sources of the type, dTiA second calculation term is obtained for the correction value of the current information source of the type based on the sum of the correction values of the individual information sources of the type, the first weighting factor and the correction value of the current information source of the typeThus, the heat value R of the current information source in the typeTiThe first calculation term, the second weighting factor and the second calculation term may be used to obtain:
the information source heat model can be understood as a local model of each information source heat value, the initial values of the second weighting coefficient alpha and the first weighting coefficient beta can be set according to empirical values, dTiThe initial value of the data source can be 0, that is, when the background data is not used in the initial state, the thermal model of the data source can beIn addition, when β is equal to 0, the information source heat model can be simplified to RTi=UTi+dTiIf d isTiAlso, the value is 0, so that the usage amount of directly using the information source can be simplifiedCalculating the heat value of the information source.
The embodiment utilizes the usage amount of each information source in each type and the correction value of each information source in the type to carry out weighting calculation to obtain the heat value of each information source, and the influence of the heat value of the classification of the information source can be considered when calculating the heat value of a single information source, so that the whole preference information of a user can be reflected more truly; the heat value of the information source can be respectively calculated according to different classification modes, and the preference degree of a user to the information source under different classification conditions is reflected; in addition, the weighting proportion can be freely distributed when the heat value is calculated, the overall management of the application on the preference degree of a user is facilitated, the heat value calculated only according to the usage amount can be realized by adjusting the weighting proportion, an information source heat value model is simple, and the calculation amount is small.
According to another embodiment of the present invention, the calculated heat value of each information source can be corrected.
In some possible embodiments, the modifying the calculated heat value of each information source may include: calculating a first weighting coefficient and a second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type, and recalculating to obtain the heat value of each information source by using the first weighting coefficient and the second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type; the error function is the sum of model errors of each information source in each type, and the model errors are the difference between the actually measured heat value of the information source and the calculated heat value of the information source.
I.e. calculating a second weighting factor alpha, a first weighting factor beta, a correction value d for the information source of the type in question, which minimizes the error functionTiIs selected from the group consisting ofTiIs corrected to alpha, beta, d which minimizes the error functionTiTaking the value of (A);
the error function is the sum of the model errors of the individual sources of information in each type, i.e.Wherein e isTiIs the model error of the ith type T information source, i.e. the difference between the actual measured heat value of the information source and the heat value of the information source: <math>
<mrow>
<msub>
<mi>e</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<msubsup>
<mi>R</mi>
<mi>Ti</mi>
<mo>′</mo>
</msubsup>
<mo>-</mo>
<msub>
<mi>R</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<msubsup>
<mi>R</mi>
<mi>Ti</mi>
<mo>′</mo>
</msubsup>
<mo>-</mo>
<mi>α</mi>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
</math> R′Tiis the actual measured heat value of the ith type T information source, alpha and beta are weighting coefficients, alpha + beta is 1, k is the total number of the type T information sources, UTiThe usage of the ith type of information source T, dTiIs a correction value for the ith information source of type T.
I.e. if server background data (actual measured heat value R 'of information source) is received'Ti) The information source heat value model can be corrected, i.e. R 'is used'TiDetermining the parameters alpha, beta, dTiThe value of (a). After receiving the actual measured heat value of the information source, the error function is obtained by calculationMinimum alpha, beta, dTiSolving for α, β, d which minimizes the error functionTiThe value of (1) can be solved by using intelligent algorithms such as machine learning, support vector machine, neural network and the like, and the solving mode in the embodiment is not limited.
Alpha, beta and d obtained by solvingTiThe values are re-introduced into the information source heat value model: <math>
<mrow>
<msub>
<mi>R</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<mi>α</mi>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
</math> and recalculating to obtain the heat value of each information source, and finishing the process of correcting the calculated heat value of each information source, so that the calculation is more accurate.
According to another embodiment of the present invention, the time interval for correcting the calculated heat value of each information source can be determined according to the frequency of use of the information source.
The time interval for correcting the heat value of the information source can be dynamically adjusted, and is determined according to the use habits of users: the higher the frequency of the user using the offline data of the information source, the shorter the time interval may be, that is, the frequency of the offline data of the information source is inversely related to the time interval for performing the correction, and further, the shorter the correction time interval may be given to the time interval with the higher frequency of the offline data of the information source, that is, the frequency of the user using the offline data of the information source in each time interval is inversely related to the correction time interval, for example, the user using the offline data of the information source less in the evening may stop the correction in the evening.
The embodiment can use the background data to correct the information source heat value, so that the information source heat value is more accurate and real-time.
Step 202, determining an off-line downloading sequence of the information source according to the heat value of the information source.
After the off-line downloading sequence of the information source is determined, the information source can be downloaded off-line according to the off-line downloading sequence of the information source.
For example, in some possible embodiments, the specific implementation of step 202 may include: determining a heat level L according to the heat value of the information sourcej,LjJ is a positive integer ranging from 1 to n, n is the total number of the heat grades; each of the heat levels LjCorresponding download parameter Pj,PjIs a positive integer ranging from 1 to j, PjIs 1;
the first update level LMAnd satisfy PjDetermining a popularity rating corresponding to the download parameter j as an update rating to add to the sequence of update ratings, LMThe initial value of (a) is 1, and the value range of M is a positive integer from 1 to n;
determining an information source offline downloading sequence according to the updating grade sequence, and determining the information source offline downloading sequence of the information sources in the same updating grade according to the sequence of the heat values of the information sources from high to low;
updating the download parameter Pj=Pj+1, wherein if Pj>j, then Pj1 is ═ 1; updating the first update level LM=LM+1, wherein if LM>n, then LM=1。
That is, the heat level L is setjJ, j belongs to (1, …, n), the smaller the value of the heat level is, the higher the heat level is, the heat values of the information sources are sorted, the information sources are divided according to the number of the heat levels, and the corresponding heat levels are determined. For example, if there are 40 information sources and the total number of heat levels is 4, the information source with the top 10 heat value ranking can be determined as having the heat level L1By analogy, determining the heat level L2、L3、L4. Each heat level corresponds to a download parameter Pj,PjE (1, …, n), the initial value is 1, the first update level for each off-line downloading of information source is LMThen check for LMEvery other heat level, if there is a download parameter P corresponding to the heat leveljJ, the heat rank is also added to the update rank sequence. The information sources in the update level can be downloaded off-line according to the sequence of the update level sequence, and the information sources in the same update level are downloaded off-line according to the heat value of the information sources from high to low. After one off-line download is completed, updating download parameter Pj=Pj+1, wherein if Pj>j, then Pj1 is ═ 1; updating a first update level LM=LM+1, wherein if LM>n, then LM=1。
The determination of the offline download sequence of the information source will be described by dividing the information source into 4 heat levels. Heat level L1=1、L2=2、L3=3、L44 corresponding download parameters P1=1、P2=1、P3=1、P41, the first update level L among the heat levelsMThe first update level is L when 11Adding an updating grade sequence; after one off-line download is completed, LM=2,P1=1、P2=2、P3=2、P4When the update rate is 2, the first update level is L2And P1Heat level L corresponding to 11Adding an updating grade sequence; and determining the off-line downloading sequence of the information source downloaded off-line each time by analogy.
See the following table for variations of the update rank sequence:
downloading parameters | P1 | P2 | P3 | P4 | Updating rank sequences |
1 | 1 | 1 | 1 | 1 | L1 |
2 | 1 | 2 | 2 | 2 | L2,L1 |
3 | 1 | 1 | 3 | 3 | L3,L1 |
4 | 1 | 2 | 1 | 4 | L4,L1,L2 |
5 | 1 | 1 | 2 | 1 | L1 |
6 | 1 | 2 | 3 | 2 | L2,L1,L3 |
7 | 1 | 1 | 1 | 3 | L3,L1 |
8 | 1 | 2 | 2 | 4 | L4,L1,L2 |
9 | 1 | 1 | 3 | 1 | L1,L3 |
10 | 1 | 2 | 1 | 2 | L2,L1 |
11 | 1 | 1 | 2 | 3 | L3,L1 |
12 | 1 | 2 | 3 | 4 | L4,L1,L2,L3 |
According to another embodiment of the present invention, the time interval for performing the offline downloading of the information source according to the offline downloading sequence of the information source can be further determined according to the usage frequency of the information source.
The time interval of off-line downloading of the information source can be dynamically adjusted, and is determined according to the use habits of users: the time interval can be shorter as the user uses the offline data of the information source more frequently, that is, the time interval of the offline data of the information source is inversely related to the offline download time interval, and further, the time interval of the offline data of the information source more frequently used by the user can be given a shorter download time interval, that is, the time interval of each time interval is inversely related to the offline download time interval, for example, the user uses less offline data of the information source at night, and can stop the offline download of the information source at night.
The embodiment can ensure the prior off-line downloading of the information source with high heat value, and simultaneously avoid the excessive downloading of part of the information sources, thereby reducing the downloading amount.
Referring to fig. 3, the calculation of the heat value of the information source according to the usage of the information source will be described with reference to the practical application, which may include the following steps:
step 301, using α, β and dTiInitial value utilization information source heat model <math>
<mrow>
<msub>
<mi>R</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<mi>α</mi>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
</math> Calculating the heat value of the information source. Wherein the initial values of α and β can be set based on empirical values, dTiMay be 0.
Step 302, judging whether the user allows the server to actually measure the heat value, if so, entering step 303, and if not, entering step 306.
Step 303, setting a time interval for correcting the calculated heat value of each information source.
Step 304, starting a timer to wait for a time interval for correcting the calculated heat value of each information source.
Step 305, the timer is closed when the timer expires, the actual measured heat value of the information source is requested from the server, and the α, β and d with the minimum error function are calculatedTiReuse of information source heat model <math>
<mrow>
<msub>
<mi>R</mi>
<mi>Ti</mi>
</msub>
<mo>=</mo>
<mi>α</mi>
<mo>·</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>U</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>+</mo>
<mrow>
<mo>(</mo>
<mfrac>
<mi>β</mi>
<mrow>
<mi>k</mi>
<mrow>
<mo>(</mo>
<mn>1</mn>
<mo>-</mo>
<mi>β</mi>
<mo>)</mo>
</mrow>
</mrow>
</mfrac>
<mo>·</mo>
<munderover>
<mi>Σ</mi>
<mrow>
<mi>i</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mi>k</mi>
</munderover>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>+</mo>
<msub>
<mi>d</mi>
<mi>Ti</mi>
</msub>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
</math> Calculate the heat value of the information source and return to step 304.
And step 306, ending the operation.
Referring to fig. 4, the off-line downloading of the information source is described in combination with the practical application, and may include the following steps:
step 401, judging whether the user authorizes the off-line downloading, if yes, entering step 402, and if not, entering step 406.
Step 402, setting an off-line download time interval for the information source.
Step 403, start the timer to wait for the time interval of the offline download of the information source.
Step 404, when the timer times out, closing the timer, detecting the network status, and determining whether the network is in a wifi (wireless fidelity) network, if so, entering step 405, and if not, returning to step 403.
Step 405, determining an information source offline downloading sequence according to the heat value of the information source, performing offline downloading on the information source according to the information source offline downloading sequence, and returning to step 403.
For determining the offline downloading sequence of the information source according to the heat value of the information source, reference may be made to the above-mentioned embodiments, which are not described herein again.
And step 406, ending the operation.
The embodiment can automatically download the information source for the user offline according to the network condition under the condition of user permission without consuming the charging flow.
Therefore, according to the offline downloading method provided by the embodiment of the invention, the heat value of the information source can be obtained through calculation according to the usage amount of the information source, the heat value of the information source can reflect the preference degree of a user on the information source, the offline downloading sequence of the information source is determined according to the heat value of the information source, and the information source can be automatically downloaded offline according to the offline downloading sequence of the information source, so that the offline downloading of the information source can be realized intelligently, the trouble of offline downloading of the information source in a manual mode is avoided, the time for selecting the information source for downloading is remarkably reduced, the efficiency is improved, and better experience is brought to the user.
Exemplary device
Having described the method of the exemplary embodiment of the present invention, the apparatus for offline download of the exemplary embodiment of the present invention will be described next with reference to fig. 5.
Referring to fig. 5, a block diagram of an embodiment of determining an offline downloading apparatus in the present invention is shown, which may specifically include:
the calculating unit 501 is used for calculating the heat value of the information source according to the usage amount of the information source.
For example, in some possible implementations, the computing unit 501 may include:
the classification subunit 5011 is used to classify the information sources into several types.
The computing subunit 5012 performs weighting calculation to obtain the heat value of each information source according to the usage of each information source in each type and the correction value of each information source in the type.
In some possible embodiments, the calculation subunit 5012 may be specifically configured to:
obtaining a first calculation term according to the sum of the usage of each information source in each type, the first weighting coefficient and the usage of the current information source in the type;
obtaining a second calculation term according to the sum of the correction values of all information sources in the type, the first weighting coefficient and the correction value of the current information source in the type;
and obtaining the heat value of the current information source in the type according to the first calculation item, the second weighting coefficient and the second calculation item.
According to another embodiment of the present invention, the method may further include: and the correction unit is used for correcting the calculated heat value of each information source.
In some possible embodiments, the modification unit may be specifically configured to:
calculating a first weighting coefficient and a second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type, and recalculating to obtain the heat value of each information source by using the first weighting coefficient and the second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type; the error function is the sum of model errors of each information source in each type, and the model errors are the difference between the actually measured heat value of the information source and the calculated heat value of the information source.
According to another embodiment of the present invention, the method may further include: and the second determining unit is used for determining the time interval for correcting the calculated heat value of each information source according to the use frequency of the information source.
A first determining unit 502, configured to determine an offline downloading order of the information source according to the heat value of the information source.
In some possible embodiments, the first determining unit 502 may include:
a first determining subunit 5021 for determining the heat level L according to the heat value of the information sourcej,LjJ is a positive integer ranging from 1 to n, n is the total number of the heat grades; each of the heat levels LjCorresponding download parameter Pj,PjIs a positive integer ranging from 1 to j, PjIs 1.
A second determining subunit 5022, for updating the first update level LMAnd satisfy PjDetermining a popularity rating corresponding to the download parameter j as an update rating to add to the sequence of update ratings, LMIs 1, and M is a positive integer ranging from 1 to n.
A third determining subunit 5023, configured to determine an offline downloading order of the information sources according to the update level sequence, where the information sources in the same update level are determined in an order from high to low according to the heat value of the information sources.
An updating subunit 5024, configured to update the download parameter Pj=Pj+1, wherein if Pj>j, then Pj1 is ═ 1; updating the first update level LM=LM+1, wherein if LM>n, then LM=1。
According to another embodiment of the present invention, the method may further include: and the third determining unit is used for determining the time interval for performing the offline downloading of the information source according to the offline downloading sequence of the information source according to the use frequency of the information source.
Therefore, according to the offline downloading device provided by the embodiment of the invention, the heat value of the information source can be obtained through calculation according to the usage amount of the information source, the heat value of the information source can reflect the preference degree of a user on the information source, the offline downloading sequence of the information source is determined according to the heat value of the information source, and the offline downloading of the information source can be automatically performed according to the offline downloading sequence of the information source, so that the offline downloading of the information source can be intelligently realized, the trouble of performing the offline downloading of the information source in a manual mode is avoided, the time for selecting the information source for downloading is remarkably reduced, the efficiency is improved, and better experience is brought to the user.
It should be noted that although in the above detailed description several units or sub-units of the offline download apparatus are mentioned, this division is only not mandatory. Indeed, the features and functions of two or more of the devices described above may be embodied in one device, according to embodiments of the invention. Conversely, the features and functions of one apparatus described above may be further divided into embodiments by a plurality of apparatuses.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.
Claims (10)
1. An offline download method, comprising:
calculating the heat value of the information source according to the usage amount of the information source;
and determining the off-line downloading sequence of the information source according to the heat value of the information source.
2. The method of claim 1, wherein said calculating a heat value of an information source based on usage of the information source comprises:
dividing the information source into several types;
and performing weighting calculation to obtain the heat value of each information source according to the usage amount of each information source in each type and the correction value of each information source in the type.
3. The method of claim 2, wherein the calculating the heat value of each information source according to the usage of each information source in each type and the correction value of each information source in the type comprises:
obtaining a first calculation term according to the sum of the usage of each information source in each type, the first weighting coefficient and the usage of the current information source in the type;
obtaining a second calculation term according to the sum of the correction values of all information sources in the type, the first weighting coefficient and the correction value of the current information source in the type;
and obtaining the heat value of the current information source in the type according to the first calculation item, the second weighting coefficient and the second calculation item.
4. The method of claim 3, further comprising:
correcting the calculated heat value of each information source.
5. The method of claim 4, wherein said modifying the calculated heat value for each information source comprises:
calculating a first weighting coefficient and a second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type, and recalculating to obtain the heat value of each information source by using the first weighting coefficient and the second weighting coefficient which enable the error function to be minimum and the correction value of each information source in the type; the error function is the sum of model errors of each information source in each type, and the model errors are the difference between the actually measured heat value of the information source and the calculated heat value of the information source.
6. The method of claim 4, further comprising:
and determining the time interval for correcting the calculated heat value of each information source according to the use frequency of the information source.
7. The method of claim 1, wherein determining an information source offline download order based on the popularity value of the information source comprises:
determining a heat level L according to the heat value of the information sourcej,LjJ is a positive integer ranging from 1 to n, n is the total number of the heat grades; each of the heat levels LjCorresponding download parameter Pj,PjIs a positive integer ranging from 1 to j, PjIs 1;
the first update level LMAnd satisfy PjDetermining a popularity rating corresponding to the download parameter j as an update rating to add to the sequence of update ratings, LMThe initial value of (a) is 1, and the value range of M is a positive integer from 1 to n;
determining an information source offline downloading sequence according to the updating grade sequence, and determining the information source offline downloading sequence of the information sources in the same updating grade according to the sequence of the heat values of the information sources from high to low;
updating the download parameter Pj=Pj+1, wherein if Pj> j, then Pj1 is ═ 1; updating the first update level LM=LM+1, wherein if LMGreater than n, then LM=1。
8. The method of claim 7, further comprising:
and determining the time interval for performing the off-line downloading of the information source according to the off-line downloading sequence of the information source according to the using frequency of the information source.
9. An offline download apparatus, comprising:
the calculating unit is used for calculating the heat value of the information source according to the using amount of the information source;
the first determining unit is used for determining the off-line downloading sequence of the information source according to the heat value of the information source.
10. The apparatus of claim 9, wherein the computing unit comprises:
a classification subunit, for classifying the information sources into a plurality of types;
and the calculating subunit performs weighting calculation to obtain the heat value of each information source according to the usage amount of each information source in each type and the correction value of each information source in the type.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510112096.5A CN104660712B (en) | 2015-03-13 | 2015-03-13 | A kind of offline download method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510112096.5A CN104660712B (en) | 2015-03-13 | 2015-03-13 | A kind of offline download method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104660712A true CN104660712A (en) | 2015-05-27 |
CN104660712B CN104660712B (en) | 2017-12-15 |
Family
ID=53251399
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510112096.5A Active CN104660712B (en) | 2015-03-13 | 2015-03-13 | A kind of offline download method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104660712B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685164A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Method and system for downloading and updating files under condition of limited storage space of terminal |
CN103024044A (en) * | 2012-12-14 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for downloading web pages |
CN103049452A (en) * | 2011-10-14 | 2013-04-17 | 百度在线网络技术(北京)有限公司 | Method and device for performing application sequencing based on estimated download rate |
CN103795740A (en) * | 2012-10-29 | 2014-05-14 | 腾讯科技(深圳)有限公司 | Downloading method of plug-in installation packages and downloading terminal |
CN104284214A (en) * | 2014-08-18 | 2015-01-14 | 四川长虹电器股份有限公司 | Downloading system of film and television resources |
-
2015
- 2015-03-13 CN CN201510112096.5A patent/CN104660712B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685164A (en) * | 2011-03-16 | 2012-09-19 | 中国电信股份有限公司 | Method and system for downloading and updating files under condition of limited storage space of terminal |
CN103049452A (en) * | 2011-10-14 | 2013-04-17 | 百度在线网络技术(北京)有限公司 | Method and device for performing application sequencing based on estimated download rate |
CN103795740A (en) * | 2012-10-29 | 2014-05-14 | 腾讯科技(深圳)有限公司 | Downloading method of plug-in installation packages and downloading terminal |
CN103024044A (en) * | 2012-12-14 | 2013-04-03 | 北京奇虎科技有限公司 | Method and device for downloading web pages |
CN104284214A (en) * | 2014-08-18 | 2015-01-14 | 四川长虹电器股份有限公司 | Downloading system of film and television resources |
Also Published As
Publication number | Publication date |
---|---|
CN104660712B (en) | 2017-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9508095B2 (en) | System and method for optimizing the selection of cloud services based on price and performance | |
CN108536650B (en) | Method and device for generating gradient lifting tree model | |
US10565525B2 (en) | Collaborative filtering method, apparatus, server and storage medium in combination with time factor | |
CN106294497B (en) | Information recommendation method and device | |
CN111612377A (en) | Information pushing method and device, electronic equipment and computer readable medium | |
CN107301466A (en) | To business load and resource distribution and the Forecasting Methodology and forecasting system of property relationship | |
CN107317836A (en) | One kind mixing cloud environment lower time appreciable request scheduling method | |
CN107426336B (en) | Method and device for adjusting push message opening rate | |
JP2019503014A (en) | Method and apparatus for processing user behavior data | |
CN108512817B (en) | Multi-video transcoding scheduling method and device | |
CN110738508A (en) | data analysis method and device | |
US11425084B2 (en) | Data processing for multi-objective communication engagement | |
CN105681089B (en) | Networks congestion control clustering method, device and terminal | |
CN110968790A (en) | Latent customer intelligent recommendation method, device and storage medium based on big data | |
CN112669091B (en) | Data processing method, device and storage medium | |
CN111915315B (en) | Authentication mode recommendation method and device, electronic equipment and readable storage medium | |
JP2015167279A (en) | Required staff number calculation device, required staff number calculation method, and program | |
JP5933487B2 (en) | QoE estimation apparatus, QoE estimation method and program | |
CN112218114B (en) | Video cache control method, device and computer readable storage medium | |
CN104660712B (en) | A kind of offline download method and device | |
JPWO2020158094A1 (en) | Information processing equipment, server equipment and information processing system | |
CN112579246B (en) | Virtual machine migration processing method and device | |
CN115525394A (en) | Method and device for adjusting number of containers | |
CN106296233B (en) | Computer system and registration quantity determination method based on computer system | |
CN111598390B (en) | Method, device, equipment and readable storage medium for evaluating high availability of server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |