Summary of the invention
Inventors have found that building user's categorised decision model needs the node datas such as developer's manual configuration such as key,
Development efficiency is relatively low.
In consideration of it, a technical problem to be solved for the disclosure is to improve development efficiency.
According to one aspect of the disclosure, a kind of device for realizing information classification is proposed, including:
The access manager of data source is configured to supply each data source and accesses connecing for the device for realizing information classification
Mouthful, and establish the mapping pass of the achievement data in each data source and the node data in the device of the realization information classification
System;
Categorised decision manager is configured as constructing decision based on the achievement data in mapping relations reference data source
Class node in tree, and the cascade connection being arranged between each class node in decision tree, to utilize the decision tree
Realize information classification.
Optionally, the access manager of the data source is configured as when establishing the mapping relations, by the first data
The first achievement data in source is mapped as the first node data in the device of the realization information classification, the first segment points
According to mark be made of the mark and the mark of the first achievement data of the first data source.
Optionally, the categorised decision manager is configured as the achievement data in data source being added to assembly management
Panel, and the achievement data in the data source in assembly management panel is dragged to the drawing board interface for being used to construct decision tree, shape
At a class node in decision tree.
Optionally, the categorised decision manager is configured as that determining positioned at drawing board interface is arranged by way of line
The cascade connection between each class node in plan tree determines the upper fraction of line connection by configuring the attribute of line
Class condition of the class node to junior's class node.
Optionally, the root node of the decision tree cascades the first leaf node, the root node and the first leaf section
Class condition between point is configured as preset flow proportional.
Optionally, the second leaf node of the decision tree be configured as cascade at least two leaf nodes, described second
The cascade each leaf node of leaf node configures different strategies, to reach situation according to target after strategy execution
Determine the suitable strategy of the corresponding classification group of second leaf node.
Optionally, further include:Service managerZ-HU is configured to supply the configuration interface and service management configuration of service management
Calling interface so that the categorised decision manager configures output information point according to the service management of the decision tree and calling
Class.
Optionally, the service management configuration includes the validity period configuration or flow control configuration of classification.
Optionally, further include:Playback manager is configured as recording information to be sorted in each node of the decision tree
Calculating data, and the calculating data pair information assorting process of each node of the decision tree based on record is played back.
According to another aspect of the disclosure, a kind of method for realizing information classification is proposed, including:
Access each data source;
Establish the mapping relations of the node data in achievement data and categorised decision in each data source;
Based on the class node in the achievement data building decision tree in mapping relations reference data source;
Cascade connection between each class node in decision tree is set, to realize information point using the decision tree
Class.
Optionally, establishing the mapping relations includes:The first achievement data in first data source is mapped as the reality
First node data in the method for existing information classification, the marks of the first node data is by the mark of the first data source and the
The mark of one achievement data forms.
Optionally, the class node in building decision tree includes:Achievement data in data source is added to assembly management
Panel, and the achievement data in the data source in assembly management panel is dragged to the drawing board interface for being used to construct decision tree, shape
At a class node in decision tree.
Optionally, the cascade connection between each class node in setting decision tree includes:It is set by way of line
Setting in the cascade connection between each class node in the decision tree at drawing board interface, determined by configuring the attribute of line
Class condition of the higher level's class node of line connection to junior's class node.
Optionally, the root node of the decision tree cascades the first leaf node, the root node and the first leaf section
Class condition between point is configured as preset flow proportional.
Optionally, the second leaf node of the decision tree be configured as cascade at least two leaf nodes, described second
The cascade each leaf node of leaf node configures different strategies, to reach situation according to target after strategy execution
Determine the suitable strategy of the corresponding classification group of second leaf node.
Optionally, realize that information classification includes using the decision tree:According to the service management of the decision tree and calling
Configure output information classification, wherein service management configuration is configured by providing the configuration interface of service management, and passes through clothes
The calling interface of business management configuration is called.
Optionally, the service management configuration includes the validity period configuration or flow control configuration of classification.
Optionally, this method further includes:Information to be sorted is recorded in the calculating data of each node of the decision tree;Base
It is played back in the calculating data pair information assorting process of each node of the decision tree of record.
According to another aspect of the disclosure, a kind of device for realizing information classification is proposed, including:
Memory;And
It is coupled to the processor of the memory, the processor is configured to the finger based on storage in the memory
It enables, the method for executing any one aforementioned realization information classification.
According to another aspect of the disclosure, proposes a kind of computer readable storage medium, be stored with computer program, it should
The method of any one aforementioned realization information classification is realized when program is executed by processor.
The disclosure constructs decision tree using the achievement data in the data source of access, and the exploitation effect of decision tree can be improved
Rate.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Site preparation description.
Descriptions such as " first " " second " in the disclosure are used to distinguish different objects, are not used to indicate size or timing
Etc. meanings.
Fig. 1 is the schematic diagram for some embodiments of device 100 that the disclosure realizes information classification.
As shown in Figure 1, the device 100 (abbreviation device 100) that the realization information of the embodiment is classified includes:Data source connects
Enter manager 110 and categorised decision manager 120.Optionally, the device 100 of the embodiment further can also include:Service
Manager 130 or playback manager 140.Each manager is described separately below.
The access manager 110 of data source is configured to supply the device 100 that each data source access realizes that information is classified
Interface, so that each data source can be related to face with access device 100 by the interface with Quick Extended categorised decision, with
And establish the mapping relations of the achievement data in each data source and the node data in the device 100 of realization information classification.
Wherein, a kind of exemplary method for establishing mapping relations is:By appointing in any data source (being set as the first data source)
One achievement data (being set as the first achievement data) be mapped as realize information classification device 100 in first node data, first
The mark of node data is made of the mark of the first data source and the mark of the first achievement data.For example, first node data
It is identified as
A.B, wherein A indicates the mark of the first data source, and B indicates the mark of the first achievement data.Further, since node
The mark of data is made of the mark of data source and the mark of achievement data, therefore, the identical index number based on different data sources
According to different node datas can be constructed.
Fig. 2 shows disclosure data source access device 100 and the schematic diagrames of mapping data.As shown in Fig. 2, data source
1 " label data source " and data source 2 " real time data source " pass through 110 access device 100 of access manager.By taking data source 1 as an example,
" label data source " includes indexs such as " gender " " age " " whether user has monthly payment plan behavior " " can pay by instalments the amount of money ".Number
After 1 access device 100 of source, the mapping for establishing each achievement data in data source 1 and the node data in device 100 is closed
System, then the enabled node in device 100 includes that " gender " " age " " whether user has monthly payment plan behavior " " can pay by instalments gold
Volume " etc..
Categorised decision manager 120 is configured as based on the achievement data structure in mapping relations reference data above-mentioned source
The cascade connection building the class node in decision tree, and being arranged between each class node in decision tree, to utilize decision
Tree realizes information classification.
Wherein, a kind of exemplary method of the class node in building decision tree is:By the achievement data addition in data source
To assembly management panel, and the achievement data in the data source in assembly management panel is dragged to the picture for being used to construct decision tree
Board interface forms a class node in decision tree.For example, being used in GOJS (the graphical plug-in unit of JavaScript)
Palette realizes assembly management panel, manages each achievement data in data source, realizes drawing board interface using Diagram.
Fig. 3 shows the schematic diagram of the class node in disclosure building decision tree, for example, by " label data source "
" age " index, which is moved back, is pulled to drawing board interface, forms " age " class node in decision tree.
In addition, utilizing the data of the class node in the achievement data constraint decision tree in data source.For example, if certain is counted
According to " gender " achievement data in source only have male and female, then the optional information of " gender " class node in decision tree only have male and
Female.This has certain benefit for the node data of building safety.
Wherein, a kind of exemplary method of the cascade connection between each class node in setting decision tree is:Pass through company
The cascade connection between each class node in the decision tree at drawing board interface is arranged in the mode of line, by configuring line
Attribute come determine the line connection higher level's class node to junior's class node class condition.
Fig. 4 shows the schematic diagram of the cascade connection between each class node in disclosure setting decision tree, for example,
The line of one of branch of " age " node is configured with less than 50, indicates branch of the age less than 50.
The embodiment of the present disclosure constructs decision tree using the achievement data in the data source of access, and opening for decision tree can be improved
Send out efficiency.Also, visual Constructing Method for Decision, it is relatively more intuitive for developer, it is not easy to malfunction.
In some embodiments, the root node of decision tree can cascade a leaf node (being set as the first leaf node),
Class condition between root node and the first leaf node is configured as preset flow proportional.
So that the first leaf node can be used as the flow switch of decision tree, the flow for flowing through decision tree is adjusted.For example,
Operation stage is tested, so that most of flow flows to the first leaf node, only small part flow passes through decision tree, decision to be confirmed
After tree performance is stablized, by reconfiguring flow proportional, so that most of flow or whole flows pass through decision tree.
In some embodiments, some leaf node (being set as the second leaf node) of decision tree is configured as cascade at least
Two leaf nodes, the cascade each leaf node of the second leaf node configures different strategies, after according to strategy execution
The situation of reaching of target determines the suitable strategy of the corresponding classification group of the second leaf node.To realize a classification group
The control effect in internal portion.
For example, a certain electric business platform, which is wondered, gives the user group for the user group that the second leaf node represents
Which kind of preferential strategy can more promote the buying behavior of user, then the electric business platform can cascade multiple leaves in the second leaf node
Node, each leaf node therein configure a preferential strategy, then count in each leaf node due to preferential strategy
User's ratio of buying behavior has occurred in excitation, and the high leaf node of user's ratio shows the preferential strategy of leaf node configuration
The buying behavior of user can more be promoted.
In addition, the decision tree can be saved as " rough draft " after building one decision tree of completion.The decision of rough draft state
Tree can modify." rough draft " can be examined using manual or automatic mode.The confirmed decision tree for meeting desired effects, can
To be distributed to user's use.
Service managerZ-HU 130 is configured to supply the configuration interface of service management and services the calling interface of management configuration,
Classify so that categorised decision manager 120 configures output information according to the service management of decision tree and calling.Service management configuration
Validity period configuration or flow control configuration for example including classification.
In some embodiments, validity period can for example be configured according to the type of decision tree, the decision of same type
Identical validity period can be set in tree.
In some embodiments, the flow proportional between root node and the first leaf node can for example pass through service management
The configuration feature that device 130 provides is configured.
In addition, service managerZ-HU 130 and categorised decision manager 120 can be located at the different levels of application program, service
The service management configuration of manager 130 can provide service pipe for each decision tree of 120 place level of categorised decision manager
Reason.
For example, with reference to the correspondence diagram of decision tree shown in fig. 5 and service management configuration, different decision trees can
To use identical service management to configure, alternatively, different service management configurations can be used in identical decision tree, to reduce
Development amount.Also, the update or deletion of decision tree have no effect on service management configuration, so that developer is repeatedly modifying
Modification service management configuration is not needed when decision tree, to reduce development amount, reduces the difficulty of software development.
After decision tree is put up, it can be allowed to come into force in decision engine by way of push.Specifically, decision
After tree is parsed and is synchronized to caching, decision engine obtains decision tree data from caching, and is loaded into memory.The decision
The loading procedure of tree can be automatically performed.
Then, decision tree can be automatically parsed, and parse each node and connecting line information of decision tree, can also find root
Data source and index that node and these nodes use etc..
Then, using unified Container Management decision tree information, information initializing, refreshing, unloading etc. is facilitated to operate.
Then, according to the mark of the decision tree of service layer transmitting, corresponding decision tree is obtained from container.
Then, the mark of the index of the mark for the data source held according to decision tree and each data source, is dynamically obtained
Institute's data in need are taken, and are assembled into data mode corresponding with the index mark in decision tree.
Finally, realizing information classification in the calculating data of each node of decision tree according to information to be sorted.
Playback manager 140 is configured as recording information to be sorted in the calculating data of each node of decision tree, and base
It is played back in the calculating data pair information assorting process of each node of the decision tree of record.
Playback result can be showed with animation effect.To be intuitive to see that information to be sorted is divided in decision tree
The classification of stream and path.For example, with reference to Fig. 6, certain user is carrying out the classification of gender node, and is classified into men's family
Classification.
Fig. 7 is the flow diagram for some embodiments of method that the realization information of the disclosure is classified.
As shown in fig. 7, the method 700 of the embodiment includes:Step 710~740 can also include optionally step
750。
In step 710, each data source is accessed.
For example, the interface for the data source access that each data source is provided by access manager 110 is come access device 100.
In step 720, the mapping relations of the node data in achievement data and categorised decision in each data source are established.
In some embodiments, establishing mapping relations includes:The first achievement data in first data source is mapped as reality
First node data in the method for existing information classification, the mark of first node data are referred to by the mark of the first data source and first
Mark the mark composition of data.
In step 730, based on the class node in the achievement data building decision tree in mapping relations reference data source.
In some embodiments, the class node in building decision tree includes:Achievement data in data source is added to
Assembly management panel, and the achievement data in the data source in assembly management panel is dragged to the drawing board for being used to construct decision tree
Interface forms a class node in decision tree.
In some embodiments, the root node of decision tree can also cascade the first leaf node, root node and the first leaf
Class condition between node is configured as preset flow proportional.
In step 740, the cascade connection between each class node in decision tree is set, to realize using decision tree
Information classification.
In some embodiments, the cascade connection between each class node in setting decision tree includes:Pass through line
Mode the cascade connection between each class node in the decision tree at drawing board interface is set, by the category for configuring line
Property come determine the line connection higher level's class node to junior's class node class condition.
In some embodiments, the second leaf node of decision tree be configured as cascade at least two leaf nodes, second
The cascade each leaf node of leaf node configures different strategies, to reach situation according to target after strategy execution
Determine the suitable strategy of the corresponding classification group of the second leaf node.
In some embodiments, realize that information classification includes using decision tree:According to the service management of decision tree and calling
Configure output information classification, wherein service management configuration is configured by providing the configuration interface of service management, and passes through clothes
The calling interface of business management configuration is called.Validity period configuration or flow control of the service management configuration for example including classification are matched
It sets.
In step 750, information to be sorted is recorded in the calculating data of each node of decision tree, the decision tree based on record
The calculating data pair information assorting process of each node played back.
Above-described embodiment constructs decision tree using the achievement data in the data source of access, opening for decision tree can be improved
Send out efficiency.
Fig. 8 is the structural schematic diagram of some embodiments for the device that the disclosure realizes information classification.
As shown in figure 8, the device 800 of the embodiment includes:Memory 810 and the processing for being coupled to the memory 810
Device 820, processor 820 are configured as executing in aforementioned any some embodiments based on the instruction being stored in memory 810
The method for realizing information classification.
Wherein, memory 810 is such as may include system storage, fixed non-volatile memory medium.System storage
Device is for example stored with operating system, application program, Boot loader (Boot Loader) and other programs etc..
Device 800 can also include input/output interface 830, network interface 840, memory interface 850 etc..These interfaces
It can for example be connected by bus 860 between 830,840,850 and memory 810 and processor 820.Wherein, input and output
The input-output equipment such as interface 830 is display, mouse, keyboard, touch screen provide connecting interface.Network interface 840 is various
Networked devices provide connecting interface.The external storages such as memory interface 850 is SD card, USB flash disk provide connecting interface.
The disclosure also proposes a kind of computer readable storage medium, is stored with computer program, which is held by processor
The method of the realization information classification in aforementioned any some embodiments is realized when row.
Those skilled in the art should be understood that embodiment of the disclosure can provide as method, system or computer journey
Sequence product.Therefore, complete hardware embodiment, complete software embodiment or combining software and hardware aspects can be used in the disclosure
The form of embodiment.Moreover, it wherein includes the calculating of computer usable program code that the disclosure, which can be used in one or more,
Machine can use the meter implemented in non-transient storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of calculation machine program product.
The disclosure is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present disclosure
Figure and/or block diagram describe.It is interpreted as to be realized by computer program instructions each in flowchart and/or the block diagram
The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys
Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with
A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for
Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram
It sets.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all spirit in the disclosure and
Within principle, any modification, equivalent replacement, improvement and so on be should be included within the protection scope of the disclosure.