Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step should fall within the scope of protection of the present specification.
Please refer to fig. 1. The embodiment of the specification provides a cell type determining method. The cell type determining method takes electronic equipment as an execution subject. The electronic device may specifically include a mobile terminal, a computer terminal, a server terminal, or a similar computing device. The cell type determination method may include the following steps.
Step S10: a plurality of transaction data is acquired.
In this embodiment, the transaction data may correspond to a transaction time, and the transaction time may be a generation time of the transaction data. The transaction data may include article identification information and a shipping address. The article identification information may be used to identify the article, and may be, for example, a name of the article, an article number of the article, a code of the article, or any other form of information capable of locating the article. The goods corresponding to the goods identification information can be attributed to at least one category. The category can be furniture, household appliances, home decoration building materials, basic building materials, home decoration ornaments and the like. The delivery address may be, for example, XXX unit XXX building in XXX district XXX town XXX district XXX (prefecture) XXX prefecture, XXX province, etc. The shipping address may correspond to a first listing time. The first receiving time may be a time when a shipping address is received, for example, a time when the shipping address is recorded in a database. The shipping address may be included in the electronic device or may be included in an electronic device other than the electronic device. The shipping address and the article identification information may have a correspondence in the transaction data. Specifically, the receiving address may receive the goods corresponding to the goods identification information.
In one implementation of this embodiment, the transaction data may further include user identification information. The user identification information may be used to identify the user, and may be, for example, an account of the user, a mobile phone number of the user, an identification number of the user, a name of the user, or any other form of information capable of locating the user. The user identification information, the shipping address, and the goods identification information may have a correspondence in the transaction data. Specifically, the user corresponding to the user identification information may receive the goods corresponding to the goods identification information at the shipping address.
In this embodiment, the transaction times corresponding to the transaction data may be respectively located within a specified time interval. The size of the designated time interval can be flexibly set according to actual needs, and can be 12 months, 6 months, or 5 months, for example. The transaction data may be under all categories in the category system, or under a plurality of designated categories in the category system. The specified category can be furniture, household appliances, home decoration building materials, basic building materials, home decoration ornaments and the like.
The electronic device may have a historical transaction record; the plurality of transaction data may be obtained from the historical transaction record. For example, the electronic device may be a server of an e-commerce platform such as Taobao, Jingdong, Amazon, Dang, eBay, etc. The server may obtain the plurality of transaction data from a historical transaction record. Alternatively, other electronic devices than the electronic device may have historical transaction records; the plurality of transaction data may be obtained from the historical transaction record; the plurality of transaction data may be transmitted to the electronic device. The electronic device may receive the plurality of transaction data. For example, the electronic device may be a traffic server for determining a cell type. The other electronic device may be a server of an e-commerce platform such as Taobao, Jingdong, Amazon, Dangdong, eBay, etc. The server of the electronic commerce platform can acquire the transaction data from a historical transaction record; the plurality of transaction data may be transmitted to the business server. The business server may receive the plurality of transaction data.
Step S12: and acquiring at least one cell identification information according to the receiving address in the plurality of transaction data.
In this embodiment, the cell identification information may be used to identify a cell, and may be, for example, a promotion name of the cell, a record name of the cell, a geographical area name of the cell, a code of the cell, or any other form of information capable of locating the cell. The cell may be understood as a residential area with a relatively independent living environment.
In this embodiment, the shipping address may include a plurality of address fields. The address field may be a provincial address field, a city (county) address field, a town (street) address field, a district address field, a building address field, a portal address field, or the like. For example, the shipping address a1 may be SEG1_ XX1 province SEG2_ XX1 city (county) SEG3_ XX1 town SEG4_ XX1 cell SEG5_ XX 1. Then, the provincial address segment of the shipping address a1 may be SEG1_ XX 1; the city (county) address segment may be SEG2_ XX 1; the town address segment may be SEG3_ XX 1; the cell address field may be SEG4_ XX 1; the building address segment may be SEG5_ XX 1. Therefore, the electronic equipment can acquire at least one cell identification information according to the cell address field in the delivery address in the transaction data. The cell address fields in different shipping addresses may be the same or different and thus the cell identification information obtained from the cell address fields in different shipping addresses may be the same or different. Further, the cell identification information may have a correspondence with the shipping address in view of the cell identification information being obtained from the cell address field within the shipping address. Each cell identification information may specifically correspond to at least one shipping address.
The electronic device may extract a cell address segment from a shipping address; at least one cell identification information may be obtained according to the extracted cell address segment. Specifically, the electronic device may directly use the extracted cell address segment as cell identification information. Alternatively, for convenience of description, the cell address field may be taken as the first address field; an address field other than the cell address field and representing a geographical area larger than the cell address field may be used as the second address field. The second address field may be a province address field, a city (county) address field, a town (street) address field, or the like. The first address field and the second address field within the same shipping address may have a correspondence. It is possible to include cells with the same cell identification information in different geographical areas. That is, different second address segments may correspond to the same first address segment. For example, the shipping address a1 may be SEG1_ XX1 province SEG2_ XX1 city (county) SEG3_ XX1 town SEG4_ XX1 cell SEG5_ XX 1. The shipping address a2 may be SEG1_ XX2 province SEG2_ XX2 city (county) SEG3_ XX2 town SEG4_ XX1 cell SEG5_ XX 2. The shipping address a1 and the shipping address a2 have the same first address segment SEG4_ XX 1. The first address field SEG4_ XX1 corresponds to different second address fields at the receiving address A1 and the receiving address A2, respectively. In order to distinguish the first address fields corresponding to different second address fields, the electronic device may further perform specific processing on the extracted cell address field, and the processed cell address field may be used as cell identification information. The specific processing mode may be, for example: and splicing the cell address field and the second address field from the same receiving address. Specifically, for example, the shipping address a1 may be SEG1_ XX1 province SEG2_ XX1 city (county) SEG3_ XX1 town SEG4_ XX1 cell SEG5_ XX 1. Then, cell address segment SEG4_ XX1, provincial address segment SEG1_ XX1, city (county) address segment SEG2_ XX1 and town address segment SEG3_ XX1 from shipping address a1 are spliced to obtain cell identification information SEG1_ XX1-SEG2_ XX1-SEG3_ XX1-SEG4_ XX 1. Of course, the specific processing manner is only an example, and actually, the specific processing manner may also include any other manner capable of distinguishing the first address field corresponding to the different second address fields.
Step S14: and determining the cell type corresponding to each cell identification information according to the category of the commodity attribution corresponding to the commodity identification information.
In this embodiment, the cell type may be used to distinguish between a new cell and an old cell. The cell type may specifically include a first type and a second type. The first type may be used to indicate that a cell is a new cell. The new cell may be a cell with a later setup time. The home decoration requirements of new cells are usually large. The home decoration can be understood as decoration or decoration of residential houses, and can include contents such as water and electricity transformation, lamp decoration installation, furniture installation, household appliance installation and the like. The second type may be used to indicate that the cell is an old cell. The old cell may be a cell with an earlier setup time. The home decoration requirements of old cells are usually small.
In one implementation of this embodiment, as described above, the cell identification information may have a corresponding relationship with the shipping address. The shipping address may have a correspondence with the article identification information. Thus, the cell identification information may have a correspondence with the commodity identification information. The electronic device may count the number of transaction data of each category in the category set of each cell identification information as a first number; determining a score for each cell identification information based on the first number; the cell type corresponding to each cell identification information can be determined according to the score. The category set may include a category to which the commodity corresponding to the commodity identification information belongs in the transaction data.
Specifically, the electronic device may calculate a score of each cell identification information according to a first number of the cell identification information under each category in the category set. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; n represents the number of categories in the set of categories; lambda [ alpha ]
iRepresenting the weight value corresponding to the category i; m is
iIndicating a first number of the cell identification information under category i. Where lambda is
iThe method can be an empirical value and can also be obtained by adopting a machine learning mode. Of course, the above formula is only an example, and in fact, the electronic device may also calculate the score of the cell identification information in other manners.
Specifically, the electronic device may compare the score of each cell identification information with a preset threshold; the cell type corresponding to the cell identification information can be determined according to the comparison result. The preset threshold may be an empirical value, or may be obtained by machine learning. The size of the preset threshold value can be flexibly set according to actual needs. For example, when the score of the cell identification information is greater than or equal to the preset threshold, the electronic device may determine that the cell type corresponding to the cell identification information is the first type; when the score of the cell identification information is smaller than the preset threshold, the electronic device may determine that the cell type corresponding to the cell identification information is the second type.
Further, in this embodiment, the electronic device may further count the number of the transaction data corresponding to each cell identification information as a second number; determining a transaction frequency corresponding to each cell identification information according to the second quantity; the score corresponding to each cell identification information may be determined based on the transaction frequency and the first quantity. Specifically, the electronic device may select a maximum transaction time and a minimum transaction time from the transaction times corresponding to the plurality of transaction data; for each cell identification information, the transaction frequency corresponding to the cell identification information can be calculated according to the maximum transaction time, the minimum transaction time and the second quantity. For example, the maximum transaction time may be 2018, month 01; the minimum transaction time may be 1 month and 1 day of 2017; the second number corresponding to a certain cell identification information may be 3650. Then the transaction frequency corresponding to the cell identification information may be 10 times/day. Specifically, the electronic device may calculate a score of each cell identification information according to a first quantity of each cell identification information in each category in the category set and a transaction frequency corresponding to the cell identification information. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; n represents the number of categories in the category set; lambda [ alpha ]
iRepresenting the weight corresponding to category iA value; m is
iA first number representing the cell identity information under category i; freq represents the transaction frequency corresponding to the cell identification information. Of course, the above formula is only an example, and in fact, the electronic device may also calculate the score of the cell identification information in other manners.
Further, in this embodiment, for each piece of cell identification information, the electronic device may select a minimum first receiving and recording time from first receiving and recording times of at least one receiving address corresponding to the cell identification information, as a second receiving and recording time corresponding to the cell identification information; the score of the cell identification information may be determined based on the second inclusion time and the first number. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; n represents the number of categories in the set of categories; lambda [ alpha ]
iRepresenting the weight value corresponding to the category i; m is
iA first number representing the cell identity information under category i; t is
0Represents the current time; t represents a second recording time corresponding to the cell identification information. Of course, the above formula is only an example, and in fact, the electronic device may also calculate the score of the cell identification information in other manners.
Further, in the present embodiment, it is considered that when all cells near a certain cell are new cells, the cell is often also a new cell; when all cells in the vicinity of a certain cell are old cells, the cell is often also an old cell. After determining the score of each piece of cell identification information, for each piece of cell identification information, the electronic device may further correct the score of the corresponding piece of cell identification information according to the score of each piece of cell identification information in the set of cell identification information. And the distance between the cell address of each cell identification information in the cell identification information set and the cell address of the corresponding cell identification information is within a preset range. The cell address of the cell identification information may be understood as an address of a cell corresponding to the cell identification information, and may be specifically obtained according to at least one receiving address corresponding to the cell identification information. The preset range can be an empirical value and can also be obtained by adopting a machine learning mode. The size of the preset range can be flexibly set according to actual needs. The correction may be, for example: taking a representative value of each cell identification information score in the cell identification information set; performing mathematical operation on the representative value and the score of the cell identification information; and taking the result of the mathematical operation as the score corrected by the cell identification information. The representative value may be a mean, median, mode, or the like. Including, but not limited to, addition operations, subtraction operations, multiplication operations, division operations, and the like. Of course, the above modification is merely an example, and in fact, the electronic device may also adopt other ways to modify the score.
In another implementation of this embodiment, the transaction data may further include user identification information, as previously described. The cell identification information may have a correspondence with the shipping address. The shipping address may have a correspondence relationship with the commodity identification information and the user identification information, respectively. Thus, the cell identification information can have corresponding relations with the user identification information and the commodity identification information respectively. Thus, the electronic device can determine the probability value corresponding to each user identification information according to the category of the commodity attribution corresponding to the commodity identification information; determining a score corresponding to each cell identification information according to the probability value of at least one user identification information corresponding to each cell identification information; the cell type corresponding to each cell identification information can be determined according to the score. The probability value can be used for representing the probability of the home decoration of the user corresponding to the user identification information.
Specifically, the electronic device may count the number of transaction data of each user identification information in each category in the category set, as a third number; a probability value corresponding to each user identification information may be determined based on the third quantity. For example, the electronic device may use a formula
To calculate the userAnd identifying the probability value corresponding to the information. Wherein, F represents the probability value corresponding to the user identification information; n represents the number of categories in the set of categories; lambda [ alpha ]
iRepresenting the weight value corresponding to the category i; u. of
iRepresenting the transaction data amount of the user identification information in the category i; sum represents the sum of the transaction data amounts of the user identification information under each category in the category set.
Specifically, for each cell identification information, the electronic device may calculate a score of the cell identification information according to a probability value of at least one user identification information corresponding to the cell identification information. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; y represents the number of user identification information corresponding to the cell identification information; f
iAnd indicating the probability value corresponding to the user identification information i.
Specifically, the electronic device determines the cell type according to the score, which may be seen in the foregoing embodiments.
Further, in this embodiment, the electronic device may further count the number of the transaction data corresponding to each cell identification information as a second number; determining a transaction frequency corresponding to each cell identification information according to the second quantity; the score corresponding to each cell identification information can be determined according to the transaction frequency and the probability value. Specifically, the electronic device may calculate a score of each cell identification information according to a transaction frequency corresponding to the cell identification information and a probability value of the corresponding at least one user identification information. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; y represents the number of user identification information corresponding to the cell identification information; f
iRepresenting the probability value corresponding to the user identification information i; freq meterAnd displaying the corresponding transaction frequency of the cell identification information. Of course, the above formula is only an example, and in fact, the electronic device may also calculate the score of the cell identification information in other manners.
Further, in this embodiment, for each piece of cell identification information, the electronic device may select a minimum first receiving and recording time from first receiving and recording times of at least one receiving address corresponding to the cell identification information, as a second receiving and recording time corresponding to the cell identification information; the score of the cell identification information may be determined based on the second inclusion time and the probability value. For example, the electronic device may use a formula
To calculate a score value for the cell identification information. Wherein, K represents the score of the cell identification information; y represents the number of user identification information corresponding to the cell identification information; f
iRepresenting the probability value corresponding to the user identification information i; t is
0Represents the current time; t represents a second recording time corresponding to the cell identification information. Of course, the above formula is only an example, and in fact, the electronic device may also calculate the score of the cell identification information in other manners.
Further, in the present embodiment, it is considered that when all cells near a certain cell are new cells, the cell is often also a new cell; when all cells in the vicinity of a certain cell are old cells, the cell is often also an old cell. After determining the score of each piece of cell identification information, for each piece of cell identification information, the electronic device may further correct the score of the corresponding piece of cell identification information according to the score of each piece of cell identification information in the set of cell identification information. And the distance between the cell address of each cell identification information in the cell identification information set and the cell address of the corresponding cell identification information is within a preset range. The modification can be specifically referred to the aforementioned embodiment.
In this embodiment, the electronic device may obtain a plurality of transaction data; at least one cell identification information can be obtained according to the receiving address in the plurality of transaction data; the cell type corresponding to each cell identification information can be determined according to the category to which the commodity corresponding to the commodity identification information belongs. The electronic device may then use the transaction data to determine the cell type.
Please refer to fig. 2. The embodiment of the specification provides a cell type determining device. The cell type determining apparatus may include the following elements.
A transaction data acquisition unit 20 for acquiring a plurality of transaction data; each transaction data comprises commodity identification information and a receiving address which correspond to each other;
a cell identification information obtaining unit 22, configured to obtain at least one cell identification information according to a receiving address in the plurality of transaction data;
the type determining unit 24 is configured to determine, according to the category to which the commodity corresponding to the commodity identification information belongs, a cell type corresponding to each cell identification information; the cell type is used to distinguish between a new cell and an old cell.
Please refer to fig. 3. The embodiment of the specification provides an electronic device. The electronic device may include a memory and a processor.
In this embodiment, the memory may be implemented in any suitable manner. For example, the memory may be a read-only memory, a mechanical hard disk, a solid state disk, a U disk, or the like. The memory may be used to store computer instructions.
In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of, for example, a microprocessor or processor and a computer-readable medium that stores computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, an embedded microcontroller, and so forth. The processor may execute the computer instructions to perform the steps of:
acquiring a plurality of transaction data; each transaction data comprises commodity identification information and a receiving address which correspond to each other;
acquiring at least one cell identification information according to the receiving address in the plurality of transaction data;
determining the cell type corresponding to each cell identification information according to the category of the commodity attribution corresponding to the commodity identification information; the cell type is used to distinguish between a new cell and an old cell.
It is to be understood that the embodiments described herein are illustrated in a progressive manner, and that like or similar elements may be referred to one another, with each embodiment being described with emphasis instead of others. Especially, for the embodiment of the cell type determining apparatus and the embodiment of the electronic device, since they are basically similar to the embodiment of the cell type determining method, the description is relatively simple, and for relevant points, refer to the partial description of the embodiment of the method.
In addition, after reading the specification, one skilled in the art can conceive of any combination of some or all of the embodiments listed in the specification without any inventive step, and such combination is also within the scope of the disclosure and protection of the specification.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate a dedicated integrated circuit chip 2. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardbyscript Description Language (vhr Description Language), and the like, which are currently used by Hardware compiler-software (Hardware Description Language-software). It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present specification can be implemented by software plus a necessary general hardware platform. Based on such understanding, the technical solutions of the present specification may be essentially or partially implemented in the form of software products, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and include instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments of the present specification.
The description is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
This description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the specification has been described with examples, those skilled in the art will appreciate that there are numerous variations and permutations of the specification that do not depart from the spirit of the specification, and it is intended that the appended claims include such variations and modifications that do not depart from the spirit of the specification.