WO2019061903A1 - Information output method and device - Google Patents

Information output method and device Download PDF

Info

Publication number
WO2019061903A1
WO2019061903A1 PCT/CN2017/118690 CN2017118690W WO2019061903A1 WO 2019061903 A1 WO2019061903 A1 WO 2019061903A1 CN 2017118690 W CN2017118690 W CN 2017118690W WO 2019061903 A1 WO2019061903 A1 WO 2019061903A1
Authority
WO
WIPO (PCT)
Prior art keywords
order
billing
time
historical
sample
Prior art date
Application number
PCT/CN2017/118690
Other languages
French (fr)
Chinese (zh)
Inventor
饶佳佳
徐明泉
黄绍建
咸珂
陈进清
杨秋源
裴松年
涂丽佳
Original Assignee
北京小度信息科技有限公司
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 北京小度信息科技有限公司 filed Critical 北京小度信息科技有限公司
Publication of WO2019061903A1 publication Critical patent/WO2019061903A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"

Definitions

  • the present disclosure relates to the field of computer technologies, and in particular, to the field of Internet technologies, and in particular, to an information output method and apparatus.
  • the take-away website which changes the mode of traditional telephone order take-out service, can provide free, convenient, fast and independent information to help users find the right take-away service.
  • Reasonable planning of the delivery route can improve the efficiency of order delivery, thereby increasing the delivery punctuality rate of the take-out order and helping to improve the user experience.
  • Estimating the order delivery time helps the delivery personnel to reasonably plan the delivery route, thereby improving order delivery efficiency.
  • the existing billing time estimation method usually takes the average billing time of the merchant as the billing time of all the orders of the merchant, and does not consider the difference between different orders, resulting in the estimated accuracy of the billing time. Lower.
  • an embodiment of the present disclosure provides an A1, an information output method, the method includes: acquiring order data of a current order; extracting a feature vector of the current order from the order data of the current order, where the feature vector of the current order Used to describe the characteristics of the current order; input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order, wherein the billing time prediction model is used to characterize the feature vector and the billing The corresponding relationship of the duration; output the time of the current order.
  • the method further comprising the step of training a single-time length estimation model, and the step of training the single-time length estimation model comprises: obtaining a feature vector of the sample order and a billing time of the sample order; The feature vector of the order is used as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
  • the method according to A2 taking the feature vector of the sample order as an input, and outputting the billing time of the sample order as an output, training to obtain a billing time estimation model, comprising: performing the following training step: eigenvector of the sample order Input to the deep neural network to obtain the estimated billing time of the sample order, and use the estimated billing time of the sample order and the billing time of the sample order to determine the prediction accuracy of the deep neural network, if the estimated accuracy is greater than the pre-predicted When the accuracy rate threshold is set, the deep neural network is used as the billing time prediction model; in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, the parameters of the deep neural network are adjusted, and the training step is continued.
  • the method as described in A2, obtaining the feature vector of the sample order and the billing time of the sample order comprising: obtaining the order data of the first historical order and the billing time; and extracting the first from the order data of the first historical order.
  • the feature vector of the historical order is used as the feature vector of the sample order, wherein the feature vector of the sample order is used to describe the feature of the first historical order;
  • the billing category of the first historical order is obtained, wherein the billing category includes the first category and the first category
  • the first category is used to indicate that the order has not been placed after the delivery resource of the order reaches the merchant to which the order belongs, and the second category is used to indicate that the order has been placed before the delivery resource of the order reaches the merchant to which the order belongs;
  • the billing category of the first historical order is the first category, and the billing time of the first historical order is used as the billing time of the sample order.
  • A5. The method as described in A4, obtaining the feature vector of the sample order and the billing time of the sample order, further comprising: if the billing category of the first historical order is the second category, acquiring the first corresponding to the first historical order The time of the single bill, the average billing time of the merchant to which the first historical order belongs, and the first time difference, wherein the first time difference is the time when the distribution resource of the first historical order reaches the merchant to which the first historical order belongs and the merchant to which the first historical order belongs The time difference of the time when the first historical order is received; the time of the billing of the sample order is generated based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference.
  • A6 The method according to A5, generating a billing duration of the sample order based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference, including: obtaining The first weight of the first billing time corresponding to the first historical order, the second weight of the average billing time of the merchant to which the first historical order belongs, and the third weight of the first time difference; based on the first historical order The billing time, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight, generate the billing time of the sample order.
  • A7 The method of A6, based on the first billing time length corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight And generating a sample order time, comprising: calculating a product of a first billing time corresponding to the first historical order and a first weight, a product of an average billing time of the merchant to which the first historical order belongs, and a second weight The sum of the product of a time difference and a third weight, and the resulting sum is taken as the time of the bill for the sample order.
  • the first billing time corresponding to the first historical order is obtained by acquiring the billing time of the at least one second historical order of the merchant to which the first historical order belongs; from at least one The billing duration of the second historical order is selected from the billing duration of the second historical order; the average of the billing time of the selected second historical order is calculated, and is the first corresponding to the first historical order.
  • a single time is the billing time of the at least one second historical order of the merchant to which the first historical order belongs.
  • the time length of the preset number of second historical orders is selected from the billing time of the at least one second historical order, including: the duration of the billing of the at least one second historical order is in accordance with the duration Sort the length and length; select the preset duration of the second historical order from the side of the short duration.
  • an embodiment of the present disclosure provides a B1, an information output device, where the device includes: an obtaining unit configured to acquire order data of a current order; and an extracting unit configured to extract current from order data of the current order The feature vector of the order, wherein the feature vector of the current order is used to describe the feature of the current order; the estimating unit is configured to input the feature vector of the current order into the pre-trained billing time estimation model to obtain the current order The single time length, wherein the billing time estimation model is used to represent the correspondence between the feature vector and the billing time; the output unit is configured to output the billing duration of the current order.
  • the device of B1 further comprising a training unit, the training unit comprising: an acquisition subunit configured to acquire a feature vector of the sample order and a billing time of the sample order; and a training subunit configured to use the sample
  • the feature vector of the order is used as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
  • the training subunit comprises: a training module, configured to perform the following training step: input the feature vector of the sample order into the deep neural network, obtain the estimated order duration of the sample order, and use the sample order Estimated delivery time and sample order time, determine the prediction accuracy of the deep neural network. If the prediction accuracy is greater than the preset accuracy threshold, the deep neural network is used as the estimation model of the release duration; The module is configured to adjust parameters of the deep neural network in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, and continue to perform the training step.
  • a training module configured to perform the following training step: input the feature vector of the sample order into the deep neural network, obtain the estimated order duration of the sample order, and use the sample order Estimated delivery time and sample order time, determine the prediction accuracy of the deep neural network. If the prediction accuracy is greater than the preset accuracy threshold, the deep neural network is used as the estimation model of the release duration; The module is configured to adjust parameters of the deep neural network in response to determining that the estimated accuracy is not greater than the preset
  • the obtaining subunit comprises: a first obtaining module configured to acquire order data and a billing time of the first historical order; and an extracting module configured to be used in order data from the first historical order Extracting a feature vector of the first historical order as a feature vector of the sample order, wherein the feature vector of the sample order is used to describe the feature of the first historical order; and the second obtaining module is configured to obtain the billing category of the first historical order,
  • the billing category includes a first category and a second category.
  • the first category is used to indicate that the order has not been placed after the delivery resource of the order reaches the merchant to which the order belongs, and the second category is used to represent the delivery resource arrival order in the order.
  • the first generation module is configured to use the billing time of the first historical order as the billing time of the sample order if the order of the first order is the first category.
  • the obtaining subunit further comprising: a third obtaining module, configured to acquire the first bill corresponding to the first historical order if the billing category of the first historical order is the second category The duration, the average billing time of the merchant to which the first historical order belongs, and the first time difference, wherein the first time difference is that the delivery resource of the first historical order reaches the merchant of the first historical order and the merchant of the first historical order receives the first The time difference of the time of the historical order; the second generating module is configured to generate the sample order based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference Single time.
  • the second generating module includes: an obtaining submodule configured to obtain a first weight of the first billing time corresponding to the first historical order, and an average bill of the merchant to which the first historical order belongs a second weight of the duration and a third weight of the first time difference; generating a sub-module configured to use the first billing duration, the first weight, and the average billing time of the merchant to which the first historical order belongs according to the first historical order.
  • the second weight, the first time difference, and the third weight generate a billing time for the sample order.
  • the generating submodule is further configured to: calculate a product of a first billing time length corresponding to the first historical order and a first weight, and an average billing time and a first billing time of the merchant to which the first historical order belongs The sum of the product of the two weights and the product of the first time difference and the third weight, and the obtained sum is taken as the billing time of the sample order.
  • the third obtaining module includes a first billing time acquisition sub-module, and a first billing time acquisition sub-module configured to: acquire at least one second historical order of the merchant to which the first historical order belongs The time of the billing time is selected; the billing time of the preset number of second historical orders is selected from the billing time of at least one second historical order; and the average value of the billing time of the selected second historical order is calculated and used as The first billing time corresponding to the first historical order.
  • an embodiment of the present disclosure provides C1, a server, the server includes: one or more processors; a storage device for storing one or more programs; and one or more programs when one or more programs are The processor executes such that one or more processors implement the methods as described in any of the implementations of A1 through A9.
  • an embodiment of the present disclosure provides a computer readable storage medium, where a computer program is stored thereon, and when the computer program is executed by the processor, the method described in any one of the embodiments A1 to A9 is implemented.
  • the information output method and apparatus provided by the embodiment of the present disclosure first acquires order data of the current order, so as to extract the feature vector of the current order from the order data of the current order; and then input the feature vector of the current order into the billing time estimate.
  • the model so as to get the current order's billing time; finally, the resulting current order's billing time output.
  • the billing time estimation model which can characterize the correspondence between the feature vector and the billing time, is used to estimate the single time duration, which improves the estimation accuracy of the billing time.
  • FIG. 1 is an exemplary system architecture diagram to which an embodiment of the present disclosure may be applied;
  • FIG. 2 is a flow chart of one embodiment of an information output method in accordance with the present disclosure
  • FIG. 3 is a flow diagram of one embodiment of a method of training a single duration estimation model in accordance with the present disclosure
  • FIG. 4 is a flow chart of still another embodiment of a method of training a single duration estimation model in accordance with the present disclosure
  • FIG. 5 is a schematic structural diagram of an embodiment of an information output device according to the present disclosure.
  • FIG. 6 is a block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
  • FIG. 1 illustrates an exemplary system architecture 100 in which an embodiment of an information output method or information output device of the present disclosure may be applied.
  • system architecture 100 can include database server 101, network 102, and server 103.
  • the network 102 is used to provide a medium for communication links between the database server 101 and the server 103.
  • Network 102 can include a variety of connection types, such as wired, wireless communication links, fiber optic cables, and the like.
  • the database server 101 can be a back-end database server for various websites.
  • the database server 101 can be a background server of an e-commerce website for storing order data on the e-commerce website.
  • the server 103 can provide various services, for example, the server 103 can analyze the order data of the current order acquired from the database server 101, and output the processing result (for example, the billing duration of the current order).
  • the information output method provided by the embodiment of the present disclosure is generally performed by the server 103. Accordingly, the information output device is generally disposed in the server 103.
  • the information output method includes the following steps:
  • Step 201 Obtain order data of the current order.
  • the electronic device (for example, the server 103 shown in FIG. 1) on which the information output method runs can be obtained from a database server (for example, the database server 101 shown in FIG. 1) by a wired connection or a wireless connection.
  • Order data for the current order on a website (such as an e-commerce website).
  • the current order may be an order placed by the registered user on the preset website currently on the item on the preset website.
  • the order data may include, but is not limited to, at least one of the following: an order identifier, a merchant identifier of the merchant to which the order belongs, a city logo of the city to which the order belongs, a business circle logo of the business circle to which the order belongs, the total price of the articles in the order, and the articles in the order.
  • the information the category of the business to which the order belongs (such as fast food, buffet, home cooking, etc.), the brand of the merchant to which the order belongs, the time of the order for the order (usually the order data of the order is not included in the order data of the current order), and the order is placed.
  • Category usually the order size of the order is not included in the order data of the current order
  • Step 202 Extract a feature vector of the current order from the order data of the current order.
  • the electronic device may extract the feature vector of the current order from the order data of the current order.
  • the feature vector of the current order can be used to describe the characteristics of the current order.
  • the feature vector may include, but is not limited to, at least one of the following: a base feature, a statistical feature, a combined feature, a sparse feature, and the like.
  • the basic feature may include, but is not limited to, at least one of the following: an order period (for example, an 8-point period, an 11-point period, and the like), an item of different categories in the order (usually the same item belongs to the same category), and an order The number of items, the number of orders for which the order belongs to the merchant, and so on.
  • an order period for example, an 8-point period, an 11-point period, and the like
  • an item of different categories in the order usually the same item belongs to the same category
  • the statistical characteristics may include, but are not limited to, at least one of: a ratio of the total price of the items in the order to the average total price of the items in the plurality of orders of the merchant to which the order belongs, the number of items of different categories in the order, and the merchant to which the order belongs The ratio of the average number of items in different categories in a plurality of orders, the ratio of the number of items in the order to the average number of items in the plurality of orders of the merchant to which the order belongs, and the items in the order in which the order is not currently placed by the merchant
  • the total price, the number of items in different categories in the order that the order is not currently placed by the order, the quantity of items in the order that the order belongs to the current unsold order, and the average total of the items in the order that the order belongs to the current unsold order The ratio of the price to the average total price of the items in the multiple orders of the merchant to which the order belongs, the average number of items of different categories in the order that the order is not currently placed by the order, and the
  • the combined feature may include, but is not limited to, at least one of the following: a combination feature of the merchant identification of the merchant to which the order belongs and a combination time of the time zone to which the order belongs, a combination feature of the time zone of the order and the delivery time of the order.
  • the sparse feature may be a sparse matrix obtained by encoding the order data, wherein the number of elements having a value of 0 in the sparse matrix is far more than the number of non-zero elements.
  • Step 203 Input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order.
  • the electronic device may input the feature vector of the current order into the pre-trained billing time estimation model, thereby obtaining the billing duration of the current order.
  • the timeout period may be the time difference between the time of placing the order and the time when the delivery resource of the order arrives at the merchant to which the order belongs, wherein the distribution resource may include, but is not limited to, a delivery person, a delivery robot, and the like.
  • the billing time prediction model can be used to characterize the correspondence between the feature vector and the billing duration.
  • the electronic device can train the single duration estimation model in a variety of ways.
  • the electronic device may generate, according to the statistics of the feature vector and the billing duration of the historical order, a correspondence table in which the correspondence between the plurality of feature vectors and the billing duration is stored.
  • the correspondence table is used as an estimation model for the billing time.
  • the billing time estimation model queries the correspondence table to obtain the billing time corresponding to the feature vector of the current order.
  • Step 204 Output the billing time of the current order.
  • the electronic device can output the billing duration of the current order to other electronic devices (for example, a database server, a terminal device, etc.) that are communicatively connected thereto.
  • the electronic device may send the billing time of the current order to the dispatcher of the current order or the terminal device of the manager of the delivery robot, so that the delivery person of the current order or the manager of the delivery robot can plan the delivery route.
  • the information output method provided by the embodiment of the present disclosure first obtains the order data of the current order, so as to extract the feature vector of the current order from the order data of the current order; and then input the feature vector of the current order into the billing time estimation model. In this way, the billing time of the current order is obtained; finally, the obtained billing time of the current order is output.
  • the billing time prediction model which can represent the correspondence between the feature vector and the billing time is used to estimate the single duration, which improves the estimation accuracy of the billing time.
  • the process 300 of the method for training a single time prediction model includes the following steps:
  • Step 301 Obtain a feature vector of the sample order and a billing time of the sample order.
  • the electronic device (for example, the server 103 shown in FIG. 1) on which the method for training the single duration estimation model is run can acquire the feature vector of the sample order and the billing time of the sample order.
  • the electronic device can obtain the feature vector of the sample order and the billing time of the sample order in various ways.
  • a person skilled in the art can perform statistical analysis on the order data of a large number of orders, thereby obtaining a plurality of feature vectors and a plurality of billing durations, and correspondingly obtaining each of the obtained feature vectors and each billing time. It is then used as the feature vector for the sample order and the billing time for the sample order.
  • step 302 the feature vector of the sample order is taken as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
  • the electronic device can utilize the feature vector of the sample order and the billing time of the sample order, for example, DNN (Deep Neural Network, The deep neural network model is trained to obtain an order-time prediction model that can accurately represent the relationship between feature vectors and billing time.
  • DNN Deep Neural Network
  • the electronic device may be trained to obtain a single duration estimation model by the following steps:
  • the estimated accuracy rate if the estimated accuracy is greater than the preset accuracy threshold, the deep neural network is used as the billing time prediction model;
  • the deep neural network estimates the billing time of the sample order accurately; If the estimated billing time of the sample order is different from or different from the billing time of the sample order (for example, the difference is not less than the preset value), the deep neural network may not accurately predict the billing time of the sample order.
  • the electronic device can use the ratio of the estimated number of sample orders to the total number of sample orders as the estimated accuracy of the deep neural network.
  • the parameters of the deep neural network are adjusted and the training step continues.
  • the electronic device may adjust the parameters of the deep neural network and return to perform the above training steps until the training of the feature vector capable of characterizing the order and the order time of the order are trained.
  • the accuracy of the correspondence between the billing time and the estimated model may be adjusted.
  • the method for training a single duration estimation model uses the feature vector of the sample order and the billing time of the sample order to perform training, thereby obtaining an order that can accurately represent the exact correspondence between the feature vector and the billing time. Duration estimation model.
  • the process 400 of the method for training a single time estimation model includes the following steps:
  • Step 401 Obtain order data and billing time of the first historical order.
  • the electronic device for example, the server 103 shown in FIG. 1 on which the method for training the single duration estimation model is run may be from a database server by a wired connection or a wireless connection (for example, as shown in FIG. 1).
  • the database server 101 obtains the order data and the billing time of the historical order in the first preset time period (for example, the previous month and the previous week) on the preset website (for example, an e-commerce website), and is the first The order data of the historical order and the billing time are long, and then steps 402 and 403 are performed.
  • Step 402 Extract a feature vector of the first historical order from the order data of the first historical order as a feature vector of the sample order.
  • the electronic device may extract the feature vector of the first historical order from the order data of the first historical order and use it as a feature vector of the sample order, and then Go to step 407.
  • the feature vector of the sample order can be used to describe the characteristics of the first historical order.
  • step 403 the billing category of the first historical order is obtained.
  • the electronic device may acquire the billing category of the first historical order.
  • the order data of a historical order can include the billing category of the historical order.
  • the billing category may include a first category and a second category.
  • the first category can be used to characterize the situation where the order has not been placed after the delivery resource of the order arrives at the merchant to which the order belongs.
  • the second category can be used to characterize the fact that the order has been placed before the order's delivery resource reaches the merchant to which the order belongs.
  • the distribution resources may include, but are not limited to, a delivery person, a delivery robot, and the like.
  • Step 404 Determine whether the billing category of the first historical order is the first category or the second category.
  • the electronic device may determine whether the billing category of the first historical order is the first category or the second category; the billing of the first historical order In the case where the category is the first category, step 405' is performed; in the case where the billing category of the first historical order is the second category, step 405 is performed.
  • step 405 ′ the billing time of the first historical order is used as the billing time of the sample order.
  • the electronic device may use the billing duration of the first historical order as the billing duration of the sample order, and then perform step 407.
  • Step 405 Acquire a first billing time length corresponding to the first historical order, an average billing time length of the merchant to which the first historical order belongs, and a first time difference.
  • the electronic device may obtain the first billing time corresponding to the first historical order and the average billing of the merchant to which the first historical order belongs. Duration and first time difference.
  • the first time difference may be a time difference between a time when the distribution resource of the first historical order reaches the merchant to which the first historical order belongs and a time when the merchant to which the first historical order belongs receives the first historical order.
  • the first billing time corresponding to the first historical order may be obtained by statistical analysis of a large number of historical orders similar to the first historical order or a large number of historical orders of the merchant to which the first historical order belongs.
  • the first billing time corresponding to the first historical order may be obtained by the electronic device by the following steps:
  • the billing time of at least one second historical order of the merchant to which the first historical order belongs is obtained.
  • the electronic device may obtain the billing time of the historical order of the merchant to which the first historical order belongs in the second preset time period (for example, the previous month, the previous week), and serve as the billing time of the second historical order. .
  • the billing duration of the preset number of second historical orders is selected from the billing duration of the at least one second historical order.
  • the electronic device may randomly select a billing duration of the preset number of second historical orders from the billing time of the at least one second historical order.
  • the electronic device may first sort the billing durations of the at least one second historical order according to the length of time; then, select the preset billing duration of the second historical order from the short side.
  • the electronic device may sort the billing durations of the at least one second historical order in order of length to length; or may sort the billing durations of the at least one second historical order in order of duration from short to long. .
  • the average value of the billing time of the selected second historical order is calculated, and is used as the first billing time corresponding to the first historical order.
  • Step 406 Generate a billing duration of the sample order based on the first billing time length corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference.
  • the electronic device may generate the sample order. Single time.
  • the electronic device can generate the billing time of the sample order in various ways. As an example, the electronic device may calculate the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the average of the first time difference, and serve as the billing time of the sample order, and then execute Step 407.
  • the electronic device may first obtain the first weight of the first billing time corresponding to the first historical order, and the second weight of the average billing time of the merchant to which the first historical order belongs. And a third weight that is different from the first time; and then based on the first billing time corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third Weight, the time the bill was generated for the sample order.
  • the electronic device may calculate a product of a first billing time and a first weight corresponding to the first historical order, a product of an average billing time and a second weight of the merchant to which the first historical order belongs, and a first time difference and a third The sum of the products of the weights, and the resulting sum is taken as the billing time of the sample order.
  • the electronic device can generate the billing time ⁇ T of the sample order by the following formula:
  • ⁇ T ⁇ t 1 ⁇ w 1 + ⁇ t 2 ⁇ w 2 + ⁇ t 3 ⁇ w 3 ;
  • ⁇ t 1 is the first billing time corresponding to the first historical order
  • ⁇ t 2 is the average billing time of the merchant to which the first historical order belongs
  • ⁇ t 3 is the first time difference
  • w 1 is the first weight
  • w 2 is The second weight
  • w 3 is the third weight.
  • first weight, the second weight, and the third weight are preset according to the category of the first historical order, and the first weight, the second weight, and the third weight corresponding to the first historical order of different categories may be different.
  • step 407 the feature vector of the sample order is taken as an input, and the billing time of the sample order is taken as an output, and the single time length estimation model is trained.
  • the electronic device can utilize the sample order.
  • the feature vector and the order time of the sample order are trained, for example, on the DNN model, thereby obtaining a billing time prediction model capable of characterizing the exact correspondence between the feature vector and the billing time.
  • the flow 400 of the method for training a single time prediction model in the present embodiment highlights the steps of obtaining the feature vector of the sample order and the time of placing the order, as compared with the embodiment corresponding to FIG. Therefore, the feature vector and the billing time of the sample order in the solution described in this embodiment are obtained by analyzing and processing the order data and the billing time of the first historical order, and the first history of different billing categories The order time of the order is different, so that the feature vector and the billing time of the sample order obtained are more objective and real.
  • the present disclosure provides an embodiment of an information output device, which corresponds to the method embodiment shown in FIG. 2, and the device may specifically Used in a variety of electronic devices.
  • the information output apparatus 500 of the present embodiment may include an acquisition unit 501, an extraction unit 502, an estimation unit 503, and an output unit 504.
  • the obtaining unit 501 is configured to acquire order data of the current order
  • the extracting unit 502 is configured to extract a feature vector of the current order from the order data of the current order, where the feature vector of the current order is used to describe the current order.
  • the estimating unit 503 is configured to input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order, wherein the billing time prediction model is used to represent the feature vector and The corresponding relationship of the billing time;
  • the output unit 504 is configured to output the billing duration of the current order.
  • the specific processing of the information obtaining apparatus 501, the extracting unit 502, the estimating unit 503, and the output unit 504 and the technical effects thereof can be referred to the steps in the corresponding embodiment of FIG. 2, respectively. 201, step 202, step 203 and step 204 are not described here.
  • the information output device 500 may further include a training unit (not shown), and the training unit may include: an acquisition subunit (not shown) configured to acquire The feature vector of the sample order and the billing time of the sample order; the training subunit (not shown) is configured to take the feature vector of the sample order as an input, and output the billing time of the sample order as an output, and train to obtain a bill. Duration estimation model.
  • the training subunit may include: a training module (not shown) configured to perform the following training step: input the feature vector of the sample order into the deep neural network, and obtain The estimated billing time of the sample order, using the estimated billing time of the sample order and the billing time of the sample order, determining the prediction accuracy of the deep neural network. If the estimated accuracy is greater than the preset accuracy threshold, then The deep neural network is used as a billing time estimation model; the adjustment module (not shown) is configured to adjust the parameters of the deep neural network in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, and continue to perform the training. step.
  • a training module (not shown) configured to perform the following training step: input the feature vector of the sample order into the deep neural network, and obtain The estimated billing time of the sample order, using the estimated billing time of the sample order and the billing time of the sample order, determining the prediction accuracy of the deep neural network. If the estimated accuracy is greater than the preset accuracy threshold, then The deep neural network is used as a billing time estimation model; the adjustment module
  • the obtaining subunit may include: a first acquiring module (not shown) configured to acquire order data and billing time of the first historical order; and an extracting module ( Not shown in the figure), configured to extract a feature vector of the first historical order from the order data of the first historical order as a feature vector of the sample order, wherein the feature vector of the sample order is used to describe the characteristics of the first historical order a second acquisition module (not shown) configured to obtain an order category of the first historical order, wherein the billing category includes a first category and a second category, and the first category is used to characterize the delivery in the order The second category is used to indicate the situation that the order has been placed before the delivery resource of the order arrives at the merchant to which the order belongs, and the first generation module (not shown) is configured. If the billing category of the first historical order is the first category, the billing time of the first historical order is used as the billing time of the sample order.
  • the obtaining sub-unit may further include: a third obtaining module (not shown) configured to: if the billing category of the first historical order is the second category, Obtaining a first billing time corresponding to the first historical order, an average billing time of the merchant to which the first historical order belongs, and a first time difference, wherein the first time difference is that the distribution resource of the first historical order reaches the merchant of the first historical order And a time difference between the time when the first historical order is received by the merchant to which the first historical order belongs; the second generation module (not shown) is configured to be based on the first billing time corresponding to the first historical order, first The average billing time and the first time difference of the merchant to which the historical order belongs, and the billing time of the sample order is generated.
  • a third obtaining module (not shown) configured to: if the billing category of the first historical order is the second category, Obtaining a first billing time corresponding to the first historical order, an average billing time of the merchant to which the first historical order belongs, and a first time difference, where
  • the second generating module may include: an acquiring submodule (not shown) configured to obtain the first time of the first billing time corresponding to the first historical order. The weight, the second weight of the average billing time of the merchant to which the first historical order belongs, and the third weight of the first time difference; generating a sub-module (not shown) configured to be based on the first corresponding to the first historical order The billing time, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight, generate the billing time of the sample order.
  • the generating submodule may be further configured to: calculate a product of a first billing time length corresponding to the first historical order and a first weight, and an average of the merchants to which the first historical order belongs The sum of the product of the billing time and the second weight and the product of the first time difference and the third weight, and the obtained sum is taken as the billing time of the sample order.
  • the third obtaining module may include a first billing time acquisition submodule (not shown), and the first billing time acquisition submodule is configured to: obtain the first a billing time of at least one second historical order of the merchant to which the historical order belongs; selecting a billing duration of the preset number of second historical orders from the billing duration of the at least one second historical order; calculating the selected second taken out The average of the billing time of the historical order, and the first billing time corresponding to the first historical order.
  • a first billing time acquisition submodule is configured to: obtain the first a billing time of at least one second historical order of the merchant to which the historical order belongs; selecting a billing duration of the preset number of second historical orders from the billing duration of the at least one second historical order; calculating the selected second taken out The average of the billing time of the historical order, and the first billing time corresponding to the first historical order.
  • the first billing time acquisition sub-module may be further configured to: sort the billing durations of the at least one second historical order according to the length of time; the side from the short duration Start to select the preset duration of the second historical order.
  • FIG. 6 a block diagram of a computer system 600 suitable for use in implementing an electronic device of an embodiment of the present disclosure is shown.
  • the electronic device shown in FIG. 6 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
  • computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a program in random access memory (RAM) 603 according to a program stored in read only memory (ROM) 602 or from storage portion 608. And perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read only memory
  • RAM random access memory
  • various programs and data required for the operation of the system 600 are also stored.
  • the CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604.
  • An input/output (I/O) interface 605 is also coupled to bus 604.
  • the following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 608 including a hard disk or the like. And a communication portion 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet.
  • Driver 610 is also coupled to I/O interface 605 as needed.
  • a removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611.
  • the central processing unit (CPU) 601 the above-described functions defined in the method of the present disclosure are performed.
  • the above computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus, or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified.
  • Executable instructions can also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units described in the embodiments of the present disclosure may be implemented by software or by hardware.
  • the described unit may also be provided in the processor, for example, as a processor including an acquisition unit, an extraction unit, an estimation unit, and an output unit.
  • the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the acquisition unit may also be described as “a unit that acquires order data of the current order”.
  • the present disclosure further provides a computer readable medium, which may be included in an electronic device described in the above embodiments, or may be separately present without being assembled into the electronic device.
  • the computer readable medium carries one or more programs, when the one or more programs are executed by the electronic device, causing the electronic device to: obtain order data of the current order; and extract the current order from the order data of the current order.
  • a feature vector wherein the feature vector of the current order is used to describe the feature of the current order; the feature vector of the current order is input to the pre-trained billing time estimation model to obtain the billing time of the current order, wherein the billing time is
  • the estimation model is used to characterize the correspondence between the feature vector and the billing time; output the billing duration of the current order.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Operations Research (AREA)
  • Game Theory and Decision Science (AREA)
  • Tourism & Hospitality (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Measurement Of Unknown Time Intervals (AREA)

Abstract

An information output method and device for improving estimate accuracy of order output duration. The method comprises: obtaining order data of a current order (201); extracting a feature vector of the current order from the order data of the current order (202), wherein the feature vector of the current order is used for describing the features of the current order; inputting the feature vector of the current order to a pre-trained order output duration estimate model to obtain the order output duration of the current order (203), wherein the order output duration estimate model is used for representing a correspondence of the feature vector and the order output duration; and outputting the order output duration of the current order (204).

Description

信息输出方法和装置Information output method and device
相关申请的交叉引用Cross-reference to related applications
本公开要求于2017年9月26日提交的中国专利申请号为“201710883016.5”的优先权,其全部内容作为整体并入本公开中。The present disclosure claims the priority of the Chinese Patent Application No. Hei. No. Hei. No. Hei.
技术领域Technical field
本公开涉及计算机技术领域,具体涉及互联网技术领域,尤其涉及信息输出方法和装置。The present disclosure relates to the field of computer technologies, and in particular, to the field of Internet technologies, and in particular, to an information output method and apparatus.
背景技术Background technique
随着互联网以及移动互联网的快速发展,电子商务应用也得到了飞速发展。尤其是外卖网站,其改变了传统电话订购外卖服务的模式,可以提供免费、方便、快捷、自主的信息,帮助用户找到合适自己的外卖服务。合理地规划配送路线可以提高订单配送效率,从而提高外卖订单的配送准时率,有助于提高用户的体验。With the rapid development of the Internet and the mobile Internet, e-commerce applications have also developed rapidly. In particular, the take-away website, which changes the mode of traditional telephone order take-out service, can provide free, convenient, fast and independent information to help users find the right take-away service. Reasonable planning of the delivery route can improve the efficiency of order delivery, thereby increasing the delivery punctuality rate of the take-out order and helping to improve the user experience.
预估订单的出单时长有助于配送人员合理地规划配送路线,从而提高订单配送效率。Estimating the order delivery time helps the delivery personnel to reasonably plan the delivery route, thereby improving order delivery efficiency.
然而,现有的出单时长预估方式通常是将商家的平均出单时长作为该商家的所有订单的出单时长,并不考虑不同订单之间的差异,导致出单时长的预估准确率较低。However, the existing billing time estimation method usually takes the average billing time of the merchant as the billing time of all the orders of the merchant, and does not consider the difference between different orders, resulting in the estimated accuracy of the billing time. Lower.
发明内容Summary of the invention
本公开实施例的目的在于提出一种改进的信息输出方法和装置,来解决以上背景技术部分提到的技术问题。It is an object of embodiments of the present disclosure to provide an improved information output method and apparatus to solve the technical problems mentioned in the background section above.
第一方面,本公开实施例提供了A1、一种信息输出方法,该方法包括:获取当前订单的订单数据;从当前订单的订单数据中提取当前订单的特征向量,其中,当前订单的特征向量用于描述当前订单的特 征;将当前订单的特征向量输入至预先训练的出单时长预估模型,得到当前订单的出单时长,其中,出单时长预估模型用于表征特征向量与出单时长的对应关系;输出当前订单的出单时长。In a first aspect, an embodiment of the present disclosure provides an A1, an information output method, the method includes: acquiring order data of a current order; extracting a feature vector of the current order from the order data of the current order, where the feature vector of the current order Used to describe the characteristics of the current order; input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order, wherein the billing time prediction model is used to characterize the feature vector and the billing The corresponding relationship of the duration; output the time of the current order.
A2、如A1所述的方法,该方法还包括训练出单时长预估模型的步骤,训练出单时长预估模型的步骤包括:获取样本订单的特征向量和样本订单的出单时长;将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型。A2. The method according to A1, the method further comprising the step of training a single-time length estimation model, and the step of training the single-time length estimation model comprises: obtaining a feature vector of the sample order and a billing time of the sample order; The feature vector of the order is used as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
A3、如A2所述的方法,将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型,包括:执行以下训练步骤:将样本订单的特征向量输入至深层神经网络,得到样本订单的预估出单时长,利用样本订单的预估出单时长和样本订单的出单时长,确定深层神经网络的预估准确率,若预估准确率大于预设准确率阈值,则将深层神经网络作为出单时长预估模型;响应于确定预估准确率不大于预设准确率阈值,调整深层神经网络的参数,并继续执行训练步骤。A3. The method according to A2, taking the feature vector of the sample order as an input, and outputting the billing time of the sample order as an output, training to obtain a billing time estimation model, comprising: performing the following training step: eigenvector of the sample order Input to the deep neural network to obtain the estimated billing time of the sample order, and use the estimated billing time of the sample order and the billing time of the sample order to determine the prediction accuracy of the deep neural network, if the estimated accuracy is greater than the pre-predicted When the accuracy rate threshold is set, the deep neural network is used as the billing time prediction model; in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, the parameters of the deep neural network are adjusted, and the training step is continued.
A4、如A2所述的方法,获取样本订单的特征向量和样本订单的出单时长,包括:获取第一历史订单的订单数据和出单时长;从第一历史订单的订单数据中提取第一历史订单的特征向量作为样本订单的特征向量,其中,样本订单的特征向量用于描述第一历史订单的特征;获取第一历史订单的出单类别,其中,出单类别包括第一类别和第二类别,第一类别用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况,第二类别用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况;若第一历史订单的出单类别是第一类别,则将第一历史订单的出单时长作为样本订单的出单时长。A4. The method as described in A2, obtaining the feature vector of the sample order and the billing time of the sample order, comprising: obtaining the order data of the first historical order and the billing time; and extracting the first from the order data of the first historical order. The feature vector of the historical order is used as the feature vector of the sample order, wherein the feature vector of the sample order is used to describe the feature of the first historical order; the billing category of the first historical order is obtained, wherein the billing category includes the first category and the first category In the second category, the first category is used to indicate that the order has not been placed after the delivery resource of the order reaches the merchant to which the order belongs, and the second category is used to indicate that the order has been placed before the delivery resource of the order reaches the merchant to which the order belongs; The billing category of the first historical order is the first category, and the billing time of the first historical order is used as the billing time of the sample order.
A5、如A4所述的方法,获取样本订单的特征向量和样本订单的出单时长,还包括:若第一历史订单的出单类别是第二类别,则获取第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,其中,第一时间差是第一历史订单的配送资源到达第一历史订单所属商家的时间与第一历史订单所属商家接收第一历史订单的时间的时间差;基于第一历史订单所对应的第一出单时 长、第一历史订单所属商家的平均出单时长和第一时间差,生成样本订单的出单时长。A5. The method as described in A4, obtaining the feature vector of the sample order and the billing time of the sample order, further comprising: if the billing category of the first historical order is the second category, acquiring the first corresponding to the first historical order The time of the single bill, the average billing time of the merchant to which the first historical order belongs, and the first time difference, wherein the first time difference is the time when the distribution resource of the first historical order reaches the merchant to which the first historical order belongs and the merchant to which the first historical order belongs The time difference of the time when the first historical order is received; the time of the billing of the sample order is generated based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference.
A6、如A5所述的方法,基于第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,生成样本订单的出单时长,包括:获取第一历史订单所对应的第一出单时长的第一权重、第一历史订单所属商家的平均出单时长的第二权重和第一时间差的第三权重;基于第一历史订单所对应的第一出单时长、第一权重、第一历史订单所属商家的平均出单时长、第二权重、第一时间差和第三权重,生成样本订单的出单时长。A6. The method according to A5, generating a billing duration of the sample order based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference, including: obtaining The first weight of the first billing time corresponding to the first historical order, the second weight of the average billing time of the merchant to which the first historical order belongs, and the third weight of the first time difference; based on the first historical order The billing time, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight, generate the billing time of the sample order.
A7、如A6所述的方法,基于第一历史订单所对应的第一出单时长、第一权重、第一历史订单所属商家的平均出单时长、第二权重、第一时间差和第三权重,生成样本订单的出单时长,包括:计算第一历史订单所对应的第一出单时长与第一权重的乘积、第一历史订单所属商家的平均出单时长与第二权重的乘积和第一时间差与第三权重的乘积的和,将所得到的和作为样本订单的出单时长。A7. The method of A6, based on the first billing time length corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight And generating a sample order time, comprising: calculating a product of a first billing time corresponding to the first historical order and a first weight, a product of an average billing time of the merchant to which the first historical order belongs, and a second weight The sum of the product of a time difference and a third weight, and the resulting sum is taken as the time of the bill for the sample order.
A8、如A5所述的方法,第一历史订单所对应的第一出单时长是通过如下步骤获取的:获取第一历史订单所属商家的至少一个第二历史订单的出单时长;从至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长;计算所选取出的第二历史订单的出单时长的平均值,并作为第一历史订单所对应的第一出单时长。A8. The method of A5, the first billing time corresponding to the first historical order is obtained by acquiring the billing time of the at least one second historical order of the merchant to which the first historical order belongs; from at least one The billing duration of the second historical order is selected from the billing duration of the second historical order; the average of the billing time of the selected second historical order is calculated, and is the first corresponding to the first historical order. A single time.
A9、如A8所述的方法,从至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长,包括:对至少一个第二历史订单的出单时长按照时长长短进行排序;从时长短的一侧开始选取出预设数目第二历史订单的出单时长。A9. The method according to A8, the time length of the preset number of second historical orders is selected from the billing time of the at least one second historical order, including: the duration of the billing of the at least one second historical order is in accordance with the duration Sort the length and length; select the preset duration of the second historical order from the side of the short duration.
第二方面,本公开实施例提供了B1、一种信息输出装置,该装置包括:获取单元,配置用于获取当前订单的订单数据;提取单元,配置用于从当前订单的订单数据中提取当前订单的特征向量,其中,当前订单的特征向量用于描述当前订单的特征;预估单元,配置用于将当前订单的特征向量输入至预先训练的出单时长预估模型,得到当前订单的出单时长,其中,出单时长预估模型用于表征特征向量与出单 时长的对应关系;输出单元,配置用于输出当前订单的出单时长。In a second aspect, an embodiment of the present disclosure provides a B1, an information output device, where the device includes: an obtaining unit configured to acquire order data of a current order; and an extracting unit configured to extract current from order data of the current order The feature vector of the order, wherein the feature vector of the current order is used to describe the feature of the current order; the estimating unit is configured to input the feature vector of the current order into the pre-trained billing time estimation model to obtain the current order The single time length, wherein the billing time estimation model is used to represent the correspondence between the feature vector and the billing time; the output unit is configured to output the billing duration of the current order.
B2、如B1所述的装置,该装置还包括训练单元,训练单元包括:获取子单元,配置用于获取样本订单的特征向量和样本订单的出单时长;训练子单元,配置用于将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型。B2. The device of B1, further comprising a training unit, the training unit comprising: an acquisition subunit configured to acquire a feature vector of the sample order and a billing time of the sample order; and a training subunit configured to use the sample The feature vector of the order is used as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
B3、如B2所述的装置,训练子单元包括:训练模块,配置用于执行以下训练步骤:将样本订单的特征向量输入至深层神经网络,得到样本订单的预估出单时长,利用样本订单的预估出单时长和样本订单的出单时长,确定深层神经网络的预估准确率,若预估准确率大于预设准确率阈值,则将深层神经网络作为出单时长预估模型;调整模块,配置用于响应于确定预估准确率不大于预设准确率阈值,调整深层神经网络的参数,并继续执行训练步骤。B3. The device as described in B2, the training subunit comprises: a training module, configured to perform the following training step: input the feature vector of the sample order into the deep neural network, obtain the estimated order duration of the sample order, and use the sample order Estimated delivery time and sample order time, determine the prediction accuracy of the deep neural network. If the prediction accuracy is greater than the preset accuracy threshold, the deep neural network is used as the estimation model of the release duration; The module is configured to adjust parameters of the deep neural network in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, and continue to perform the training step.
B4、如B2所述的装置,获取子单元包括:第一获取模块,配置用于获取第一历史订单的订单数据和出单时长;提取模块,配置用于从第一历史订单的订单数据中提取第一历史订单的特征向量作为样本订单的特征向量,其中,样本订单的特征向量用于描述第一历史订单的特征;第二获取模块,配置用于获取第一历史订单的出单类别,其中,出单类别包括第一类别和第二类别,第一类别用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况,第二类别用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况;第一生成模块,配置用于若第一历史订单的出单类别是第一类别,则将第一历史订单的出单时长作为样本订单的出单时长。B4. The device as described in B2, the obtaining subunit comprises: a first obtaining module configured to acquire order data and a billing time of the first historical order; and an extracting module configured to be used in order data from the first historical order Extracting a feature vector of the first historical order as a feature vector of the sample order, wherein the feature vector of the sample order is used to describe the feature of the first historical order; and the second obtaining module is configured to obtain the billing category of the first historical order, The billing category includes a first category and a second category. The first category is used to indicate that the order has not been placed after the delivery resource of the order reaches the merchant to which the order belongs, and the second category is used to represent the delivery resource arrival order in the order. The first generation module is configured to use the billing time of the first historical order as the billing time of the sample order if the order of the first order is the first category.
B5、如B4所述的装置,获取子单元还包括:第三获取模块,配置用于若第一历史订单的出单类别是第二类别,则获取第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,其中,第一时间差是第一历史订单的配送资源到达第一历史订单所属商家的时间与第一历史订单所属商家接收第一历史订单的时间的时间差;第二生成模块,配置用于基于第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,生成样本订单的出单时长。B5. The device of claim 4, the obtaining subunit further comprising: a third obtaining module, configured to acquire the first bill corresponding to the first historical order if the billing category of the first historical order is the second category The duration, the average billing time of the merchant to which the first historical order belongs, and the first time difference, wherein the first time difference is that the delivery resource of the first historical order reaches the merchant of the first historical order and the merchant of the first historical order receives the first The time difference of the time of the historical order; the second generating module is configured to generate the sample order based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference Single time.
B6、如B5所述的装置,第二生成模块包括:获取子模块,配置用于获取第一历史订单所对应的第一出单时长的第一权重、第一历史订单所属商家的平均出单时长的第二权重和第一时间差的第三权重;生成子模块,配置用于基于第一历史订单所对应的第一出单时长、第一权重、第一历史订单所属商家的平均出单时长、第二权重、第一时间差和第三权重,生成样本订单的出单时长。B6. The device according to B5, the second generating module includes: an obtaining submodule configured to obtain a first weight of the first billing time corresponding to the first historical order, and an average bill of the merchant to which the first historical order belongs a second weight of the duration and a third weight of the first time difference; generating a sub-module configured to use the first billing duration, the first weight, and the average billing time of the merchant to which the first historical order belongs according to the first historical order The second weight, the first time difference, and the third weight generate a billing time for the sample order.
B7、如B6所述的装置,生成子模块进一步配置用于:计算第一历史订单所对应的第一出单时长与第一权重的乘积、第一历史订单所属商家的平均出单时长与第二权重的乘积和第一时间差与第三权重的乘积的和,将所得到的和作为样本订单的出单时长。B7. The device according to B6, wherein the generating submodule is further configured to: calculate a product of a first billing time length corresponding to the first historical order and a first weight, and an average billing time and a first billing time of the merchant to which the first historical order belongs The sum of the product of the two weights and the product of the first time difference and the third weight, and the obtained sum is taken as the billing time of the sample order.
B8、如B5所述的装置,第三获取模块包括第一出单时长获取子模块,第一出单时长获取子模块,配置用于:获取第一历史订单所属商家的至少一个第二历史订单的出单时长;从至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长;计算所选取出的第二历史订单的出单时长的平均值,并作为第一历史订单所对应的第一出单时长。B8. The device of claim 5, the third obtaining module includes a first billing time acquisition sub-module, and a first billing time acquisition sub-module configured to: acquire at least one second historical order of the merchant to which the first historical order belongs The time of the billing time is selected; the billing time of the preset number of second historical orders is selected from the billing time of at least one second historical order; and the average value of the billing time of the selected second historical order is calculated and used as The first billing time corresponding to the first historical order.
B9、如B8所述的装置,第一出单时长获取子模块进一步配置用于:对至少一个第二历史订单的出单时长按照时长长短进行排序;从时长短的一侧开始选取出预设数目第二历史订单的出单时长。第三方面,本公开实施例提供了C1、一种服务器,该服务器包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如A1到A9中任一实现方式描述的方法。B9. The device according to B8, wherein the first billing time acquisition submodule is further configured to: sort the time of the billing of the at least one second historical order according to the length and the length; and select the preset from the side of the short duration The number of times the second historical order is issued. In a third aspect, an embodiment of the present disclosure provides C1, a server, the server includes: one or more processors; a storage device for storing one or more programs; and one or more programs when one or more programs are The processor executes such that one or more processors implement the methods as described in any of the implementations of A1 through A9.
第四方面,本公开实施例提供了D1、一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现如A1到A9中任一实现方式描述的方法。In a fourth aspect, an embodiment of the present disclosure provides a computer readable storage medium, where a computer program is stored thereon, and when the computer program is executed by the processor, the method described in any one of the embodiments A1 to A9 is implemented.
本公开实施例提供的信息输出方法和装置,首先获取当前订单的订单数据,以便于从当前订单的订单数据中提取当前订单的特征向量;然后将当前订单的特征向量输入至出单时长预估模型,从而得到当前订单的出单时长;最后将所得到的当前订单的出单时长输出。利用可 以表征特征向量与出单时长的对应关系的出单时长预估模型预估出单时长,提高了出单时长的预估准确率。The information output method and apparatus provided by the embodiment of the present disclosure first acquires order data of the current order, so as to extract the feature vector of the current order from the order data of the current order; and then input the feature vector of the current order into the billing time estimate. The model, so as to get the current order's billing time; finally, the resulting current order's billing time output. The billing time estimation model, which can characterize the correspondence between the feature vector and the billing time, is used to estimate the single time duration, which improves the estimation accuracy of the billing time.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本公开的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present disclosure will become more apparent from the detailed description of the accompanying drawings.
图1是本公开实施例可以应用于其中的示例性系统架构图;1 is an exemplary system architecture diagram to which an embodiment of the present disclosure may be applied;
图2是根据本公开的信息输出方法的一个实施例的流程图;2 is a flow chart of one embodiment of an information output method in accordance with the present disclosure;
图3是根据本公开的训练出单时长预估模型的方法的一个实施例的流程图;3 is a flow diagram of one embodiment of a method of training a single duration estimation model in accordance with the present disclosure;
图4是根据本公开的训练出单时长预估模型的方法的又一个实施例的流程图;4 is a flow chart of still another embodiment of a method of training a single duration estimation model in accordance with the present disclosure;
图5是根据本公开的信息输出装置的一个实施例的结构示意图;FIG. 5 is a schematic structural diagram of an embodiment of an information output device according to the present disclosure; FIG.
图6是适于用来实现本公开实施例的电子设备的计算机系统的结构示意图。6 is a block diagram of a computer system suitable for use in implementing an electronic device of an embodiment of the present disclosure.
具体实施方式Detailed ways
下面结合附图和实施例对本公开作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本公开。It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the drawings and embodiments.
图1示出了可以应用本公开的信息输出方法或信息输出装置的实施例的示例性系统架构100。FIG. 1 illustrates an exemplary system architecture 100 in which an embodiment of an information output method or information output device of the present disclosure may be applied.
如图1所示,系统架构100可以包括数据库服务器101、网络102和服务器103。网络102用以在数据库服务器101和服务器103之间提供通信链路的介质。网络102可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, system architecture 100 can include database server 101, network 102, and server 103. The network 102 is used to provide a medium for communication links between the database server 101 and the server 103. Network 102 can include a variety of connection types, such as wired, wireless communication links, fiber optic cables, and the like.
数据库服务器101可以是各种网站的后台数据库服务器。例如,数据库服务器101可以是某电子商务网站的后台服务器,用于存储该电子商务网站上的订单数据。The database server 101 can be a back-end database server for various websites. For example, the database server 101 can be a background server of an e-commerce website for storing order data on the e-commerce website.
服务器103可以提供各种服务,例如服务器103可以对从数据库服务器101中所获取到的当前订单的订单数据进行分析等处理,并将处理结果(例如当前订单的出单时长)输出。The server 103 can provide various services, for example, the server 103 can analyze the order data of the current order acquired from the database server 101, and output the processing result (for example, the billing duration of the current order).
需要说明的是,本公开实施例所提供的信息输出方法一般由服务器103执行,相应地,信息输出装置一般设置于服务器103中。It should be noted that the information output method provided by the embodiment of the present disclosure is generally performed by the server 103. Accordingly, the information output device is generally disposed in the server 103.
应该理解,图1中的数据库服务器、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的数据库服务器、网络和服务器。It should be understood that the number of database servers, networks, and servers in Figure 1 is merely illustrative. Depending on the implementation needs, you can have any number of database servers, networks, and servers.
继续参考图2,其示出了根据本公开的信息输出方法的一个实施例的流程200。该信息输出方法,包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of an information output method in accordance with the present disclosure is illustrated. The information output method includes the following steps:
步骤201,获取当前订单的订单数据。Step 201: Obtain order data of the current order.
在本实施例中,信息输出方法运行于其上的电子设备(例如图1所示的服务器103)可以通过有线连接方式或无线连接方式从数据库服务器(例如图1所示的数据库服务器101)获取预设网站(例如某电子商务网站)上的当前订单的订单数据。其中,当前订单可以是预设网站上的注册用户当前对预设网站上的物品所下的订单。订单数据可以包括但不限于以下至少一项:订单标识、订单所属商家的商家标识、订单所属城市的城市标识、订单所属商圈的商圈标识、订单中的物品的总价、订单中的物品信息、订单所属商家的类别(例如快餐、自助餐、家常菜等)、订单所属商户的品牌、订单的出单时长(通常当前订单的订单数据中不包括订单的出单时长)、订单的出单类别(通常当前订单的订单数据中不包括订单的出单时长)等等。In this embodiment, the electronic device (for example, the server 103 shown in FIG. 1) on which the information output method runs can be obtained from a database server (for example, the database server 101 shown in FIG. 1) by a wired connection or a wireless connection. Order data for the current order on a website (such as an e-commerce website). The current order may be an order placed by the registered user on the preset website currently on the item on the preset website. The order data may include, but is not limited to, at least one of the following: an order identifier, a merchant identifier of the merchant to which the order belongs, a city logo of the city to which the order belongs, a business circle logo of the business circle to which the order belongs, the total price of the articles in the order, and the articles in the order. The information, the category of the business to which the order belongs (such as fast food, buffet, home cooking, etc.), the brand of the merchant to which the order belongs, the time of the order for the order (usually the order data of the order is not included in the order data of the current order), and the order is placed. Category (usually the order size of the order is not included in the order data of the current order) and so on.
步骤202,从当前订单的订单数据中提取当前订单的特征向量。Step 202: Extract a feature vector of the current order from the order data of the current order.
在本实施例中,基于步骤201所获取到的当前订单的订单数据,电子设备可以从当前订单的订单数据中提取当前订单的特征向量。其中,当前订单的特征向量可以用于描述当前订单的特征。In this embodiment, based on the order data of the current order acquired in step 201, the electronic device may extract the feature vector of the current order from the order data of the current order. Among them, the feature vector of the current order can be used to describe the characteristics of the current order.
通常,特征向量可以包括但不限于以下至少一项:基础特征、统 计特征、组合特征、稀疏特征等。In general, the feature vector may include, but is not limited to, at least one of the following: a base feature, a statistical feature, a combined feature, a sparse feature, and the like.
其中,基础特征可以包括但不限于以下至少一项:订单所属时段(例如8点时段、11点时段等)、订单中不同类别的物品的数量(通常相同的物品属于同一类别)、订单中的物品的数量、订单所属商家当前未出单的订单的数量等。The basic feature may include, but is not limited to, at least one of the following: an order period (for example, an 8-point period, an 11-point period, and the like), an item of different categories in the order (usually the same item belongs to the same category), and an order The number of items, the number of orders for which the order belongs to the merchant, and so on.
统计特征可以包括但不限于以下至少一项:订单中的物品的总价与订单所属商家的多个订单中的物品的平均总价的比值、订单中不同类别的物品的数量与订单所属商家的多个订单中不同类别的物品的平均数量的比值、订单中的物品的数量与订单所属商家的多个订单中的物品的平均数量的比值、订单所属商家当前未出单的订单中的物品的总价、订单所属商家当前未出单的订单中不同类别的物品的数量、订单所属商家当前未出单的订单中的物品的数量、订单所属商家当前未出单的订单中的物品的平均总价与订单所属商家的多个订单中的物品的平均总价的比值、订单所属商家当前未出单的订单中不同类别的物品的平均数量与订单所属商家的多个订单中不同类别的物品的平均数量的比值、订单所属商家当前未出单的订单中的物品的平均数量与订单所属商家的多个订单中的物品的平均数量的比值。The statistical characteristics may include, but are not limited to, at least one of: a ratio of the total price of the items in the order to the average total price of the items in the plurality of orders of the merchant to which the order belongs, the number of items of different categories in the order, and the merchant to which the order belongs The ratio of the average number of items in different categories in a plurality of orders, the ratio of the number of items in the order to the average number of items in the plurality of orders of the merchant to which the order belongs, and the items in the order in which the order is not currently placed by the merchant The total price, the number of items in different categories in the order that the order is not currently placed by the order, the quantity of items in the order that the order belongs to the current unsold order, and the average total of the items in the order that the order belongs to the current unsold order The ratio of the price to the average total price of the items in the multiple orders of the merchant to which the order belongs, the average number of items of different categories in the order that the order is not currently placed by the order, and the items of different categories among the multiple orders of the merchant to which the order belongs. The average number of items, the average number of items in the order that the order is not currently placed, and the business to which the order belongs The average ratio of the number of articles of a plurality of orders.
组合特征可以包括但不限于以下至少一项:订单所属商家的商家标识与订单所属时段组合成的组合特征、订单所属时段与订单的出单时间组合成的组合特征。The combined feature may include, but is not limited to, at least one of the following: a combination feature of the merchant identification of the merchant to which the order belongs and a combination time of the time zone to which the order belongs, a combination feature of the time zone of the order and the delivery time of the order.
稀疏特征可以是对订单数据进行编码所得到的稀疏矩阵,其中,稀疏矩阵中数值为0的元素数目远远多于非0元素的数目。The sparse feature may be a sparse matrix obtained by encoding the order data, wherein the number of elements having a value of 0 in the sparse matrix is far more than the number of non-zero elements.
步骤203,将当前订单的特征向量输入至预先训练的出单时长预估模型,得到当前订单的出单时长。Step 203: Input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order.
在本实施例中,基于步骤202所提取出的当前订单的特征向量,电子设备可以将当前订单的特征向量输入至预先训练的出单时长预估模型,从而得到当前订单的出单时长。其中,出单时长可以是订单的出单时间与订单的配送资源到达订单所属商家的时间的时间差,其中,配送资源可以包括但不限于配送人员、配送机器人等等。In this embodiment, based on the feature vector of the current order extracted in step 202, the electronic device may input the feature vector of the current order into the pre-trained billing time estimation model, thereby obtaining the billing duration of the current order. The timeout period may be the time difference between the time of placing the order and the time when the delivery resource of the order arrives at the merchant to which the order belongs, wherein the distribution resource may include, but is not limited to, a delivery person, a delivery robot, and the like.
在本实施例中,出单时长预估模型可以用于表征特征向量与出单 时长的对应关系。这里,电子设备可以通过多种方式训练出单时长预估模型。In this embodiment, the billing time prediction model can be used to characterize the correspondence between the feature vector and the billing duration. Here, the electronic device can train the single duration estimation model in a variety of ways.
在本实施例的一些可选的实现方式中,电子设备可以基于对大量历史订单的特征向量和出单时长的统计而生成存储有多个特征向量和出单时长的对应关系的对应关系表,并将该对应关系表作为出单时长预估模型。当电子设备将当前订单的特征向量输入出单时长预估模型时,出单时长预估模型会查询对应关系表,从而得到当前订单的特征向量所对应的出单时长。In some optional implementation manners of the embodiment, the electronic device may generate, according to the statistics of the feature vector and the billing duration of the historical order, a correspondence table in which the correspondence between the plurality of feature vectors and the billing duration is stored. The correspondence table is used as an estimation model for the billing time. When the electronic device inputs the feature vector of the current order into the single-time estimation model, the billing time estimation model queries the correspondence table to obtain the billing time corresponding to the feature vector of the current order.
步骤204,输出当前订单的出单时长。Step 204: Output the billing time of the current order.
在本实施例中,基于步骤203所得到的当前订单的出单时长,电子设备可以将当前订单的出单时长输出到与其通信连接的其他电子设备(例如,数据库服务器、终端设备等)上。作为示例,电子设备可以将当前订单的出单时长发送至当前订单的配送人员或配送机器人的管理人员的终端设备上,以便于当前订单的配送人员或配送机器人的管理人员对配送路线进行规划。In this embodiment, based on the billing time of the current order obtained in step 203, the electronic device can output the billing duration of the current order to other electronic devices (for example, a database server, a terminal device, etc.) that are communicatively connected thereto. As an example, the electronic device may send the billing time of the current order to the dispatcher of the current order or the terminal device of the manager of the delivery robot, so that the delivery person of the current order or the manager of the delivery robot can plan the delivery route.
本公开实施例提供的信息输出方法,首先获取当前订单的订单数据,以便于从当前订单的订单数据中提取当前订单的特征向量;然后将当前订单的特征向量输入至出单时长预估模型,从而得到当前订单的出单时长;最后将所得到的当前订单的出单时长输出。利用可以表征特征向量与出单时长的对应关系的出单时长预估模型预估出单时长,提高了出单时长的预估准确率。The information output method provided by the embodiment of the present disclosure first obtains the order data of the current order, so as to extract the feature vector of the current order from the order data of the current order; and then input the feature vector of the current order into the billing time estimation model. In this way, the billing time of the current order is obtained; finally, the obtained billing time of the current order is output. The billing time prediction model which can represent the correspondence between the feature vector and the billing time is used to estimate the single duration, which improves the estimation accuracy of the billing time.
进一步参考图3,其示出了训练出单时长预估模型的方法的一个实施例的流程300。该训练出单时长预估模型的方法的流程300,包括以下步骤:With further reference to FIG. 3, a flow 300 of one embodiment of a method of training a single duration estimation model is illustrated. The process 300 of the method for training a single time prediction model includes the following steps:
步骤301,获取样本订单的特征向量和样本订单的出单时长。Step 301: Obtain a feature vector of the sample order and a billing time of the sample order.
在本实施例中,训练出单时长预估模型的方法运行于其上的电子设备(例如图1所示的服务器103)可以获取样本订单的特征向量和样本订单的出单时长。这里,电子设备可以通过多种方式获取样本订单的特征向量和样本订单的出单时长。作为示例,本领域技术人员可以对大量订单的订单数据进行统计分析,从而得到多个特征向量和多 个出单时长,并将所得到的每个特征向量和每个出单时长一一对应,然后将其作为样本订单的特征向量和样本订单的出单时长。In the present embodiment, the electronic device (for example, the server 103 shown in FIG. 1) on which the method for training the single duration estimation model is run can acquire the feature vector of the sample order and the billing time of the sample order. Here, the electronic device can obtain the feature vector of the sample order and the billing time of the sample order in various ways. As an example, a person skilled in the art can perform statistical analysis on the order data of a large number of orders, thereby obtaining a plurality of feature vectors and a plurality of billing durations, and correspondingly obtaining each of the obtained feature vectors and each billing time. It is then used as the feature vector for the sample order and the billing time for the sample order.
步骤302,将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型。In step 302, the feature vector of the sample order is taken as an input, and the billing time of the sample order is taken as an output, and the single time duration estimation model is trained.
在本实施例中,基于步骤301所获取的样本订单的特征向量和样本订单的出单时长,电子设备可以利用样本订单的特征向量和样本订单的出单时长,对例如DNN(Deep Neural Network,深层神经网络)模型进行训练,从而得到能够表征特征向量与出单时长之间准确对应关系的出单时长预估模型。In this embodiment, based on the feature vector of the sample order acquired in step 301 and the billing time of the sample order, the electronic device can utilize the feature vector of the sample order and the billing time of the sample order, for example, DNN (Deep Neural Network, The deep neural network model is trained to obtain an order-time prediction model that can accurately represent the relationship between feature vectors and billing time.
在本实施例的一些可选的实现方式中,电子设备可以通过以下步骤训练得到出单时长预估模型:In some optional implementation manners of the embodiment, the electronic device may be trained to obtain a single duration estimation model by the following steps:
首先,执行以下训练步骤:将样本订单的特征向量输入至深层神经网络,得到样本订单的预估出单时长,利用样本订单的预估出单时长和样本订单的出单时长,确定深层神经网络的预估准确率,若预估准确率大于预设准确率阈值,则将深层神经网络作为出单时长预估模型;First, perform the following training steps: input the feature vector of the sample order into the deep neural network, obtain the estimated billing time of the sample order, and determine the deep neural network by using the estimated billing time of the sample order and the billing time of the sample order. The estimated accuracy rate, if the estimated accuracy is greater than the preset accuracy threshold, the deep neural network is used as the billing time prediction model;
这里,若一个样本订单的预估出单时长与该样本订单的出单时长相同或相近(例如差值小于预设值),则深层神经网络对该样本订单的出单时长预估准确;若该样本订单的预估出单时长与该样本订单的出单时长不相同或不相近(例如差值不小于预设值),则深层神经网络对该样本订单的出单时长预估不准确。实践中,电子设备可以将预估准确的样本订单的数目与样本订单的总数的比值作为深层神经网络的预估准确率。Here, if the estimated billing time of a sample order is the same as or similar to the billing time of the sample order (for example, the difference is less than a preset value), the deep neural network estimates the billing time of the sample order accurately; If the estimated billing time of the sample order is different from or different from the billing time of the sample order (for example, the difference is not less than the preset value), the deep neural network may not accurately predict the billing time of the sample order. In practice, the electronic device can use the ratio of the estimated number of sample orders to the total number of sample orders as the estimated accuracy of the deep neural network.
然后,响应于确定预估准确率不大于预设准确率阈值,调整深层神经网络的参数,并继续执行训练步骤。Then, in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, the parameters of the deep neural network are adjusted and the training step continues.
这里,在预估准确率不大于预设准确率阈值的情况下,电子设备可以调整深层神经网络的参数,并返回执行上述训练步骤,直至训练出能够表征订单的特征向量和订单的出单时长之间准确对应关系的出单时长预估模型为止。Here, in the case that the estimated accuracy is not greater than the preset accuracy threshold, the electronic device may adjust the parameters of the deep neural network and return to perform the above training steps until the training of the feature vector capable of characterizing the order and the order time of the order are trained. The accuracy of the correspondence between the billing time and the estimated model.
本公开实施例提供的训练出单时长预估模型的方法,利用样本订 单的特征向量和样本订单的出单时长进行训练,从而得到能够表征特征向量与出单时长之间准确对应关系的出单时长预估模型。The method for training a single duration estimation model provided by the embodiment of the present disclosure uses the feature vector of the sample order and the billing time of the sample order to perform training, thereby obtaining an order that can accurately represent the exact correspondence between the feature vector and the billing time. Duration estimation model.
进一步参考图4,其示出了训练出单时长预估模型的方法的又一个实施例的流程400。该训练出单时长预估模型的方法的流程400,包括以下步骤:With further reference to FIG. 4, a flow 400 of yet another embodiment of a method of training a single duration estimation model is illustrated. The process 400 of the method for training a single time estimation model includes the following steps:
步骤401,获取第一历史订单的订单数据和出单时长。Step 401: Obtain order data and billing time of the first historical order.
在本实施例中,训练出单时长预估模型的方法运行于其上的电子设备(例如图1所示的服务器103)可以通过有线连接方式或无线连接方式从数据库服务器(例如图1所示的数据库服务器101)获取预设网站(例如某电子商务网站)上的第一预设时间段(例如前一个月、前一个星期)内的历史订单的订单数据和出单时长,并作为第一历史订单的订单数据和出单时长,然后执行步骤402和403。In this embodiment, the electronic device (for example, the server 103 shown in FIG. 1) on which the method for training the single duration estimation model is run may be from a database server by a wired connection or a wireless connection (for example, as shown in FIG. 1). The database server 101) obtains the order data and the billing time of the historical order in the first preset time period (for example, the previous month and the previous week) on the preset website (for example, an e-commerce website), and is the first The order data of the historical order and the billing time are long, and then steps 402 and 403 are performed.
步骤402,从第一历史订单的订单数据中提取第一历史订单的特征向量作为样本订单的特征向量。Step 402: Extract a feature vector of the first historical order from the order data of the first historical order as a feature vector of the sample order.
在本实施例中,基于步骤401所获取的第一历史订单的订单数据,电子设备可以从第一历史订单的订单数据中提取第一历史订单的特征向量,并作为样本订单的特征向量,然后执行步骤407。其中,样本订单的特征向量可以用于描述第一历史订单的特征。In this embodiment, based on the order data of the first historical order acquired in step 401, the electronic device may extract the feature vector of the first historical order from the order data of the first historical order and use it as a feature vector of the sample order, and then Go to step 407. Wherein, the feature vector of the sample order can be used to describe the characteristics of the first historical order.
步骤403,获取第一历史订单的出单类别。In step 403, the billing category of the first historical order is obtained.
在本实施例中,基于步骤401所获取的第一历史订单的订单数据,电子设备可以获取第一历史订单的出单类别。In this embodiment, based on the order data of the first historical order acquired in step 401, the electronic device may acquire the billing category of the first historical order.
通常,历史订单的订单数据中可以包括历史订单的出单类别。其中,出单类别可以包括第一类别和第二类别。第一类别可以用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况。第二类别可以用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况。其中,配送资源可以包括但不限于配送人员、配送机器人等等。Usually, the order data of a historical order can include the billing category of the historical order. The billing category may include a first category and a second category. The first category can be used to characterize the situation where the order has not been placed after the delivery resource of the order arrives at the merchant to which the order belongs. The second category can be used to characterize the fact that the order has been placed before the order's delivery resource reaches the merchant to which the order belongs. The distribution resources may include, but are not limited to, a delivery person, a delivery robot, and the like.
步骤404,确定第一历史订单的出单类别是第一类别还是第二类别。Step 404: Determine whether the billing category of the first historical order is the first category or the second category.
在本实施例中,基于步骤403所获取的第一历史订单的出单类别, 电子设备可以确定第一历史订单的出单类别是第一类别还是第二类别;在第一历史订单的出单类别是第一类别的情况下,执行步骤405';在第一历史订单的出单类别是第二类别的情况下,执行步骤405。In this embodiment, based on the billing category of the first historical order acquired in step 403, the electronic device may determine whether the billing category of the first historical order is the first category or the second category; the billing of the first historical order In the case where the category is the first category, step 405' is performed; in the case where the billing category of the first historical order is the second category, step 405 is performed.
步骤405',将第一历史订单的出单时长作为样本订单的出单时长。In step 405 ′, the billing time of the first historical order is used as the billing time of the sample order.
在本实施例中,在第一历史订单的出单类别是第一类别的情况下,电子设备可以将第一历史订单的出单时长作为样本订单的出单时长,然后执行步骤407。In this embodiment, in the case that the billing category of the first historical order is the first category, the electronic device may use the billing duration of the first historical order as the billing duration of the sample order, and then perform step 407.
步骤405,获取第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差。Step 405: Acquire a first billing time length corresponding to the first historical order, an average billing time length of the merchant to which the first historical order belongs, and a first time difference.
在本实施例中,在第一历史订单的出单类别是第二类别的情况下,电子设备可以获取第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差。其中,第一时间差可以是第一历史订单的配送资源到达第一历史订单所属商家的时间与第一历史订单所属商家接收第一历史订单的时间的时间差。第一历史订单所对应的第一出单时长可以是通过对大量与第一历史订单类似的历史订单或第一历史订单所属的商家的大量历史订单进行统计分析而得到的。In this embodiment, in the case that the billing category of the first historical order is the second category, the electronic device may obtain the first billing time corresponding to the first historical order and the average billing of the merchant to which the first historical order belongs. Duration and first time difference. The first time difference may be a time difference between a time when the distribution resource of the first historical order reaches the merchant to which the first historical order belongs and a time when the merchant to which the first historical order belongs receives the first historical order. The first billing time corresponding to the first historical order may be obtained by statistical analysis of a large number of historical orders similar to the first historical order or a large number of historical orders of the merchant to which the first historical order belongs.
在本实施例的一些可选的实现方式中,第一历史订单所对应的第一出单时长可以是电子设备通过如下步骤获取的:In some optional implementation manners of the embodiment, the first billing time corresponding to the first historical order may be obtained by the electronic device by the following steps:
首先,获取第一历史订单所属商家的至少一个第二历史订单的出单时长。First, the billing time of at least one second historical order of the merchant to which the first historical order belongs is obtained.
作为示例,电子设备可以获取第一历史订单所属的商家在第二预设时间段(例如前一个月、前一个星期)内的历史订单的出单时长,并作为第二历史订单的出单时长。As an example, the electronic device may obtain the billing time of the historical order of the merchant to which the first historical order belongs in the second preset time period (for example, the previous month, the previous week), and serve as the billing time of the second historical order. .
然后,从至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长。Then, the billing duration of the preset number of second historical orders is selected from the billing duration of the at least one second historical order.
作为一种示例,电子设备可以从至少一个第二历史订单的出单时长中随机选取出预设数目第二历史订单的出单时长。As an example, the electronic device may randomly select a billing duration of the preset number of second historical orders from the billing time of the at least one second historical order.
作为另一种示例,电子设备可以首先对至少一个第二历史订单的 出单时长按照时长长短进行排序;然后,从时长短的一侧开始选取出预设数目第二历史订单的出单时长。这里,电子设备可以对至少一个第二历史订单的出单时长按照时长从长到短的顺序进行排序;也可以对至少一个第二历史订单的出单时长按照时长从短到长的顺序进行排序。As another example, the electronic device may first sort the billing durations of the at least one second historical order according to the length of time; then, select the preset billing duration of the second historical order from the short side. Here, the electronic device may sort the billing durations of the at least one second historical order in order of length to length; or may sort the billing durations of the at least one second historical order in order of duration from short to long. .
最后,计算所选取出的第二历史订单的出单时长的平均值,并作为第一历史订单所对应的第一出单时长。Finally, the average value of the billing time of the selected second historical order is calculated, and is used as the first billing time corresponding to the first historical order.
步骤406,基于第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,生成样本订单的出单时长。Step 406: Generate a billing duration of the sample order based on the first billing time length corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference.
在本实施例中,基于步骤405所获取到的第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,电子设备可以生成样本订单的出单时长。这里,电子设备可以通过多种方式生成样本订单的出单时长。作为示例,电子设备可以计算第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差的平均值,并作为样本订单的出单时长,然后执行步骤407。In this embodiment, based on the first billing time length corresponding to the first historical order acquired in step 405, the average billing time of the merchant to which the first historical order belongs, and the first time difference, the electronic device may generate the sample order. Single time. Here, the electronic device can generate the billing time of the sample order in various ways. As an example, the electronic device may calculate the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the average of the first time difference, and serve as the billing time of the sample order, and then execute Step 407.
在本实施例的一些可选的实现方式中,电子设备可以首先获取第一历史订单所对应的第一出单时长的第一权重、第一历史订单所属商家的平均出单时长的第二权重和第一时间差的第三权重;然后基于第一历史订单所对应的第一出单时长、第一权重、第一历史订单所属商家的平均出单时长、第二权重、第一时间差和第三权重,生成样本订单的出单时长。In some optional implementation manners of the embodiment, the electronic device may first obtain the first weight of the first billing time corresponding to the first historical order, and the second weight of the average billing time of the merchant to which the first historical order belongs. And a third weight that is different from the first time; and then based on the first billing time corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third Weight, the time the bill was generated for the sample order.
作为示例,电子设备可以计算第一历史订单所对应的第一出单时长与第一权重的乘积、第一历史订单所属商家的平均出单时长与第二权重的乘积和第一时间差与第三权重的乘积的和,将所得到的和作为样本订单的出单时长。As an example, the electronic device may calculate a product of a first billing time and a first weight corresponding to the first historical order, a product of an average billing time and a second weight of the merchant to which the first historical order belongs, and a first time difference and a third The sum of the products of the weights, and the resulting sum is taken as the billing time of the sample order.
具体地,电子设备可以通过如下公式生成样本订单的出单时长ΔT:Specifically, the electronic device can generate the billing time ΔT of the sample order by the following formula:
ΔT=Δt 1×w 1+Δt 2×w 2+Δt 3×w 3ΔT = Δt 1 × w 1 + Δt 2 × w 2 + Δt 3 × w 3 ;
其中,Δt 1是第一历史订单所对应的第一出单时长,Δt 2是第一历史订单所属商家的平均出单时长,Δt 3是第一时间差,w 1是第一权重,w 2是第二权重,w 3是第三权重。 Where Δt 1 is the first billing time corresponding to the first historical order, Δt 2 is the average billing time of the merchant to which the first historical order belongs, Δt 3 is the first time difference, w 1 is the first weight, w 2 is The second weight, w 3 is the third weight.
需要说明的是,第一权重、第二权重和第三权重是根据第一历史订单的类别预先设置的,不同类别的第一历史订单所对应的第一权重、第二权重和第三权重可以不同。It should be noted that the first weight, the second weight, and the third weight are preset according to the category of the first historical order, and the first weight, the second weight, and the third weight corresponding to the first historical order of different categories may be different.
步骤407,将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型。In step 407, the feature vector of the sample order is taken as an input, and the billing time of the sample order is taken as an output, and the single time length estimation model is trained.
在本实施例中,基于步骤402所得到的样本订单的特征向量和步骤405'所得到的样本订单的出单时长或步骤406所得到的样本订单的出单时长,电子设备可以利用样本订单的特征向量和样本订单的出单时长,对例如DNN模型进行训练,从而得到能够表征特征向量与出单时长之间准确对应关系的出单时长预估模型。In this embodiment, based on the feature vector of the sample order obtained in step 402 and the billing time of the sample order obtained in step 405′ or the billing time of the sample order obtained in step 406, the electronic device can utilize the sample order. The feature vector and the order time of the sample order are trained, for example, on the DNN model, thereby obtaining a billing time prediction model capable of characterizing the exact correspondence between the feature vector and the billing time.
从图4中可以看出,与图3对应的实施例相比,本实施例中的训练出单时长预估模型的方法的流程400突出了获取样本订单的特征向量和出单时长的步骤。由此,本实施例描述的方案中的样本订单的特征向量和出单时长是通过对第一历史订单的订单数据和出单时长进行分析处理而得到的,并且不同出单类别的第一历史订单的出单时长的获取方式不同,从而使所获取到的样本订单的特征向量和出单时长更加客观、真实。As can be seen from FIG. 4, the flow 400 of the method for training a single time prediction model in the present embodiment highlights the steps of obtaining the feature vector of the sample order and the time of placing the order, as compared with the embodiment corresponding to FIG. Therefore, the feature vector and the billing time of the sample order in the solution described in this embodiment are obtained by analyzing and processing the order data and the billing time of the first historical order, and the first history of different billing categories The order time of the order is different, so that the feature vector and the billing time of the sample order obtained are more objective and real.
进一步参考图5,作为对上述各图所示方法的实现,本公开提供了一种信息输出装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 5, as an implementation of the method shown in the above figures, the present disclosure provides an embodiment of an information output device, which corresponds to the method embodiment shown in FIG. 2, and the device may specifically Used in a variety of electronic devices.
如图5所示,本实施例的信息输出装置500可以包括:获取单元501、提取单元502、预估单元503和输出单元504。其中,获取单元501,配置用于获取当前订单的订单数据;提取单元502,配置用于从当前订单的订单数据中提取当前订单的特征向量,其中,当前订单的特征向量用于描述当前订单的特征;预估单元503,配置用于将当前订单的特征向量输入至预先训练的出单时长预估模型,得到当前订单的出单时长,其中,出单时长预估模型用于表征特征向量与出单时长 的对应关系;输出单元504,配置用于输出当前订单的出单时长。As shown in FIG. 5, the information output apparatus 500 of the present embodiment may include an acquisition unit 501, an extraction unit 502, an estimation unit 503, and an output unit 504. The obtaining unit 501 is configured to acquire order data of the current order, and the extracting unit 502 is configured to extract a feature vector of the current order from the order data of the current order, where the feature vector of the current order is used to describe the current order. The estimating unit 503 is configured to input the feature vector of the current order into the pre-trained billing time estimation model to obtain the billing duration of the current order, wherein the billing time prediction model is used to represent the feature vector and The corresponding relationship of the billing time; the output unit 504 is configured to output the billing duration of the current order.
在本实施例中,信息输出装置500中:获取单元501、提取单元502、预估单元503和输出单元504的具体处理及其所带来的技术效果可分别参考图2对应实施例中的步骤201、步骤202、步骤203和步骤204的相关说明,在此不再赘述。In this embodiment, the specific processing of the information obtaining apparatus 501, the extracting unit 502, the estimating unit 503, and the output unit 504 and the technical effects thereof can be referred to the steps in the corresponding embodiment of FIG. 2, respectively. 201, step 202, step 203 and step 204 are not described here.
在本实施例的一些可选的实现方式中,信息输出装置500还可以包括训练单元(图中未示出),训练单元可以包括:获取子单元(图中未示出),配置用于获取样本订单的特征向量和样本订单的出单时长;训练子单元(图中未示出),配置用于将样本订单的特征向量作为输入,将样本订单的出单时长作为输出,训练得到出单时长预估模型。In some optional implementation manners of the embodiment, the information output device 500 may further include a training unit (not shown), and the training unit may include: an acquisition subunit (not shown) configured to acquire The feature vector of the sample order and the billing time of the sample order; the training subunit (not shown) is configured to take the feature vector of the sample order as an input, and output the billing time of the sample order as an output, and train to obtain a bill. Duration estimation model.
在本实施例的一些可选的实现方式中,训练子单元可以包括:训练模块(图中未示出),配置用于执行以下训练步骤:将样本订单的特征向量输入至深层神经网络,得到样本订单的预估出单时长,利用样本订单的预估出单时长和样本订单的出单时长,确定深层神经网络的预估准确率,若预估准确率大于预设准确率阈值,则将深层神经网络作为出单时长预估模型;调整模块(图中未示出),配置用于响应于确定预估准确率不大于预设准确率阈值,调整深层神经网络的参数,并继续执行训练步骤。In some optional implementation manners of the embodiment, the training subunit may include: a training module (not shown) configured to perform the following training step: input the feature vector of the sample order into the deep neural network, and obtain The estimated billing time of the sample order, using the estimated billing time of the sample order and the billing time of the sample order, determining the prediction accuracy of the deep neural network. If the estimated accuracy is greater than the preset accuracy threshold, then The deep neural network is used as a billing time estimation model; the adjustment module (not shown) is configured to adjust the parameters of the deep neural network in response to determining that the estimated accuracy is not greater than the preset accuracy threshold, and continue to perform the training. step.
在本实施例的一些可选的实现方式中,获取子单元可以包括:第一获取模块(图中未示出),配置用于获取第一历史订单的订单数据和出单时长;提取模块(图中未示出),配置用于从第一历史订单的订单数据中提取第一历史订单的特征向量作为样本订单的特征向量,其中,样本订单的特征向量用于描述第一历史订单的特征;第二获取模块(图中未示出),配置用于获取第一历史订单的出单类别,其中,出单类别包括第一类别和第二类别,第一类别用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况,第二类别用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况;第一生成模块(图中未示出),配置用于若第一历史订单的出单类别是第一类别,则将第一历史订单的出单时长作为样本订单的出单时长。In some optional implementation manners of the embodiment, the obtaining subunit may include: a first acquiring module (not shown) configured to acquire order data and billing time of the first historical order; and an extracting module ( Not shown in the figure), configured to extract a feature vector of the first historical order from the order data of the first historical order as a feature vector of the sample order, wherein the feature vector of the sample order is used to describe the characteristics of the first historical order a second acquisition module (not shown) configured to obtain an order category of the first historical order, wherein the billing category includes a first category and a second category, and the first category is used to characterize the delivery in the order The second category is used to indicate the situation that the order has been placed before the delivery resource of the order arrives at the merchant to which the order belongs, and the first generation module (not shown) is configured. If the billing category of the first historical order is the first category, the billing time of the first historical order is used as the billing time of the sample order.
在本实施例的一些可选的实现方式中,获取子单元还可以包括: 第三获取模块(图中未示出),配置用于若第一历史订单的出单类别是第二类别,则获取第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,其中,第一时间差是第一历史订单的配送资源到达第一历史订单所属商家的时间与第一历史订单所属商家接收第一历史订单的时间的时间差;第二生成模块(图中未示出),配置用于基于第一历史订单所对应的第一出单时长、第一历史订单所属商家的平均出单时长和第一时间差,生成样本订单的出单时长。In some optional implementation manners of the embodiment, the obtaining sub-unit may further include: a third obtaining module (not shown) configured to: if the billing category of the first historical order is the second category, Obtaining a first billing time corresponding to the first historical order, an average billing time of the merchant to which the first historical order belongs, and a first time difference, wherein the first time difference is that the distribution resource of the first historical order reaches the merchant of the first historical order And a time difference between the time when the first historical order is received by the merchant to which the first historical order belongs; the second generation module (not shown) is configured to be based on the first billing time corresponding to the first historical order, first The average billing time and the first time difference of the merchant to which the historical order belongs, and the billing time of the sample order is generated.
在本实施例的一些可选的实现方式中,第二生成模块可以包括:获取子模块(图中未示出),配置用于获取第一历史订单所对应的第一出单时长的第一权重、第一历史订单所属商家的平均出单时长的第二权重和第一时间差的第三权重;生成子模块(图中未示出),配置用于基于第一历史订单所对应的第一出单时长、第一权重、第一历史订单所属商家的平均出单时长、第二权重、第一时间差和第三权重,生成样本订单的出单时长。In some optional implementation manners of the embodiment, the second generating module may include: an acquiring submodule (not shown) configured to obtain the first time of the first billing time corresponding to the first historical order. The weight, the second weight of the average billing time of the merchant to which the first historical order belongs, and the third weight of the first time difference; generating a sub-module (not shown) configured to be based on the first corresponding to the first historical order The billing time, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the third weight, generate the billing time of the sample order.
在本实施例的一些可选的实现方式中,生成子模块可以进一步配置用于:计算第一历史订单所对应的第一出单时长与第一权重的乘积、第一历史订单所属商家的平均出单时长与第二权重的乘积和第一时间差与第三权重的乘积的和,将所得到的和作为样本订单的出单时长。In some optional implementation manners of the embodiment, the generating submodule may be further configured to: calculate a product of a first billing time length corresponding to the first historical order and a first weight, and an average of the merchants to which the first historical order belongs The sum of the product of the billing time and the second weight and the product of the first time difference and the third weight, and the obtained sum is taken as the billing time of the sample order.
在本实施例的一些可选的实现方式中,第三获取模块可以包括第一出单时长获取子模块(图中未示出),第一出单时长获取子模块,配置用于:获取第一历史订单所属商家的至少一个第二历史订单的出单时长;从至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长;计算所选取出的第二历史订单的出单时长的平均值,并作为第一历史订单所对应的第一出单时长。In some optional implementation manners of the embodiment, the third obtaining module may include a first billing time acquisition submodule (not shown), and the first billing time acquisition submodule is configured to: obtain the first a billing time of at least one second historical order of the merchant to which the historical order belongs; selecting a billing duration of the preset number of second historical orders from the billing duration of the at least one second historical order; calculating the selected second taken out The average of the billing time of the historical order, and the first billing time corresponding to the first historical order.
在本实施例的一些可选的实现方式中,第一出单时长获取子模块可以进一步配置用于:对至少一个第二历史订单的出单时长按照时长长短进行排序;从时长短的一侧开始选取出预设数目第二历史订单的出单时长。In some optional implementation manners of the embodiment, the first billing time acquisition sub-module may be further configured to: sort the billing durations of the at least one second historical order according to the length of time; the side from the short duration Start to select the preset duration of the second historical order.
下面参考图6,其示出了适于用来实现本公开实施例的电子设备 的计算机系统600的结构示意图。图6示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Referring now to Figure 6, a block diagram of a computer system 600 suitable for use in implementing an electronic device of an embodiment of the present disclosure is shown. The electronic device shown in FIG. 6 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present disclosure.
如图6所示,计算机系统600包括中央处理单元(CPU)601,其可以根据存储在只读存储器(ROM)602中的程序或者从存储部分608加载到随机访问存储器(RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有系统600操作所需的各种程序和数据。CPU 601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(I/O)接口605也连接至总线604。As shown in FIG. 6, computer system 600 includes a central processing unit (CPU) 601 that can be loaded into a program in random access memory (RAM) 603 according to a program stored in read only memory (ROM) 602 or from storage portion 608. And perform various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also coupled to bus 604.
以下部件连接至I/O接口605:包括键盘、鼠标等的输入部分606;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分607;包括硬盘等的存储部分608;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分609。通信部分609经由诸如因特网的网络执行通信处理。驱动器610也根据需要连接至I/O接口605。可拆卸介质611,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器610上,以便于从其上读出的计算机程序根据需要被安装入存储部分608。The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, etc.; an output portion 607 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 608 including a hard disk or the like. And a communication portion 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the Internet. Driver 610 is also coupled to I/O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like, is mounted on the drive 610 as needed so that a computer program read therefrom is installed into the storage portion 608 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分609从网络上被下载和安装,和/或从可拆卸介质611被安装。在该计算机程序被中央处理单元(CPU)601执行时,执行本公开的方法中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program in accordance with an embodiment of the present disclosure. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via communication portion 609, and/or installed from removable media 611. When the computer program is executed by the central processing unit (CPU) 601, the above-described functions defined in the method of the present disclosure are performed.
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是但不限于:电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、 便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the above computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus, or device. While in the present disclosure, a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products in accordance with various embodiments of the present disclosure. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括获取单元、提取单元、预估单元和输出单元。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,获取单元还可以被描述为“获取当前订单的订单数据的单元”。The units described in the embodiments of the present disclosure may be implemented by software or by hardware. The described unit may also be provided in the processor, for example, as a processor including an acquisition unit, an extraction unit, an estimation unit, and an output unit. The names of these units do not constitute a limitation on the unit itself under certain circumstances. For example, the acquisition unit may also be described as “a unit that acquires order data of the current order”.
作为另一方面,本公开还提供了一种计算机可读介质,该计算机 可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取当前订单的订单数据;从当前订单的订单数据中提取当前订单的特征向量,其中,当前订单的特征向量用于描述当前订单的特征;将当前订单的特征向量输入至预先训练的出单时长预估模型,得到当前订单的出单时长,其中,出单时长预估模型用于表征特征向量与出单时长的对应关系;输出当前订单的出单时长。In another aspect, the present disclosure further provides a computer readable medium, which may be included in an electronic device described in the above embodiments, or may be separately present without being assembled into the electronic device. in. The computer readable medium carries one or more programs, when the one or more programs are executed by the electronic device, causing the electronic device to: obtain order data of the current order; and extract the current order from the order data of the current order. a feature vector, wherein the feature vector of the current order is used to describe the feature of the current order; the feature vector of the current order is input to the pre-trained billing time estimation model to obtain the billing time of the current order, wherein the billing time is The estimation model is used to characterize the correspondence between the feature vector and the billing time; output the billing duration of the current order.
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present disclosure and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present disclosure is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with technical features disclosed in the present disclosure, but not limited to, technical features having similar functions.

Claims (20)

  1. 一种信息输出方法,其中,所述方法包括:An information output method, wherein the method comprises:
    获取当前订单的订单数据;Get the order data of the current order;
    从所述当前订单的订单数据中提取所述当前订单的特征向量,其中,所述当前订单的特征向量用于描述所述当前订单的特征;Extracting a feature vector of the current order from the order data of the current order, wherein a feature vector of the current order is used to describe a feature of the current order;
    将所述当前订单的特征向量输入至预先训练的出单时长预估模型,得到所述当前订单的出单时长,其中,所述出单时长预估模型用于表征特征向量与出单时长的对应关系;Entering a feature vector of the current order into a pre-trained billing time length estimation model to obtain a billing duration of the current order, wherein the billing time estimation model is used to represent the feature vector and the billing time Correspondence relationship
    输出所述当前订单的出单时长。Output the billing time of the current order.
  2. 根据权利要求1所述的方法,其中,所述方法还包括训练出单时长预估模型的步骤,所述训练出单时长预估模型的步骤包括:The method of claim 1 wherein said method further comprises the step of training a single duration estimation model, said step of training a single duration prediction model comprising:
    获取样本订单的特征向量和样本订单的出单时长;Obtain the feature vector of the sample order and the billing time of the sample order;
    将所述样本订单的特征向量作为输入,将所述样本订单的出单时长作为输出,训练得到出单时长预估模型。Taking the feature vector of the sample order as an input, taking the billing time of the sample order as an output, training to obtain a billing time prediction model.
  3. 根据权利要求2所述的方法,其中,所述将所述样本订单的特征向量作为输入,将所述样本订单的出单时长作为输出,训练得到出单时长预估模型,包括:The method according to claim 2, wherein the taking the feature vector of the sample order as an input and outputting the billing time of the sample order as an output, training to obtain a billing time prediction model, comprising:
    执行以下训练步骤:将所述样本订单的特征向量输入至深层神经网络,得到所述样本订单的预估出单时长,利用所述样本订单的预估出单时长和所述样本订单的出单时长,确定所述深层神经网络的预估准确率,若所述预估准确率大于预设准确率阈值,则将所述深层神经网络作为所述出单时长预估模型;Performing the following training steps: inputting the feature vector of the sample order to the deep neural network, obtaining an estimated billing time of the sample order, using the estimated billing time of the sample order, and the billing of the sample order Determining an estimated accuracy rate of the deep neural network, and if the estimated accuracy is greater than a preset accuracy threshold, using the deep neural network as the billing time prediction model;
    响应于确定所述预估准确率不大于预设准确率阈值,调整所述深层神经网络的参数,并继续执行所述训练步骤。In response to determining that the estimated accuracy is not greater than a preset accuracy threshold, adjusting parameters of the deep neural network and continuing to perform the training step.
  4. 根据权利要求2所述的方法,其中,所述获取样本订单的特征向量和样本订单的出单时长,包括:The method of claim 2, wherein the obtaining the feature vector of the sample order and the billing time of the sample order comprises:
    获取第一历史订单的订单数据和出单时长;Obtain order data and billing time for the first historical order;
    从所述第一历史订单的订单数据中提取所述第一历史订单的特征向量作为样本订单的特征向量,其中,所述样本订单的特征向量用于描述所述第一历史订单的特征;Extracting, from the order data of the first historical order, a feature vector of the first historical order as a feature vector of a sample order, wherein a feature vector of the sample order is used to describe a feature of the first historical order;
    获取所述第一历史订单的出单类别,其中,所述出单类别包括第一类别和第二类别,第一类别用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况,第二类别用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况;Acquiring the billing category of the first historical order, wherein the billing category includes a first category and a second category, where the first category is used to represent that the order is not issued after the delivery resource of the order arrives at the merchant to which the order belongs The second category is used to characterize the fact that the order has been placed before the delivery resource of the order arrives at the merchant to which the order belongs;
    若所述第一历史订单的出单类别是所述第一类别,则将所述第一历史订单的出单时长作为样本订单的出单时长。If the billing category of the first historical order is the first category, the billing duration of the first historical order is used as the billing duration of the sample order.
  5. 根据权利要求4所述的方法,其中,所述获取样本订单的特征向量和样本订单的出单时长,还包括:The method of claim 4, wherein the obtaining the feature vector of the sample order and the billing time of the sample order further comprises:
    若所述第一历史订单的出单类别是所述第二类别,则获取所述第一历史订单所对应的第一出单时长、所述第一历史订单所属商家的平均出单时长和第一时间差,其中,所述第一时间差是所述第一历史订单的配送资源到达所述第一历史订单所属商家的时间与所述第一历史订单所属商家接收所述第一历史订单的时间的时间差;If the billing category of the first historical order is the second category, acquiring the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the a time difference, wherein the first time difference is a time when the delivery resource of the first historical order reaches the merchant to which the first historical order belongs and a time when the merchant to which the first historical order belongs receives the first historical order Time difference;
    基于所述第一历史订单所对应的第一出单时长、所述第一历史订单所属商家的平均出单时长和所述第一时间差,生成样本订单的出单时长。The billing duration of the sample order is generated based on the first billing time length corresponding to the first historical order, the average billing time length of the merchant to which the first historical order belongs, and the first time difference.
  6. 根据权利要求5所述的方法,其中,所述基于所述第一历史订单所对应的第一出单时长、所述第一历史订单所属商家的平均出单时长和所述第一时间差,生成样本订单的出单时长,包括:The method according to claim 5, wherein the generating, based on the first billing time corresponding to the first historical order, the average billing time of the merchant to which the first historical order belongs, and the first time difference, are generated. The billing time for the sample order, including:
    获取所述第一历史订单所对应的第一出单时长的第一权重、所述第一历史订单所属商家的平均出单时长的第二权重和所述第一时间差的第三权重;Obtaining a first weight of the first billing time corresponding to the first historical order, a second weight of the average billing time of the merchant to which the first historical order belongs, and a third weight of the first time difference;
    基于所述第一历史订单所对应的第一出单时长、所述第一权重、所述第一历史订单所属商家的平均出单时长、所述第二权重、所述第 一时间差和所述第三权重,生成样本订单的出单时长。a first billing time length corresponding to the first historical order, the first weight, an average billing time of the merchant to which the first historical order belongs, the second weight, the first time difference, and the The third weight is used to generate the billing time of the sample order.
  7. 根据权利要求6所述的方法,其中,所述基于所述第一历史订单所对应的第一出单时长、所述第一权重、所述第一历史订单所属商家的平均出单时长、所述第二权重、所述第一时间差和所述第三权重,生成样本订单的出单时长,包括:The method according to claim 6, wherein the first billing time length corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, The second weight, the first time difference, and the third weight are generated, and the time for generating the sample order is generated, including:
    计算所述第一历史订单所对应的第一出单时长与所述第一权重的乘积、所述第一历史订单所属商家的平均出单时长与所述第二权重的乘积和所述第一时间差与所述第三权重的乘积的和,将所得到的和作为样本订单的出单时长。Calculating a product of a first billing time length corresponding to the first historical order and the first weight, a product of an average billing time of the merchant to which the first historical order belongs, and the second weight, and the first The sum of the time difference and the product of the third weight, and the resulting sum is taken as the billing time of the sample order.
  8. 根据权利要求5所述的方法,其中,所述第一历史订单所对应的第一出单时长是通过如下步骤获取的:The method according to claim 5, wherein the first billing time corresponding to the first historical order is obtained by the following steps:
    获取所述第一历史订单所属商家的至少一个第二历史订单的出单时长;Obtaining a billing time of at least one second historical order of the merchant to which the first historical order belongs;
    从所述至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长;Selecting, according to the billing duration of the at least one second historical order, a billing duration of the preset number of second historical orders;
    计算所选取出的第二历史订单的出单时长的平均值,并作为所述第一历史订单所对应的第一出单时长。Calculating an average value of the billing time of the selected second historical order, and as the first billing time corresponding to the first historical order.
  9. 根据权利要求8所述的方法,其中,所述从所述至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长,包括:The method of claim 8, wherein the selecting a billing duration of the preset number of second historical orders from the billing duration of the at least one second historical order comprises:
    对所述至少一个第二历史订单的出单时长按照时长长短进行排序;Sorting the time of the billing of the at least one second historical order according to the length of time;
    从时长短的一侧开始选取出预设数目第二历史订单的出单时长。The time of the order for the preset number of second historical orders is selected from the side of the short duration.
  10. 一种信息输出装置,其中,所述装置包括:An information output device, wherein the device comprises:
    获取单元,配置用于获取当前订单的订单数据;Obtaining a unit configured to obtain order data of a current order;
    提取单元,配置用于从所述当前订单的订单数据中提取所述当前 订单的特征向量,其中,所述当前订单的特征向量用于描述所述当前订单的特征;An extracting unit configured to extract a feature vector of the current order from the order data of the current order, wherein a feature vector of the current order is used to describe a feature of the current order;
    预估单元,配置用于将所述当前订单的特征向量输入至预先训练的出单时长预估模型,得到所述当前订单的出单时长,其中,所述出单时长预估模型用于表征特征向量与出单时长的对应关系;An estimating unit, configured to input a feature vector of the current order into a pre-trained billing time estimation model, to obtain a billing duration of the current order, wherein the billing time prediction model is used for characterization Correspondence between feature vectors and billing time;
    输出单元,配置用于输出所述当前订单的出单时长。And an output unit configured to output a billing duration of the current order.
  11. 根据权利要求10所述的装置,其中,所述装置还包括训练单元,所述训练单元包括:The apparatus of claim 10, wherein the apparatus further comprises a training unit, the training unit comprising:
    获取子单元,配置用于获取样本订单的特征向量和样本订单的出单时长;Obtaining a subunit configured to obtain a feature vector of the sample order and a billing time of the sample order;
    训练子单元,配置用于将所述样本订单的特征向量作为输入,将所述样本订单的出单时长作为输出,训练得到出单时长预估模型。The training subunit is configured to take the feature vector of the sample order as an input, and output the billing time of the sample order as an output, and obtain a single duration estimation model.
  12. 根据权利要求11所述的装置,其中,所述训练子单元包括:The apparatus of claim 11 wherein said training subunit comprises:
    训练模块,配置用于执行以下训练步骤:将所述样本订单的特征向量输入至深层神经网络,得到所述样本订单的预估出单时长,利用所述样本订单的预估出单时长和所述样本订单的出单时长,确定所述深层神经网络的预估准确率,若所述预估准确率大于预设准确率阈值,则将所述深层神经网络作为所述出单时长预估模型;a training module, configured to perform the following training step: inputting a feature vector of the sample order to a deep neural network, obtaining an estimated billing time of the sample order, and using the estimated billing time and the location of the sample order Determining the estimated time of the sample order, and determining the prediction accuracy of the deep neural network. If the estimated accuracy is greater than the preset accuracy threshold, using the deep neural network as the prediction model ;
    调整模块,配置用于响应于确定所述预估准确率不大于预设准确率阈值,调整所述深层神经网络的参数,并继续执行所述训练步骤。The adjusting module is configured to adjust parameters of the deep neural network in response to determining that the estimated accuracy is not greater than a preset accuracy threshold, and continue to perform the training step.
  13. 根据权利要求11所述的装置,其中,所述获取子单元包括:The apparatus of claim 11 wherein said obtaining subunit comprises:
    第一获取模块,配置用于获取第一历史订单的订单数据和出单时长;a first obtaining module, configured to acquire order data and a billing time of the first historical order;
    提取模块,配置用于从所述第一历史订单的订单数据中提取所述第一历史订单的特征向量作为样本订单的特征向量,其中,所述样本订单的特征向量用于描述所述第一历史订单的特征;An extraction module, configured to extract a feature vector of the first historical order from an order data of the first historical order as a feature vector of a sample order, wherein a feature vector of the sample order is used to describe the first Characteristics of historical orders;
    第二获取模块,配置用于获取所述第一历史订单的出单类别,其 中,所述出单类别包括第一类别和第二类别,第一类别用于表征在订单的配送资源到达订单所属商家之后订单未出单的情况,第二类别用于表征在订单的配送资源到达订单所属商家之前订单已出单的情况;a second obtaining module, configured to acquire an order type of the first historical order, where the billing category includes a first category and a second category, where the first category is used to represent the delivery resource arrival order of the order In the case that the order is not issued after the merchant, the second category is used to indicate that the order has been placed before the delivery resource of the order reaches the merchant to which the order belongs;
    第一生成模块,配置用于若所述第一历史订单的出单类别是所述第一类别,则将所述第一历史订单的出单时长作为样本订单的出单时长。The first generating module is configured to use, when the billing category of the first historical order is the first category, the billing duration of the first historical order as the billing time of the sample order.
  14. 根据权利要求13所述的装置,其中,所述获取子单元还包括:The apparatus of claim 13, wherein the obtaining subunit further comprises:
    第三获取模块,配置用于若所述第一历史订单的出单类别是所述第二类别,则获取所述第一历史订单所对应的第一出单时长、所述第一历史订单所属商家的平均出单时长和第一时间差,其中,所述第一时间差是所述第一历史订单的配送资源到达所述第一历史订单所属商家的时间与所述第一历史订单所属商家接收所述第一历史订单的时间的时间差;a third obtaining module, configured to acquire, when the billing category of the first historical order is the second category, the first billing time corresponding to the first historical order, and the first historical order The average time of the merchant and the first time difference, wherein the first time difference is the time when the distribution resource of the first historical order reaches the merchant to which the first historical order belongs and the merchant receiving the first historical order The time difference between the time of the first historical order;
    第二生成模块,配置用于基于所述第一历史订单所对应的第一出单时长、所述第一历史订单所属商家的平均出单时长和所述第一时间差,生成样本订单的出单时长。a second generating module, configured to generate a sample order by based on a first billing duration corresponding to the first historical order, an average billing time of the merchant to which the first historical order belongs, and the first time difference duration.
  15. 根据权利要求14所述的装置,其中,所述第二生成模块包括:The apparatus of claim 14, wherein the second generation module comprises:
    获取子模块,配置用于获取所述第一历史订单所对应的第一出单时长的第一权重、所述第一历史订单所属商家的平均出单时长的第二权重和所述第一时间差的第三权重;Obtaining a sub-module, configured to acquire a first weight of the first billing time corresponding to the first historical order, a second weight of the average billing time of the merchant to which the first historical order belongs, and the first time difference Third weight;
    生成子模块,配置用于基于所述第一历史订单所对应的第一出单时长、所述第一权重、所述第一历史订单所属商家的平均出单时长、所述第二权重、所述第一时间差和所述第三权重,生成样本订单的出单时长。Generating a sub-module, configured to be based on the first billing time length corresponding to the first historical order, the first weight, the average billing time of the merchant to which the first historical order belongs, the second weight, and the The first time difference and the third weight are used to generate a billing time for the sample order.
  16. 根据权利要求15所述的装置,其中,所述生成子模块进一步配置用于:The apparatus of claim 15 wherein said generating sub-module is further configured to:
    计算所述第一历史订单所对应的第一出单时长与所述第一权重的 乘积、所述第一历史订单所属商家的平均出单时长与所述第二权重的乘积和所述第一时间差与所述第三权重的乘积的和,将所得到的和作为样本订单的出单时长。Calculating a product of a first billing time length corresponding to the first historical order and the first weight, a product of an average billing time of the merchant to which the first historical order belongs, and the second weight, and the first The sum of the time difference and the product of the third weight, and the resulting sum is taken as the billing time of the sample order.
  17. 根据权利要求14所述的装置,其中,所述第三获取模块包括第一出单时长获取子模块,所述第一出单时长获取子模块,配置用于:The device according to claim 14, wherein the third obtaining module comprises a first billing time acquisition sub-module, and the first billing time acquisition sub-module is configured to:
    获取所述第一历史订单所属商家的至少一个第二历史订单的出单时长;Obtaining a billing time of at least one second historical order of the merchant to which the first historical order belongs;
    从所述至少一个第二历史订单的出单时长中选取出预设数目第二历史订单的出单时长;Selecting, according to the billing duration of the at least one second historical order, a billing duration of the preset number of second historical orders;
    计算所选取出的第二历史订单的出单时长的平均值,并作为所述第一历史订单所对应的第一出单时长。Calculating an average value of the billing time of the selected second historical order, and as the first billing time corresponding to the first historical order.
  18. 根据权利要求17所述的装置,其中,所述第一出单时长获取子模块进一步配置用于:The apparatus according to claim 17, wherein the first billing time acquisition submodule is further configured to:
    对所述至少一个第二历史订单的出单时长按照时长长短进行排序;Sorting the time of the billing of the at least one second historical order according to the length of time;
    从时长短的一侧开始选取出预设数目第二历史订单的出单时长。The time of the order for the preset number of second historical orders is selected from the side of the short duration.
  19. 一种电子设备,其中,所述电子设备包括:An electronic device, wherein the electronic device comprises:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序;a storage device for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-9中任一所述的方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any of claims 1-9.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求1-9中任一所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the method of any of claims 1-9.
PCT/CN2017/118690 2017-09-26 2017-12-26 Information output method and device WO2019061903A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710883016.5A CN107845016B (en) 2017-09-26 2017-09-26 Information output method and device
CN201710883016.5 2017-09-26

Publications (1)

Publication Number Publication Date
WO2019061903A1 true WO2019061903A1 (en) 2019-04-04

Family

ID=61662084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/118690 WO2019061903A1 (en) 2017-09-26 2017-12-26 Information output method and device

Country Status (2)

Country Link
CN (1) CN107845016B (en)
WO (1) WO2019061903A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110619400A (en) * 2018-06-19 2019-12-27 北京京东振世信息技术有限公司 Method and device for generating order information
CN109685276B (en) * 2018-12-27 2021-01-01 拉扎斯网络科技(上海)有限公司 Order processing method and device, electronic equipment and computer readable storage medium
CN111476389A (en) * 2019-01-24 2020-07-31 北京嘀嘀无限科技发展有限公司 Method and device for pre-estimating order receiving waiting time
CN110210946A (en) * 2019-06-10 2019-09-06 网易无尾熊(杭州)科技有限公司 Data processing method and device, medium and calculating equipment
CN110807545A (en) * 2019-10-22 2020-02-18 北京三快在线科技有限公司 Task duration estimation method and device, electronic equipment and storage medium
CN111401818B (en) * 2020-04-07 2023-09-26 上海东普信息科技有限公司 Express delivery achievement rate calculation method, device, equipment and storage medium
CN111860906B (en) * 2020-04-24 2024-04-26 北京嘀嘀无限科技发展有限公司 Method and system for determining estimated arrival time
CN112183856A (en) * 2020-09-27 2021-01-05 拉扎斯网络科技(上海)有限公司 Data processing method and device, readable storage medium and electronic equipment
CN113554483A (en) * 2021-07-19 2021-10-26 浙江工企信息技术股份有限公司 Order full life cycle management method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050197889A1 (en) * 2004-02-11 2005-09-08 Sigma Dynamics, Inc. Method and apparatus for comparison over time of prediction model characteristics
CN105894359A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Order pushing method, device and system
CN105913204A (en) * 2016-03-31 2016-08-31 北京小度信息科技有限公司 Order processing method and order processing device
CN106649774A (en) * 2016-12-27 2017-05-10 北京百度网讯科技有限公司 Artificial intelligence-based object pushing method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004210460A (en) * 2002-12-27 2004-07-29 Honda Motor Co Ltd Delivery management system and delivery management method
CN104408561A (en) * 2014-11-25 2015-03-11 同程网络科技股份有限公司 Job-station based order distributing method
CN106408411A (en) * 2016-08-31 2017-02-15 北京城市网邻信息技术有限公司 Credit assessment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050197889A1 (en) * 2004-02-11 2005-09-08 Sigma Dynamics, Inc. Method and apparatus for comparison over time of prediction model characteristics
CN105894359A (en) * 2016-03-31 2016-08-24 百度在线网络技术(北京)有限公司 Order pushing method, device and system
CN105913204A (en) * 2016-03-31 2016-08-31 北京小度信息科技有限公司 Order processing method and order processing device
CN106649774A (en) * 2016-12-27 2017-05-10 北京百度网讯科技有限公司 Artificial intelligence-based object pushing method and apparatus

Also Published As

Publication number Publication date
CN107845016A (en) 2018-03-27
CN107845016B (en) 2021-01-01

Similar Documents

Publication Publication Date Title
WO2019061903A1 (en) Information output method and device
WO2019095883A1 (en) Information generation method and apparatus
CN109460513B (en) Method and apparatus for generating click rate prediction model
CN107465741B (en) Information pushing method and device
CN109460514B (en) Method and device for pushing information
WO2019061905A1 (en) User behavior prediction method and apparatus, and electronic device
CN109447156B (en) Method and apparatus for generating a model
CN108388563B (en) Information output method and device
CN108335177A (en) Shopping recommendation method, user terminal, server-side, equipment and storage medium
CN106897905B (en) Method and device for pushing information and electronic equipment
CN108520324A (en) Method and apparatus for generating information
CN109976997A (en) Test method and device
CN111340558B (en) Online information processing method, device, equipment and medium based on federal learning
CN108520470A (en) Method and apparatus for generating customer attribute information
CN110929136A (en) Personalized recommendation method and device
CN109190114A (en) Method and apparatus for generating return information
CN108595448B (en) Information pushing method and device
CN107944956A (en) Method and apparatus for generating information
CN109327887B (en) Method and apparatus for generating information
CN110084317A (en) The method and apparatus of image for identification
CN111626767B (en) Resource data issuing method, device and equipment
CN110866625A (en) Promotion index information generation method and device
CN113793081A (en) Storage monitoring method and device, computer readable medium and electronic equipment
CN106600360B (en) Method and device for sorting recommended objects
CN115885285A (en) Systems, methods, and computer program products for analyzing multivariate time series using convolutional Fourier networks

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17927048

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 11.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17927048

Country of ref document: EP

Kind code of ref document: A1