CN114943407A - Area planning method, device, equipment, readable storage medium and program product - Google Patents
Area planning method, device, equipment, readable storage medium and program product Download PDFInfo
- Publication number
- CN114943407A CN114943407A CN202210351294.7A CN202210351294A CN114943407A CN 114943407 A CN114943407 A CN 114943407A CN 202210351294 A CN202210351294 A CN 202210351294A CN 114943407 A CN114943407 A CN 114943407A
- Authority
- CN
- China
- Prior art keywords
- candidate
- entity
- center
- sample
- target type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0637—Strategic management or analysis, e.g. setting a goal or target of an organisation; Planning actions based on goals; Analysis or evaluation of effectiveness of goals
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION 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
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/26—Government or public services
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Tourism & Hospitality (AREA)
- Educational Administration (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- Entrepreneurship & Innovation (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Game Theory and Decision Science (AREA)
- Operations Research (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Quality & Reliability (AREA)
- Remote Sensing (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
本申请公开了一种区域规划方法、装置、设备、可读存储介质及程序产品,涉及机器学习领域。该方法包括:获取地理位置集,地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标;基于地理位置坐标,确定至少两个目标类型实体对应的环境数据集;结合实体业务分布和实体位置关系对至少两个目标类型实体进行位置分析,得到候选区域范围内的候选中心;基于候选中心对候选区域范围进行区域划分,得到至少两个目标类型实体在候选区域范围内的区域规划结果。即,通过结合实体业务分布对目标类型实体进行位置分析从而确定区域规划结果的方式,可以较好的提高区域规划的准确度及规划效率。
The present application discloses a regional planning method, apparatus, device, readable storage medium and program product, and relates to the field of machine learning. The method includes: acquiring a geographic location set, where the geographic location set includes geographic location coordinates corresponding to at least two target type entities within a candidate area; determining an environmental data set corresponding to the at least two target type entities based on the geographic location coordinates; combining the entities Business distribution and entity location relationship Perform location analysis on at least two target-type entities to obtain candidate centers within the candidate area; divide the candidate area based on the candidate centers to obtain at least two target-type entities within the candidate area. Regional planning results. That is, by analyzing the location of the target type entity in combination with the entity business distribution to determine the regional planning result, the accuracy and planning efficiency of the regional planning can be better improved.
Description
技术领域technical field
本申请实施例涉及机器学习领域,特别涉及一种区域规划方法、装置、设备、可读存储介质及程序产品。The embodiments of the present application relate to the field of machine learning, and in particular, to a regional planning method, apparatus, device, readable storage medium, and program product.
背景技术Background technique
区域规划通常是指将某一个区域划分成不重叠的几个子区域的过程,如:将城市区域分割成不重叠的几个子区域。其中,在划分时通常是通过在区域中确定多个中心点,从而根据每个中心点确定该点对应的子区域范围。Regional planning usually refers to the process of dividing a certain area into several non-overlapping sub-areas, such as dividing an urban area into several non-overlapping sub-areas. Wherein, during the division, a plurality of center points are usually determined in the area, so that the sub-area range corresponding to the point is determined according to each center point.
在相关技术中,在确定当前一个区域内包含的n个位置点(n≥2)后,通过具有噪声的基于密度的聚类方法(Density-Based Spatial Clustering of Applications withNoise,DBSCAN),将一个城市内包含的n个位置点根据其对应的地理位置分布关系进行位置点的聚类,得到最终的聚类结果,根据聚类结果确定子区域规划结果。In the related art, after determining the n location points (n≥2) contained in a current area, a city is divided into a density-based clustering method with noise (Density-Based Spatial Clustering of Applications with Noise, DBSCAN). The n location points included in the cluster are clustered according to their corresponding geographical location distribution relationships to obtain the final clustering result, and the sub-region planning result is determined according to the clustering result.
然而在上述方法中,由于仅依靠位置点的地理位置分布关系进行聚类的方法,无法满足不同的业务需求,导致区域规划结果准确率较低。However, in the above method, because the clustering method only relies on the geographical location distribution relationship of the location points, it cannot meet different business requirements, resulting in a low accuracy rate of regional planning results.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种区域规划方法、装置、设备、可读存储介质及程序产品,能够提高区域规划的准确率。所述技术方案如下:The embodiments of the present application provide a regional planning method, apparatus, device, readable storage medium, and program product, which can improve the accuracy of regional planning. The technical solution is as follows:
一方面,提供了一种区域规划方法,所述方法包括:In one aspect, a regional planning method is provided, the method comprising:
获取地理位置集,所述地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标;Obtain a geographic location set, the geographic location set includes geographic location coordinates corresponding to at least two target type entities within the scope of the candidate area;
基于所述地理位置坐标,确定所述至少两个目标类型实体对应的环境数据集,所述环境数据集用于指示所述至少两个目标类型实体对应的实体位置关系和实体业务分布,所述实体业务分布用于指示所述目标类型实体的业务在时空上的分布情况;Based on the geographic location coordinates, determine the environmental data set corresponding to the at least two target type entities, where the environmental data set is used to indicate the entity location relationship and the entity business distribution corresponding to the at least two target type entities, and the The entity business distribution is used to indicate the spatial and temporal distribution of the business of the target type entity;
结合所述实体业务分布和所述实体位置关系对所述至少两个目标类型实体进行位置分析,得到所述候选区域范围内的候选中心;Performing a location analysis on the at least two target type entities in combination with the entity business distribution and the entity location relationship to obtain a candidate center within the candidate area;
基于所述候选中心对所述候选区域范围进行区域划分,得到所述至少两个目标类型实体在候选区域范围内的区域规划结果。Region division is performed on the candidate region range based on the candidate center to obtain a region planning result of the at least two target type entities within the candidate region range.
另一方面,提供了一种区域规划装置,所述装置包括:In another aspect, an apparatus for regional planning is provided, the apparatus comprising:
获取模块,用于获取地理位置集,所述地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标;an acquisition module, configured to acquire a geographic location set, the geographic location set includes geographic location coordinates corresponding to at least two target type entities within the scope of the candidate area;
确定模块,用于基于所述地理位置坐标,确定所述至少两个目标类型实体对应的环境数据集,所述环境数据集用于指示所述至少两个目标类型实体对应的实体位置关系和实体业务分布,所述实体业务分布用于指示所述目标类型实体的业务在时空上的分布情况;a determining module, configured to determine, based on the geographic location coordinates, an environmental data set corresponding to the at least two target type entities, where the environmental data set is used to indicate the entity location relationship and entity corresponding to the at least two target type entities Service distribution, where the entity service distribution is used to indicate the spatiotemporal distribution of the service of the target type entity;
分析模块,用于结合所述实体业务分布和所述实体位置关系对所述至少两个目标类型实体进行位置分析,得到所述候选区域范围内的候选中心;an analysis module, configured to perform location analysis on the at least two target type entities in combination with the entity business distribution and the entity location relationship, to obtain a candidate center within the candidate area;
划分模块,用于基于所述候选中心对所述候选区域范围进行区域划分,得到所述至少两个目标类型实体在候选区域范围内的区域规划结果。A division module, configured to perform area division on the candidate area range based on the candidate center, and obtain the area planning result of the at least two target type entities within the candidate area range.
另一方面,提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由所述处理器加载并执行以实现如上述本申请实施例中任一所述区域规划方法。In another aspect, a computer device is provided, the computer device includes a processor and a memory, the memory stores at least one instruction, at least a section of a program, a code set or an instruction set, the at least one instruction, the at least one A piece of program, the code set or the instruction set is loaded and executed by the processor to implement the regional planning method as described in any of the foregoing embodiments of the present application.
另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如上述本申请实施例中任一所述的区域规划方法。In another aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, at least one piece of program, code set or instruction set, the at least one instruction, the at least one piece of program, the code The set or instruction set is loaded and executed by the processor to implement the regional planning method as described in any of the above embodiments of the present application.
另一方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述实施例中任一所述的区域规划方法。In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the regional planning method described in any of the foregoing embodiments.
本申请实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided in the embodiments of the present application include at least:
通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体对应的相关业务信息,能够满足不同业务需求下的区域规划方案,从而提高区域规划的准确度。By analyzing the geographic location coordinates of the target type entities in the geographic location, the entity location relationship and entity business distribution corresponding to each target type entity are determined. The candidate center used to divide the scope of the candidate area, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, it is possible to combine the target type entity in the process of determining the candidate center in the regional planning. The corresponding relevant business information can meet regional planning schemes under different business needs, thereby improving the accuracy of regional planning.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一个示例性实施例提供的区域规划方法示意图;1 is a schematic diagram of a regional planning method provided by an exemplary embodiment of the present application;
图2是本申请一个示例性实施例提供的实施环境示意图;FIG. 2 is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;
图3是本申请一个示例性实施例提供的区域规划的流程图;3 is a flow chart of regional planning provided by an exemplary embodiment of the present application;
图4是本申请另一个示例性实施例提供的区域规划方法的流程图;4 is a flowchart of a regional planning method provided by another exemplary embodiment of the present application;
图5是本申请一个示例性实施例提供的演员网络分析过程示意图;5 is a schematic diagram of an actor network analysis process provided by an exemplary embodiment of the present application;
图6是本申请另一个示例性实施例提供的区域规划结果示意图;6 is a schematic diagram of a regional planning result provided by another exemplary embodiment of the present application;
图7是本申请一个示例性实施例提供的区域规划方法的流程图;7 is a flowchart of a regional planning method provided by an exemplary embodiment of the present application;
图8是本申请一个示例性实施例提供的目标策略模型训练过程示意图;8 is a schematic diagram of a training process of a target strategy model provided by an exemplary embodiment of the present application;
图9是本申请另一个示例性实施例提供的区域规划方法的流程图;9 is a flowchart of a regional planning method provided by another exemplary embodiment of the present application;
图10是本申请一个示例性实施例提供的区域规划装置的结构图;10 is a structural diagram of a regional planning apparatus provided by an exemplary embodiment of the present application;
图11是本申请另一个示例性实施例提供的区域规划装置的结构图;11 is a structural diagram of a regional planning apparatus provided by another exemplary embodiment of the present application;
图12是本申请一个实施例提供的计算机设备的结构框图。FIG. 12 is a structural block diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
首先,针对本申请实施例中涉及的名词进行简单介绍:First, briefly introduce the terms involved in the embodiments of the present application:
马尔可夫决策过程(Markov Decision Process,MDP):是序贯决策(SequentialDecision)的数学模型,其主要通过一组交互对象,即智能体(Agent)和环境(Environment)进行构建,在构建过程中所具有的要素包括状态(State)、动作(Action)、策略(Policy)以及期望值(Reward),在MDP模型中,智能体获取当前的系统状态,按照策略对环境实施相应动作,从而改变环境的状态并得到相应的期望值,最终确定所有期望值的综合作为回报。Markov Decision Process (MDP): It is a mathematical model of sequential decision-making (Sequential Decision), which is mainly constructed through a set of interactive objects, namely Agent and Environment. The elements include State, Action, Policy and Reward. In the MDP model, the agent obtains the current system state and performs corresponding actions on the environment according to the policy, thereby changing the environment. state and get the corresponding expected value, and finally determine the synthesis of all expected values as a return.
演员评论家算法(Actor-Critic,AC):一种合并了以策略为基础的算法和以期望值为基础的算法的强化学习算法,该算法中将以策略为基础的算法作为演员网络,用来基于概率选择相应的行为。将以期望值为基础的算法作为评论家网络,用来评判“演员”对应的行为的得分,然后“演员”又会根据“评论家”的评分调整行为的概率,最终用于训练以策略为基础的算法得到目标模型。Actor-Critic (AC): A reinforcement learning algorithm that combines a policy-based algorithm and an expectation-based algorithm, in which the policy-based algorithm is used as an actor network for The corresponding behavior is selected based on the probability. The algorithm based on the expectation value is used as the critic network to judge the score of the behavior corresponding to the "actor", and then the "actor" will adjust the probability of the behavior according to the score of the "critic", and finally used for training policy-based algorithm to obtain the target model.
机器学习(Machine Learning,ML):是一门多领域交叉学科,涉及概率论、统计学、逼近论、凸分析、算法复杂度理论等多门学科。机器学习是人工智能的核心,是使计算机具有智能的根本途径,其应用遍及人工智能的各个领域。机器学习和深度学习通常包括人工神经网络、置信网络、强化学习、迁移学习、归纳学习、示教学习等技术。Machine Learning (ML): It is a multi-field interdisciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other subjects. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent, and its applications are in all fields of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, teaching learning and other techniques.
示意性的,请参考图1,其示出了本申请一个示例性实施例提供的区域规划方法示意图,如图1所示,确定候选区域范围100,候选区域范围100内包含至少两个目标类型实体(图中以空心圆圈进行表示)对应的地理位置坐标,其中,目标类型实体如:商铺、城市建筑物等,根据地理位置坐标确定各目标类型实体对应的环境数据集110,其中,环境数据集110包含至少两个目标类型实体对应的实体位置关系111和实体业务分布112,结合实体位置关系111和实体业务分布112对目标类型实体进行位置分析,得到候选区域范围100内的候选中心120(图1以黑色实心圆表示),根据候选中心120确定区域中心121,通过区域中心121对候选区域范围进行区域划分,确定候选区域范围100内的区域规划结果130。Illustratively, please refer to FIG. 1 , which shows a schematic diagram of a regional planning method provided by an exemplary embodiment of the present application. As shown in FIG. 1 , a candidate region range 100 is determined, and the candidate region range 100 includes at least two target types. The geographic location coordinates corresponding to the entities (represented by hollow circles in the figure), wherein the target type entities are: shops, urban buildings, etc., and the environmental data set 110 corresponding to each target type entity is determined according to the geographic location coordinates, wherein the environmental data The set 110 includes the entity location relationship 111 and the entity business distribution 112 corresponding to at least two target type entities. The location analysis is performed on the target type entity in combination with the entity location relationship 111 and the entity business distribution 112 to obtain the candidate center 120 ( 1), the
本申请提供的区域规划方法,通过确定目标类型实体对应的实体位置关系和实体业务分布,对其进行位置分析的方式,能够在区域规划确定候选中心的过程中结合目标类型实体除地理位置坐标以外的相关实体业务信息,从而提高区域规划的准确度。The regional planning method provided by the present application, by determining the entity location relationship and entity business distribution corresponding to the target type entity, and performing location analysis on it, can be combined with the target type entity in the process of determining the candidate center in the regional planning. related entity business information, thereby improving the accuracy of regional planning.
结合上述名词简介,对本申请实施例的应用场景进行举例说明:In conjunction with the above-mentioned nomenclature introduction, the application scenarios of the embodiments of the present application are illustrated with examples:
1.应用于配送区域规划场景。在配送区域规划场景下,如:快递运输区域规划、外卖配送区域规划等,以外卖配送区域规划为例,获取一个城市内对应的n个商家对应的地理位置坐标,n为正整数,根据n个商家对应的地理位置坐标确定n个商家之间对应的位置关系以及商家对应的相关业务分布(如:历史订单数据、商家对于订单数量的期望值、该商家的配送难度等,在此不做限定),作为n个商家对应的环境数据集,结合n个商家之间对应的位置关系以及商家对应的相关业务分布对商家进行位置分析,得到候选商家,根据候选商家的地理位置对一个城市内对应的外卖配送区域进行区域划分,最终得到外卖配送区域划分结果;1. Applied to the distribution area planning scenario. In the distribution area planning scenario, such as: express transportation area planning, takeaway distribution area planning, etc., take out food delivery area planning as an example, obtain the geographical coordinates corresponding to n corresponding businesses in a city, n is a positive integer, according to n The geographic location coordinates corresponding to each merchant determine the corresponding location relationship among n merchants and the related business distribution corresponding to the merchants (such as historical order data, the merchant's expectation of the number of orders, the merchant's delivery difficulty, etc.), which are not limited here. ), as the environmental data set corresponding to n merchants, analyze the location of the merchants in combination with the corresponding location relationships among the n merchants and the related business distribution corresponding to the merchants, and obtain candidate merchants. The takeaway distribution area is divided into regions, and the final result of the takeaway distribution area division is obtained;
2.应用于道路规划场景。在对一个城市内的道路进行规划的时候,获取一个城市内包含的n个城市建筑物对应的地理位置坐标,根据n个城市建筑物对应的地理位置坐标确定n个城市建筑物之间对应的位置关系以及城市建筑物对应的业务分布(如:城市建筑物所在点对应的车流量情况、居民数量等),作为n个城市建筑物对应的环境数据集,结合n个城市建筑物对应的位置关系以及城市建筑物对应的业务分布对n个城市建筑物进行位置分析,确定候选城市建筑物,根据候选城市建筑物对一个城市内进行区域划分得到划分结果,根据划分的区域对应的轮廓指定道路规划方案。2. Applied to road planning scenarios. When planning the roads in a city, the geographic location coordinates corresponding to n urban buildings contained in a city are obtained, and the corresponding geographic location coordinates between the n urban buildings are determined according to the geographic location coordinates corresponding to the n urban buildings. The location relationship and the business distribution corresponding to the urban buildings (such as the traffic flow situation corresponding to the location of the urban buildings, the number of residents, etc.), as the environmental data set corresponding to the n urban buildings, combined with the positions corresponding to the n urban buildings The relationship and the business distribution corresponding to the city buildings are used to analyze the location of n city buildings, determine the candidate city buildings, divide the area within a city according to the candidate city buildings to obtain the division result, and specify the road according to the contour corresponding to the divided area. Proposal.
值得注意的是,本申请实施例提供区域规划方法,可以由终端实现,也可以由服务器实现,还可以由终端和服务器协同实现。It is worth noting that the embodiments of the present application provide a regional planning method, which may be implemented by a terminal, may also be implemented by a server, or may be implemented collaboratively by a terminal and a server.
其中,当终端和服务器协同实现本申请实施例提供的方案时,终端和服务器可以通过有线或无线通信方式进行直接或间接连接,本申请实施例对此不加以限定。Wherein, when the terminal and the server cooperate to implement the solution provided by the embodiments of the present application, the terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited in the embodiments of the present application.
示意性的,请参考图2,其示出了本申请一个示例性实施例提供的实施环境示意图,如图2所示,该实施环境中包括终端210、服务器220,终端210和服务器220之间通过通信网络230连接。Illustratively, please refer to FIG. 2 , which shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. As shown in FIG. 2 , the implementation environment includes a terminal 210 , a
其中,终端210中安装有提供区域规划功能的应用程序,当终端210运行该应用程序时,终端210将候选区域范围内对应的至少两个目标类型实体对应的地理位置坐标生成区域规划请求发送至服务器220。Wherein, the terminal 210 is installed with an application program that provides a regional planning function. When the terminal 210 runs the application program, the terminal 210 sends the regional planning request to the
服务器220中的目标策略模型221根据终端210发送的区域规划区域,确定其对应的环境数据集,其中,环境数据集包含至少两个目标类型实体对应的实体位置关系和实体业务分布,服务器中还包含目标策略模型221,环境数据集输入目标策略模型输出得到候选中心,根据候选中心对至少两个目标类型实体进行区域划分,确定最终的区域规划结果,并将其反馈至终端210。The target policy model 221 in the
其中,服务器220中包含的目标策略模型221是通过AC框架训练得到的,其中,通过样本数据集222对AC框架中的演员网络223(Actor网络)和评论家网络224(Critic网络)进行训练。Among them, the target policy model 221 contained in the
其中,终端210包括智能手机、平板电脑、便携式膝上笔记本电脑、台式计算机、智能音箱、智能可穿戴设备、车载终端等终端中的至少一种。The terminal 210 includes at least one of a smart phone, a tablet computer, a portable laptop computer, a desktop computer, a smart speaker, a smart wearable device, a vehicle-mounted terminal, and the like.
值得注意的是,上述通信网络230可以实现为有线网络,也可以实现为无线网络,且通信网络230可以实现为局域网、城域网或广域网中的任意一种,本申请实施例对此不加以限定。It is worth noting that the above-mentioned
在一些实施例中,上述服务器220可以实现为独立的单个服务器,或者,可以实现为一组服务器,在一组服务器内包含多个协同工作的服务器。In some embodiments, the above-mentioned
在一些实施例中,上述服务器220可以实现为云端的云服务器,或者,可以实现为区块链系统中的节点,在此不做限定。In some embodiments, the
值得注意的是,上述通信网络230可以实现为有线网络,也可以实现为无线网络,且通信网络230可以实现为局域网、城域网或广域网中的任意一种,本申请实施例对此不加以限定。It is worth noting that the above-mentioned
结合上述名词简介以及应用场景,对本申请实施例提供的区域规划方法进行说明,以由服务器执行以完成该方法为例进行说明,示意性的,请参考图3,其示出了本申请一个示例性实施例提供的区域规划方法流程图,该方法包括如下步骤:The area planning method provided by the embodiment of the present application is described in conjunction with the above-mentioned nomenclature introduction and application scenario, and the method is executed by a server to complete the description as an example. For an illustration, please refer to FIG. 3 , which shows an example of the present application. The flow chart of the regional planning method provided by the exemplary embodiment, the method includes the following steps:
步骤301,获取地理位置集。
其中,地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标。The geographic location set includes geographic location coordinates corresponding to at least two target type entities within the range of the candidate area.
示意性的,候选区域范围指当前需要进行区域规划对应的指定区域,如:将一个城市作为指定区域,则候选区域范围为该城市对应的城市区域、将一个公园作为指定区域,则候选区域范围为该公园对应的公园区域、将多个城市对应的区域集合作为指定区域,则候选区域范围为多个城市对应的区域集合等,本申请在此不做限定。Illustratively, the range of the candidate area refers to the designated area corresponding to the current need for regional planning. For example, if a city is used as the designated area, the range of the candidate area is the urban area corresponding to the city, and if a park is used as the designated area, the range of the candidate area is For the park area corresponding to the park, the set of areas corresponding to multiple cities is used as the designated area, and the range of the candidate area is the set of areas corresponding to multiple cities, etc., which is not limited in this application.
在一些实施例中,目标类型实体包含在候选区域范围内的指定类型对应的实体,如:当指定类型为商家时,目标类型实体为商家实体(如商家对应的店铺);当指定类型为地标时,目标类型实体为地标对应的建筑物等,当指定类型为交通地点时,目标类型实体为交通地点所处位置对应的相关实体(如建筑物或者其他参照物等),在此不做限定。In some embodiments, the target type entity includes entities corresponding to the specified type within the candidate area, for example: when the specified type is a merchant, the target type entity is a merchant entity (such as a store corresponding to the merchant); when the specified type is a landmark When the target type entity is the building corresponding to the landmark, when the specified type is the traffic location, the target type entity is the relevant entity (such as a building or other reference objects) corresponding to the location of the traffic location, which is not limited here. .
其中,当目标类型实体为商家实体时,目标类型实体对应的地理位置坐标为商家对应的店铺位置坐标;当目标类型实体为建筑物时,目标类型实体对应的地理位置坐标为建筑物对应的位置坐标;当目标类型实体为交通地点时,目标类型实体对应的地理位置坐标为该交通地点对应候选区域范围内的位置坐标。Wherein, when the target type entity is a business entity, the geographic location coordinates corresponding to the target type entity are the store location coordinates corresponding to the business; when the target type entity is a building, the geographic location coordinates corresponding to the target type entity are the locations corresponding to the building Coordinates; when the target type entity is a traffic location, the geographic location coordinates corresponding to the target type entity are the location coordinates within the candidate area corresponding to the traffic location.
可选地,候选区域范围内的至少两个目标类型实体为同一类型的实体,或者,为不同类型的实体,在此不做限定。Optionally, at least two target type entities within the scope of the candidate area are entities of the same type, or entities of different types, which are not limited herein.
步骤302,基于地理位置坐标,确定至少两个目标类型实体对应的环境数据集。Step 302: Determine environment data sets corresponding to at least two target type entities based on the geographic location coordinates.
其中,环境数据集用于指示至少两个目标类型实体对应的实体位置关系和实体业务分布,实体业务分布用于指示所述目标类型实体的业务在时空上的分布情况。The environment data set is used to indicate the entity location relationship and entity service distribution corresponding to at least two target type entities, and the entity service distribution is used to indicate the spatiotemporal distribution of services of the target type entities.
可选地,实体位置关系包括两个目标类型实体之间的路线距离;或者,多个目标类型实体之间对应所在位置的分布关系,如:实体a、实体b以及实体c呈现环状分布;或者,多个目标类型实体在候选区域范围内的位置分布状态,如:实体1、实体2与实体3对应为一个聚类中的位置点,实体4为该聚类外对应的孤立点,在此不做限定,其中,实体位置关系由至少两个目标类型实体各自对应的地理位置坐标确定。Optionally, the entity location relationship includes a route distance between two target-type entities; or, a distribution relationship of corresponding locations between multiple target-type entities, such as: entity a, entity b, and entity c present a circular distribution; Or, the location distribution status of multiple target-type entities within the candidate area, for example: entity 1, entity 2 and entity 3 correspond to the location points in a cluster, entity 4 is the corresponding isolated point outside the cluster, in This is not limited, wherein the entity location relationship is determined by the respective geographic location coordinates corresponding to at least two target type entities.
示意性的,实体业务分布包括目标类型实体的业务在时间上的分布情况或者在空间上的分布情况,其中,目标类型实体对应的业务类型不同时,其对应的实体业务分布可能相同或者不相同。Illustratively, the entity business distribution includes the time distribution or spatial distribution of the business of the target type entity, wherein, when the business types corresponding to the target type entities are different, the corresponding entity business distribution may be the same or different. .
其中,当目标类型实体为商家实体时,商家实体对应的业务类型包括配送业务、经营业务等,其中以配送业务为例进行说明,如:当对指定区域范围内的多个商家进行配送区域的划分时,商家实体对应的实体业务分布在时间上的分布包括:该商家在历史时间段内的历史订单数量、商家对应的营业时间、商家设定的预期订单数量、商家历史营业额等情况,商家实体对应的实体业务分布在空间上的分布包括:商家所在区域内的对应的订单量、商家对应的取货配送难度、商家所处位置对应的位置轮廓等,对此不加以限定。值得注意的是,选择一个或者多个目标类型实体对应的实体业务分布以及实体位置关系作为环境数据集。Among them, when the target type entity is a merchant entity, the business types corresponding to the merchant entity include delivery business, operation business, etc. The delivery business is used as an example to illustrate, for example: when multiple merchants within a specified area are used for delivery area When dividing, the distribution in time of the physical business corresponding to the merchant entity includes: the number of historical orders of the merchant in the historical time period, the business hours corresponding to the merchant, the expected number of orders set by the merchant, and the historical turnover of the merchant, etc. The spatial distribution of the physical business distribution corresponding to the merchant entity includes: the corresponding order volume in the area where the merchant is located, the difficulty of picking up and delivering goods corresponding to the merchant, and the location outline corresponding to the merchant's location, etc., which are not limited. It is worth noting that the entity business distribution and entity location relationship corresponding to one or more target type entities are selected as the environment dataset.
可选地,环境数据集中各目标类型实体对应的实体业务分布相同或者不同,在此不做限定。Optionally, the entity business distribution corresponding to each target type entity in the environment data set is the same or different, which is not limited here.
步骤303,结合实体业务分布和实体位置关系对至少两个目标类型实体进行位置分析,得到候选区域范围内的候选中心。Step 303: Perform location analysis on at least two target type entities in combination with entity business distribution and entity location relationship to obtain candidate centers within the candidate area.
在一些实施例中,候选中心指当前区域范围内进行区域划分时作为每个划分的区域对应的位置中心。In some embodiments, the candidate center refers to the position center corresponding to each divided area when the area is divided in the current area.
可选地,候选中心包含从至少两个目标类型实体中选择一个或者多个目标类型实体作为候选中心;或者,根据至少两个目标类型实体对应的地理位置,确定候选区域范围内至少一个候选中心(或者未选取候选中心),也即,该候选中心为某个目标类型实体,或者是多个目标类型实体之间的某个地理位置,在此不做限定。Optionally, the candidate center includes selecting one or more target type entities from at least two target type entities as candidate centers; or, according to the geographic locations corresponding to the at least two target type entities, at least one candidate center within the scope of the candidate area is determined. (or no candidate center is selected), that is, the candidate center is a certain target type entity, or a certain geographic location between multiple target type entities, which is not limited here.
在一些实施例中,位置分析指分析至少两个目标类型实体在进行区域划分时作为候选中心的适配结果。In some embodiments, the location analysis refers to analyzing the adaptation results of at least two target-type entities as candidate centers when performing region division.
示意性的,位置分析方式包括如下方式中至少一种:Illustratively, the location analysis method includes at least one of the following methods:
1.建立目标策略模型,将实体业务分布和实体位置关系输入目标策略模型,输出得到各目标类型实体对应的位置分析结果,从而确定候选中心,目标策略模型为用于对目标类型实体进行位置分析的模型;1. Establish a target strategy model, input the entity business distribution and entity location relationship into the target strategy model, and output the location analysis results corresponding to each target type entity to determine the candidate center. The target strategy model is used for location analysis of target type entities. model;
2.预先对候选区域范围划分,确定各候选区域对应的区域特征,提取目标类型实体对应的实体位置关系的位置特征,以及实体业务分布对应的参数特征,将目标类型实体对应的位置特征和参数特征进行融合,得到目标类型实体对应的融合特征,根据各目标类型实体对应的融合特征与区域特征进行关联度分析,得到各目标类型实体对应的中心关联度,根据中心关联度对应与候选区域关联度最高的目标类型实体作为候选中心。后续再基于候选中心对候选区域的划分进行调整。2. Divide the range of candidate areas in advance, determine the area characteristics corresponding to each candidate area, extract the location characteristics of the entity location relationship corresponding to the target type entity, and the parameter characteristics corresponding to the entity business distribution, and combine the location characteristics and parameters corresponding to the target type entity. The features are fused to obtain the fusion features corresponding to the target type entities, and the correlation degree analysis is carried out according to the fusion features corresponding to each target type entity and the regional features to obtain the central correlation degree corresponding to each target type entity, and the corresponding correlation degree with the candidate area according to the central correlation degree The target type entity with the highest degree is used as the candidate center. Subsequently, the division of the candidate region is adjusted based on the candidate center.
值得注意的是,上述关于位置分析方式仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above position analysis method is only a schematic example, which is not limited in this embodiment of the present application.
在一些实施例中,将环境数据集输入目标策略模型,输出得到候选中心,目标策略模型用于结合实体业务分布和实体位置关系对至少两个目标类型实体进行位置分析。In some embodiments, the environment data set is input into the target strategy model, and the output is to obtain candidate centers. The target strategy model is used to perform location analysis on at least two target type entities in combination with entity business distribution and entity location relationship.
可选地,通过目标策略模型进行位置分析的方式包括如下方式中至少一种:Optionally, the method of performing location analysis by using the target policy model includes at least one of the following methods:
1.将环境数据集输入目标策略模型后,目标策略模型根据各个目标类型实体对应的实体业务分布进行位置分析,得到每个目标类型实体性对应的位置分析分数,选择位置分析分数中分数最高的至少一个目标类型实体作为候选中心;1. After inputting the environmental data set into the target strategy model, the target strategy model performs location analysis according to the entity business distribution corresponding to each target type entity, obtains the location analysis score corresponding to each target type entity, and selects the location analysis score with the highest score. at least one target type entity as candidate center;
2.目标策略模型中预设有参数阈值,将环境数据集输入目标策略模型后,目标策略模型将各目标类型实体对应的实体业务分布与该参数阈值对比,达到参数阈值的实体业务分布对应的目标类型实体即作为候选中心。2. The parameter threshold is preset in the target strategy model. After inputting the environmental data set into the target strategy model, the target strategy model compares the entity business distribution corresponding to each target type entity with the parameter threshold, and the entity business distribution that reaches the parameter threshold corresponds to the The target type entity is used as the candidate center.
值得注意的是,上述关于通过目标策略模型进行位置分析的方式仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above-mentioned method of performing location analysis by using the target strategy model is only a schematic example, which is not limited in the embodiment of the present application.
步骤304,基于候选中心对候选区域范围进行区域划分,得到至少两个目标类型实体在候选区域范围内的区域规划结果。
在一些实施例中,区域划分是指将候选区域划分成至少一个子区域,每个子区域中包括区域中心,作为该子区域对应的中心位置。In some embodiments, the area division refers to dividing the candidate area into at least one sub-area, and each sub-area includes an area center as the center position corresponding to the sub-area.
示意性的,区域规划结果用于指示候选区域范围内至少一个子区域对应的划分结果。Illustratively, the area planning result is used to indicate the division result corresponding to at least one sub-area within the range of the candidate area.
可选地,将候选中心作为区域中心,根据区域中心对候选区域范围进行划分;或者,根据候选中心,确定候选区域范围对应的区域中心,从而对候选区域范围进行区域划分,也即,候选中心可能为某个目标类型实体,或者,可能为某个地理位置坐标,在此不做限定。Optionally, the candidate center is used as the regional center, and the candidate area range is divided according to the regional center; or, according to the candidate center, the regional center corresponding to the candidate area range is determined, so as to perform regional division on the candidate area range, that is, the candidate center It may be an entity of a target type, or it may be a geographic location coordinate, which is not limited here.
可选地,在候选区域范围内,区域规划结果对应的各规划区域之间存在重叠部分,或者,各规划区域之间紧密贴合且无重叠部分,对此不作限定。Optionally, within the scope of the candidate area, there is an overlapping portion between the planning areas corresponding to the regional planning result, or the planning areas are closely fitted and have no overlapping portion, which is not limited.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的目标类型实体对应的实体位置关系、实体业务分布以及区域中心等相关实体数据都是在充分授权的情况下获取的。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the entity location relationship, entity business distribution, regional center and other related entity data corresponding to the target type entity involved in this application are all obtained with full authorization.
综上所述,本申请实施例提供的区域规划方法,通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体对应的相关业务信息,能够满足不同业务需求下的区域规划方案,从而提高区域规划的准确度。To sum up, in the regional planning method provided by the embodiments of the present application, by analyzing the geographic location coordinates of the target type entities in the geographical location, the entity location relationship and entity business distribution corresponding to each target type entity are determined, and the target type entities are analyzed. In the process of location analysis, the entity business distribution and entity location relationship are combined, so as to use the candidate center for dividing the range of candidate regions, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, Therefore, in the process of determining the candidate center in the regional planning, the relevant business information corresponding to the entity of the target type can be combined, and the regional planning scheme under different business requirements can be satisfied, thereby improving the accuracy of the regional planning.
一个可选的实施例中,请参考图4,其示出了本申请一个示例性实施例提供的区域规划方法流程图。以该方法由服务器执行为例进行说明。即在图3示出的实施例的基础上,步骤303还包括步骤3031:In an optional embodiment, please refer to FIG. 4 , which shows a flowchart of a regional planning method provided by an exemplary embodiment of the present application. The method is described by taking the method being executed by the server as an example. That is, on the basis of the embodiment shown in FIG. 3 , step 303 further includes step 3031:
步骤301,获取地理位置集。
其中,地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标。The geographic location set includes geographic location coordinates corresponding to at least two target type entities within the range of the candidate area.
示意性的,候选区域范围指当前需要进行区域规划对应的指定区域。Illustratively, the candidate area range refers to a designated area corresponding to the current need for area planning.
示意性的,区域规划包括如下规划内容中至少一种:Illustratively, the regional planning includes at least one of the following planning contents:
1.对指定区域进行区域划分。如:对一个城市进行区域划分,按照业务需求(如:外卖配送区域规划、快递运输区域规划等)将城市划分成指定个数的不同区域,用于对不同区域进行业务管理;1. Divide the designated area. For example: divide a city into regions, and divide the city into a specified number of different regions according to business needs (such as: regional planning for takeaway delivery, regional planning for express transportation, etc.) for business management of different regions;
2.对指定区域进行路线规划。如:对某个公园内进行路线规划,通过将公园划分成几个不同的区域,根据每个区域对应的区域轮廓确定路线铺设方案;2. Route planning for the designated area. For example, for route planning in a park, by dividing the park into several different areas, the route laying plan is determined according to the area outline corresponding to each area;
3.对指定区域进行区域集合。如:对省市之间进行交通运输网的设计,通过对某几个省内的多个城市进行规划,确定城市与城市对应的集合结果,用于构建交通运输网络。3. Assemble the designated area. For example, the design of the transportation network between provinces and cities, through the planning of multiple cities in a certain province, determine the aggregated results corresponding to the cities, which are used to construct the transportation network.
值得注意的是,上述关于区域规划的规划内容仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above planning content about regional planning is only a schematic example, which is not limited in this embodiment of the present application.
可选地,目标类型实体的地理位置坐标为平面坐标,或者,目标类型实体的地理位置坐标为三维坐标;目标类型实体的地理位置坐标包含根据候选位置区域范围确定的,或者,目标类型实体的地理位置坐标为该实体对应的经纬度坐标等,在此不做限定。Optionally, the geographic location coordinates of the target type entity are plane coordinates, or, the geographic location coordinates of the target type entity are three-dimensional coordinates; the geographic location coordinates of the target type entity include those determined according to the range of the candidate location area, or, the The geographic location coordinates are the latitude and longitude coordinates corresponding to the entity, and are not limited here.
步骤302,基于地理位置坐标,确定至少两个目标类型实体对应的环境数据集。Step 302: Determine environment data sets corresponding to at least two target type entities based on the geographic location coordinates.
其中,环境数据集用于指示至少两个目标类型实体对应的实体位置关系和实体业务分布,实体业务分布用于指示所述目标类型实体的业务在时空上的分布情况。The environment data set is used to indicate the entity location relationship and entity service distribution corresponding to at least two target type entities, and the entity service distribution is used to indicate the spatiotemporal distribution of services of the target type entities.
示意性的,实体业务分布的确定方式包括如下方式中至少一种:Illustratively, the manner of determining the entity business distribution includes at least one of the following manners:
1.获取目标类型实体对应的历史数据作为目标类型实体的实体业务分布;1. Obtain the historical data corresponding to the target type entity as the entity business distribution of the target type entity;
2.预设时间范围,获取在时间范围内目标类型实体对应的历史数据作为实体业务分布;2. Preset the time range, and obtain the historical data corresponding to the target type entity within the time range as the entity business distribution;
3.通过确定目标类型实体的参数类型后,对参数预设一个参数阈值,作为目标类型实体对应的实体业务分布,也即为该目标类型实体对应该参数类型的期望值。3. After determining the parameter type of the target type entity, a parameter threshold is preset for the parameter as the entity business distribution corresponding to the target type entity, that is, the expected value of the target type entity corresponding to the parameter type.
值得注意的是,上述关于实体业务分布的确定方式仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above-mentioned determination method of entity service distribution is only a schematic example, which is not limited in this embodiment of the present application.
步骤3031,将环境数据集输入目标策略模型,输出得到候选中心。Step 3031: Input the environment data set into the target policy model, and output the candidate center.
其中,目标策略模型用于结合实体业务分布和实体位置关系对至少两个目标类型实体进行位置分析。The target strategy model is used to perform location analysis on at least two target type entities in combination with entity business distribution and entity location relationship.
在一些实施例中,至少两个目标类型实体包括商家实体,环境数据集用于指示商家实体的实体位置关系,和商家的业务分布。In some embodiments, the at least two target type entities include a merchant entity, the context data set is used to indicate the entity location relationship of the merchant entity, and the business distribution of the merchant.
可选地,在一种可实现的场景下,目标类型实体实现为商家实体,如:商家店铺等,则环境数据集中包含了商家实体对应的实体位置关系和商家对应的业务分布。Optionally, in an achievable scenario, the target type entity is implemented as a merchant entity, such as a merchant store, etc., and the environment data set includes the entity location relationship corresponding to the merchant entity and the business distribution corresponding to the merchant.
其中,商家实体对应的实体位置关系包括两个商家实体之间对应的路线距离;或者,多个商家实体对应在候选区域范围内的位置分布关系,在此不加以限定。Wherein, the entity location relationship corresponding to the business entity includes the corresponding route distance between two business entities; or, the location distribution relationship corresponding to multiple business entities within the candidate area, which is not limited herein.
其中,商家对应的业务分布指商家在指定业务类型下包含的相关业务分布信息,如:当商家在外卖业务场景下,商家对应的业务分布包括商家的外卖订单数量、商家对应的取餐难度、商家所在指定区域内对应的区域取餐难度、商家所处位置对应的区域轮廓以及商家管理者对于商家预设的订单期望等业务分布信息中至少一种。Among them, the business distribution corresponding to the merchant refers to the relevant business distribution information contained by the merchant under the specified business type. For example, when the merchant is in the takeaway business scenario, the business distribution corresponding to the merchant includes the number of takeaway orders of the merchant, the difficulty of picking up meals corresponding to the merchant, At least one of the business distribution information such as the difficulty of picking up meals in the designated area where the merchant is located, the outline of the area corresponding to the merchant's location, and the order expectations preset by the merchant manager for the merchant.
在一些实施例中,基于环境数据集,确定候选区域范围的历史区域中心,历史区域中心包括历史时间段内作为划分得到的区域中心的商家实体;通过目标策略模型,对历史区域中心和环境数据集进行分析,输出得到候选中心。In some embodiments, based on the environmental data set, the historical regional center of the candidate area is determined, and the historical regional center includes the business entity as the divided regional center in the historical time period; through the target strategy model, the historical regional center and the environmental data are analyzed. The set is analyzed, and the output is the candidate center.
示意性的,在环境数据集中,还包括至少两个商家实体在历史时间段内对应的区域中心选择状态,也即,每个商家实体包含一个区域中心选择状态:被选中作为区域中心或者未被选中作为区域中心。Illustratively, in the environmental data set, it also includes the corresponding regional center selection status of at least two business entities in the historical time period, that is, each business entity contains a regional center selection status: selected as a regional center or not. Selected as area center.
其中,被选中作为区域中心指该商家实体在历史时间段内对候选区域范围进行区域规划的过程中,被选中一次或者多次作为区域中心;未被选中作为区域中心指该商家实体在历史时间段内对候选区域范围进行区域规划的过程中,没有被选择作为区域中心的历史记录。因此,将被选中作为区域中心的目标类型实体作为历史区域中心。Among them, being selected as the regional center means that the business entity has been selected as the regional center one or more times during the process of regional planning for the candidate area within the historical time period; not selected as the regional center refers to the business entity in the historical time period. In the process of regional planning for the candidate region range in the segment, it is not selected as the historical record of the regional center. Therefore, the target type entity selected as the regional center will be the historical regional center.
在一些实施例中,历史时间段包含某一段历史时间范围内,或者包含至少一次历史区域规划过程,在此不做限定。In some embodiments, the historical time period includes a certain historical time range, or includes at least one historical area planning process, which is not limited herein.
可选地,当前区域规划的过程中可根据环境数据集确定一个或者历史区域中心,或者,不存在历史区域中心,在此不做限定。Optionally, in the current regional planning process, one or a historical regional center may be determined according to the environmental data set, or there is no historical regional center, which is not limited herein.
本实施例中,环境数据集作为Enviroment,历史区域中心为商家实体对应的State,即,当前商家实体对应包含在历史时间段内作为区域中心的状态。In this embodiment, the environment dataset is used as Environment, and the historical regional center is the State corresponding to the merchant entity, that is, the current merchant entity corresponds to the state included in the historical time period as the regional center.
将至少两个商家实体对应的环境数据集以及历史区域中心输入目标策略模型中对商家实体进行位置分析,输出得到作为候选中心的商家实体。The environment data sets corresponding to at least two business entities and the historical regional center are input into the target strategy model to analyze the location of the business entity, and the business entity as the candidate center is obtained as output.
在一些实施例中,目标策略模型中包括强化学习架构中的演员网络,演员网络用于进行中心预测,演员网络中包括编解码架构中的编码器和解码器。In some embodiments, the target policy model includes an actor network in a reinforcement learning architecture, the actor network is used for center prediction, and the actor network includes an encoder and a decoder in an encoder-decoder architecture.
本实施例中,在强化学习架构中包含演员网络,中心预测指分析目标类型实体是否能作为候选中心,演员网络用于对输入目标策略模型的目标类型实体的相关数据进行预测分析,确定作为候选中心的目标类型实体,其中,演员网络通过编码解码架构中的编码器和解码器实现中心预测功能。In this embodiment, an actor network is included in the reinforcement learning architecture, and center prediction refers to analyzing whether the target type entity can be used as a candidate center. The actor network is used to predict and analyze the relevant data of the target type entity input into the target strategy model, and determine it as a candidate center. The object type entity of the center, where the actor network implements the center prediction function through the encoder and decoder in the encoder-decoder architecture.
在一些实施例中,基于环境数据集,确定候选区域范围的历史区域中心,历史区域中心包括历史时间段内作为划分得到的区域中心的目标类型实体;将历史区域中心和环境数据集输入演员网络的编码器,输出得到编码特征和中心特征集合;通过解码器对编码特征进行解码分析,得到解码特征;基于解码特征和中心特征集合得到候选中心。In some embodiments, based on the environment data set, determine the historical area center of the candidate area range, the historical area center includes the target type entity as the divided area center in the historical time period; input the historical area center and the environment data set into the actor network The encoder outputs the encoding feature and the center feature set; decode and analyze the encoded feature through the decoder to obtain the decoded feature; obtain the candidate center based on the decoded feature and the center feature set.
本实施例中,通过环境数据集确定各目标类型实体在历史时间范围内的中心选择状态,将中心选择状态为被选中作为候选中心的目标类型实体确定为历史区域中心。将环境数据集与历史区域中心输入目标策略模型,目标策略模型结合环境数据集中目标类型实体对应的实体业务分布以及历史区域中心,对至少两个目标类型实体进行位置分析,确定最终作为候选中心的目标类型实体。In this embodiment, the center selection state of each target type entity within the historical time range is determined through the environment data set, and the target type entity whose center selection state is selected as a candidate center is determined as a historical regional center. Input the environmental data set and the historical regional center into the target strategy model. The target strategy model combines the entity business distribution corresponding to the target type entity in the environmental data set and the historical regional center, and analyzes the location of at least two target type entities to determine the final candidate center. The target type entity.
示意性的,请参考图5,其示出了本申请一个示例性实施例提供的演员网络分析过程示意图,如图5所示,将目标类型实体对应的中心选择状态510和地理位置坐标520输入编码器530,其中,中心选择状态510用于指示目标类型实体是否在历史时间段内被选中作为候选中心,即中心选择状态510包含选中和未选中两种状态,中心选择状态510的取值范围为[0,t],0表示该目标类型实体未在历史时间段内被选中作为候选中心,t表示在第t次选择过程中被选中作为候选中心,地理位置坐标520为目标类型实体在候选区域范围内的二维平面坐标(lng,lat)。Illustratively, please refer to FIG. 5, which shows a schematic diagram of the actor network analysis process provided by an exemplary embodiment of the present application. As shown in FIG. 5, the
其中,编码器530中包含两个神经网络(531和532),神经网络531用于提取中心选择510对应的状态特征541,神经网络532用于提取地理位置坐标520对应的位置特征542,将中心选择状态510和地理位置坐标520同时输入神经网络531和神经网络532后,得到各目标类型实体对应的状态特征541和位置特征542,将各目标类型实体对应的状态特征表示541和位置特征表示542作为中心特征集合540。The encoder 530 includes two neural networks (531 and 532), the neural network 531 is used to extract the state feature 541 corresponding to the
目标策略模型中还包括解码器,解码器中包含神经网络550。通过神经网络532确定历史区域中心对应的编码特征543,此外,根据目标类型实体对应的实体位置关系和实体业务分布,确定历史区域中心对应的业务特征544,将编码特征543和业务特征544输入神经网络550,输出得到解码特征551,解码特征551用于指示候选中心560对应的特征表示,将中心特征集合540和解码特征551通过注意力机制(Attention机制)确定最终的候选中心560。The target policy model also includes a decoder, and the decoder includes a neural network 550 . The
本实施例中,神经网络531和神经网络532实现为卷积神经网络(ConvolutionalNeural Networks,CNN)结构的网络,神经网络550实现为长短期记忆网络(Long Short-Term Memory,LSTM)结构的网络,本申请对此不加以限定。In this embodiment, the neural network 531 and the neural network 532 are implemented as a network with a convolutional neural network (Convolutional Neural Networks, CNN) structure, and the neural network 550 is implemented as a network with a long short-term memory (Long Short-Term Memory, LSTM) structure, This application does not limit this.
步骤304,基于候选中心对候选区域范围进行区域划分,得到至少两个目标类型实体在候选区域范围内的区域规划结果。
示意性的,在根据候选中心确定区域中心的过程中,确定方式包括:Illustratively, in the process of determining the regional center according to the candidate center, the determination method includes:
1.将目标策略模型输出得到的候选中心作为区域中心;1. Take the candidate center output from the target strategy model as the regional center;
2.当针对同一规划区域内包含m个候选中心时,将m个候选中心对应的位置点进行连线,将连线得到的交集作为区域中心,m为正整数;2. When there are m candidate centers in the same planning area, connect the position points corresponding to the m candidate centers, and use the intersection obtained by connecting the lines as the area center, where m is a positive integer;
3.目标策略模型获取候选中心后,使用加权质心算法遍历候选中心,确定最终的区域中心。3. After the target policy model obtains the candidate centers, use the weighted centroid algorithm to traverse the candidate centers to determine the final regional center.
值得注意的是,上述关于区域中心的确定方式仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above-mentioned determination method of the regional center is only a schematic example, which is not limited in this embodiment of the present application.
示意性的,区域规划结果的确定方式包括如下方式中至少一种:Illustratively, the manner of determining the regional planning result includes at least one of the following manners:
1.预设指定个数,在确定区域中心后,以区域中心为基准,将指定个数的目标类型实体对应的区域范围作为规划的区域;1. Preset the specified number, after determining the regional center, take the regional center as the benchmark, and take the area corresponding to the specified number of target type entities as the planned area;
2.预设区域轮廓,在确定区域中心后,以区域中心为基准,根据预设的区域轮廓确定该区域中心对应的规划区域;2. Preset the area outline, after determining the area center, take the area center as the benchmark, and determine the planning area corresponding to the area center according to the preset area outline;
3.根据业务需要确定区域规划结果,如:在对商家进行区域规划时,将经营相同类型内容的商家分布在不同的规划区域中,将存在营业联系的商家(如电影院与餐厅)归置与同一规划区域中,以满足最终的业务需要。3. Determine the results of regional planning according to business needs. For example, when planning for businesses, distribute businesses with the same type of content in different planning areas, and place businesses with business connections (such as movie theaters and restaurants) with in the same planning area to meet the final business needs.
值得注意的是,上述关于区域规划结果的内容仅为示意性的举例,本申请实施例对比不加以限定。It should be noted that the above content about the regional planning result is only a schematic example, and the comparison of the embodiments of the present application is not limited.
示意性的,区域规划结果包括如下结果中的至少一种:Illustratively, the regional planning result includes at least one of the following results:
1.区域规划结果为显示候选区域范围内根据区域中心划分的各个规划区域,也即,显示在候选区域范围内各规划区域;1. The regional planning result is to display each planning area divided according to the regional center within the scope of the candidate area, that is, to display each planning area within the scope of the candidate area;
2.区域规划结果为显示候选区域范围内各个规划区域对应的区域轮廓,也即,显示在候选区域范围内各个规划区域对应的图形形状以及对应的轮廓线;2. The regional planning result is to display the regional outline corresponding to each planned area within the candidate area, that is, to display the graphic shape and corresponding contour line corresponding to each planned area within the candidate area;
3.区域规划结果为显示候选区域范围内至少两个目标类型实体对应的聚类结果,也即,显示在候选区域范围内目标类型实体对应的至少一个聚类结果。3. The regional planning result is to display the clustering results corresponding to at least two target-type entities within the candidate region, that is, to display at least one clustering result corresponding to the target-type entity within the candidate region.
值得注意的是,上述关于区域规划结果的内容仅为示意性的举例,本申请实施例对此不加以限定。It should be noted that the above content about the regional planning result is only a schematic example, which is not limited in this embodiment of the present application.
在一些实施例中,对候选中心进行质心定位,得到候选区域范围对应的区域中心;基于区域中心,确定至少两个目标类型实体在候选区域范围内对应的实体聚类结果;将实体聚类结果作为区域规划结果。In some embodiments, centroid positioning is performed on the candidate center to obtain the area center corresponding to the candidate area range; based on the area center, entity clustering results corresponding to at least two target type entities in the candidate area range are determined; as a result of regional planning.
示意性的,在获取至少两个目标类型实体对应的候选中心后,通过加权质心算法从候选中心中确定至少一个区域中心,使用最大期望算法(Expectation-MximizationAgorithm,EM算法)将目标类型实体与其距离最近的区域中心进行聚类,得到候选区域范围内各目标类型实体对应的实体聚类结果,其中,一个目标类型实体与一个或者多个区域中心聚类,根据实体聚类结果,使用图形外包算法确定最终的区域规划结果,其中,使用图形外包算法是指将目标类型实体所处地理位置对应的多边形轮廓作为基本单元,通过基本单元确定各区域中心对应的规划区域的外包轮廓,也即当前候选区域范围内生成至少一个外包图形,作为区域规划结果。Illustratively, after obtaining candidate centers corresponding to at least two target-type entities, at least one regional center is determined from the candidate centers by a weighted centroid algorithm, and a maximum expectation algorithm (Expectation-MximizationAgorithm, EM algorithm) is used to calculate the distance between the target-type entities and their distances. The nearest regional center is clustered to obtain the entity clustering results corresponding to each target type entity in the candidate area. Among them, one target type entity is clustered with one or more regional centers. According to the entity clustering results, a graph outsourcing algorithm is used. Determine the final regional planning result, wherein, using the graph outsourcing algorithm refers to taking the polygon outline corresponding to the geographic location of the target type entity as the basic unit, and determining the outsourcing outline of the planning area corresponding to the center of each area through the basic unit, that is, the current candidate Generate at least one outsourcing drawing within the area as a result of area planning.
示意性的,请参考图6,其示出了本申请一个示例性实施例提供的区域规划结果示意图,如图6所示,图6显示为区域规划结果界面600,在区域规划结果界面600中包含至少一个规划区域601(图6中以粗线描绘的区域进行举例说明),规划区域601的外包轮廓指该规划区域601所处范围对应的轮廓线。Illustratively, please refer to FIG. 6, which shows a schematic diagram of a regional planning result provided by an exemplary embodiment of the present application. As shown in FIG. 6, FIG. 6 shows a regional planning result interface 600. In the regional planning result interface 600 At least one
综上所述,本申请实施例提供的区域规划方法,通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体对应的相关业务信息,能够满足不同业务需求下的区域规划方案,从而提高区域规划的准确度。To sum up, in the regional planning method provided by the embodiments of the present application, by analyzing the geographic location coordinates of the target type entities in the geographical location, the entity location relationship and entity business distribution corresponding to each target type entity are determined, and the target type entities are analyzed. In the process of location analysis, the entity business distribution and entity location relationship are combined, so as to use the candidate center for dividing the range of candidate regions, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, Therefore, in the process of determining the candidate center in the regional planning, the relevant business information corresponding to the entity of the target type can be combined, and the regional planning scheme under different business requirements can be satisfied, thereby improving the accuracy of the regional planning.
本实施例中,通过环境数据集确定历史区域中心,并将历史区域中心和环境数据集共同输入目标策略模型用于对目标类型实体进行位置分析的方式,结合目标类型实体的中心选择状态进行分析,能够提高目标策略的分析准确度,从而提高区域规划的准确度。In this embodiment, the historical regional center is determined by the environmental data set, and the historical regional center and the environmental data set are jointly input into the target strategy model for location analysis of the target type entity, and the analysis is carried out in combination with the center selection state of the target type entity , which can improve the analysis accuracy of the target strategy, thereby improving the accuracy of regional planning.
一个可选的实施例中,请参考图7,其示出了本申请一个示例性实施例提供的区域规划方法的流程图。本实施例用于对区域规划方法的训练侧进行说明,以该方法由服务器执行为例进行说明。即在图3示出的实施例的基础上,步骤304之前还包括如下步骤:In an optional embodiment, please refer to FIG. 7 , which shows a flowchart of a regional planning method provided by an exemplary embodiment of the present application. This embodiment is used to describe the training side of the area planning method, and the method is executed by a server as an example for description. That is, on the basis of the embodiment shown in FIG. 3 , before
步骤701,获取样本数据集。
其中,样本数据集用于指示至少两个样本类型实体对应的样本位置关系和样本业务分布。The sample data set is used to indicate the sample location relationship and sample business distribution corresponding to at least two sample type entities.
在一些实施例中,样本类型实体包括:商家、建筑物、交通地点等,其中,至少两个样本类型实体位于样本候选区域范围内。In some embodiments, the sample type entities include: businesses, buildings, traffic locations, etc., wherein at least two sample type entities are located within the sample candidate area.
其中,当样本类型实体为商家时,样本类型实体对应的地理位置坐标为商家对应的店铺位置坐标;当样本类型实体为建筑物时,样本类型实体对应的地理位置坐标为建筑物对应的位置坐标;当样本类型实体为交通地点时,样本类型实体对应的地理位置坐标为该交通地点对应样本候选区域范围内的位置坐标。Wherein, when the sample type entity is a business, the geographic location coordinates corresponding to the sample type entity are the store location coordinates corresponding to the business; when the sample type entity is a building, the geographic location coordinates corresponding to the sample type entity are the location coordinates corresponding to the building ; When the sample type entity is a traffic location, the geographic location coordinates corresponding to the sample type entity are the location coordinates within the sample candidate area corresponding to the traffic location.
可选地,样本位置关系包括两个样本类型实体之间的路线距离;或者,多个样本类型实体对应所在位置的分布关系;或者,多个样本类型实体在样本候选区域范围内的位置分布状态,在此不做限定,其中,样本位置关系由至少两个样本类型实体各自对应的地理位置坐标确定。Optionally, the sample location relationship includes a route distance between two sample type entities; or, the distribution relationship of the corresponding locations of multiple sample type entities; or, the location distribution state of multiple sample type entities within the sample candidate area. , which is not limited here, wherein the sample location relationship is determined by the respective geographic location coordinates corresponding to at least two sample type entities.
在一些实施例中,样本业务分布指单个目标类型实体对应的相关业务参数,根据不同的业务需求,样本业务分布也不同,如:当对一个城市内的商家进行商品配送区域规划时,根据配送业务的需求,样本业务分布包括该商家在历史时间段内的历史订单数量、该商家的营业业务类型、营业时间、该商家的取货配送难度、商家预期的订单数量、多个商家所在区域对应的区域轮廓等,在此不做限定。其中,在进行区域规划的过程中,选择一个或者多个样本业务分布作为样本数据集。In some embodiments, the sample business distribution refers to the relevant business parameters corresponding to a single target type entity. According to different business requirements, the sample business distribution is also different. The business needs, the sample business distribution includes the number of historical orders of the merchant in the historical time period, the business type of the merchant, the business hours, the difficulty of picking up and delivering the merchant, the expected number of orders of the merchant, and the corresponding regions where multiple merchants are located. The area outline, etc., are not limited here. Wherein, in the process of regional planning, one or more sample business distributions are selected as the sample data set.
示意性的,样本类型实体对应的地理位置坐标为平面位置坐标。Illustratively, the geographic location coordinates corresponding to the sample type entity are plane location coordinates.
步骤702,通过演员网络对样本数据集进行预测,得到至少两个样本类型实体的样本候选中心。Step 702: Predict the sample data set through the actor network to obtain sample candidate centers of at least two sample-type entities.
示意性的,首先确定样本数据集中对应的样本历史中心,其中,在第一次训练之前,预设中心个数,采用随机选择法确定样本数据集中预设中心个数对应的样本类型实体作为样本候选中心,作为用于第一次训练过程中输入演员网络中的样本历史中心,则在第一次训练过程中,将样本数据集和样本历史中心输入演员网络,输出得到第一次训练对应生成的样本候选中心,作为第二次训练过程中的样本历史中心。Illustratively, first determine the sample historical center corresponding to the sample data set, wherein, before the first training, the number of centers is preset, and a random selection method is used to determine the sample type entity corresponding to the preset number of centers in the sample data set as the sample The candidate center is used as the sample history center for the input actor network in the first training process. In the first training process, the sample data set and the sample history center are input into the actor network, and the output is generated corresponding to the first training. The sample candidate center of , as the sample historical center in the second training process.
从第二次训练开始,每一次训练过程中,将前一次训练得到的样本候选中心作为本次训练过程中对应的样本历史中心。Starting from the second training, in each training process, the sample candidate center obtained from the previous training is used as the corresponding sample historical center in this training process.
步骤703,通过强化学习架构中的评论家网络对样本候选中心进行评估,得到期望偏差。Step 703: Evaluate the sample candidate centers through the critic network in the reinforcement learning architecture to obtain the expected deviation.
其中,期望偏差用于指示样本候选中心的预测效果。Among them, the expected deviation is used to indicate the prediction effect of the sample candidate center.
本实施例中,强化学习架构中还包括评论家网络,评论家网络用于生成预估样本候选中心对应结果的预测值。In this embodiment, the reinforcement learning architecture further includes a critic network, and the critic network is used to generate the predicted value of the corresponding result of the estimated sample candidate center.
首先,将样本候选中心代入预设期望函数,得到样本候选中心对应的第一期望值,第一期望值用于指示样本候选中心之间的聚合关系。First, the sample candidate center is substituted into a preset expectation function to obtain a first expected value corresponding to the sample candidate center, where the first expected value is used to indicate the aggregation relationship between the sample candidate centers.
示意性的,预设期望函数是根据样本类型实体对应的样本业务类型确定的预设函数,用于确定样本候选中心对应的第一期望值。Illustratively, the preset expectation function is a preset function determined according to the sample service type corresponding to the sample type entity, and is used to determine the first expected value corresponding to the sample candidate center.
本实施例中,在规划商家配送区域场景下,第一期望值的确定方式请参考公式一:In this embodiment, in the scenario of planning a merchant delivery area, please refer to Formula 1 for the method of determining the first expected value:
公式一:Rt=α·一定半径圆内的单量之和+β·中心点两两商家距离+γ·(1-区域平均配送难度)+δ·(KL(区域预设单量分布,商家预估单量分布)Formula 1: Rt=α·sum of orders within a circle with a certain radius +β·distance between two merchants at the center point+γ·(1-regional average delivery difficulty)+δ·(KL (regional preset order distribution, merchants Estimated single-quantity distribution)
其中,α,β,γ,和δ对应为不同的可调权重,一定半径圆内的单量之和指在样本类型实体(商家)在样本候选规划区域(一定半径的圆内)对应的订单数量总和,中心点两两商家距离指两个样本候选中心之间对应的路线距离,区域平均配送难度指在样本候选规划区域内对应的配送难度的平均值,KL(区域预设单量分布,商家预估单量分布)是指商家管理者预设单量分布和商家预估单量分布之间的相对熵,其中,商家管理者预设单量分布是指,区域规划结果对应的各规划区域对应的预设单量的分布情况,商家预估单量分布指各商家自身预估的单量预期量。Among them, α, β, γ, and δ correspond to different adjustable weights, and the sum of the unit quantities within a certain radius circle refers to the order corresponding to the sample type entity (merchant) in the sample candidate planning area (within a certain radius circle) The sum of the quantity, the distance between the two merchants of the center point refers to the corresponding route distance between the two sample candidate centers, the regional average distribution difficulty refers to the average value of the corresponding distribution difficulty in the sample candidate planning area, KL (regional preset order distribution, Merchant's estimated single-volume distribution) refers to the relative entropy between the business manager's preset single-volume distribution and the merchant's estimated single-volume distribution, where the business manager's preset single-volume distribution refers to the planning results corresponding to the regional planning results. The distribution of the preset order volume corresponding to the region, the merchant's estimated order volume distribution refers to the expected order volume estimated by each merchant.
其中,给各样本候选中心对应的各项样本业务分布和样本位置关系分别配置不同的权重,计算各项样本业务分布和样本位置关系的加权和结果作为样本候选中心簇对应的第一期望值,其中,样本候选中心簇指样本候选中心对应的中心集合。Among them, assign different weights to each sample business distribution and sample location relationship corresponding to each sample candidate center, and calculate the weighted sum result of each sample business distribution and sample location relationship as the first expected value corresponding to the sample candidate center cluster, where , the sample candidate center cluster refers to the center set corresponding to the sample candidate center.
值得注意的是,上述公式一中用于确定第一期望值的参数仅为示意性的举例,在应用过程中可根据实际需求进行设定不同参数。It is worth noting that the parameters used to determine the first expected value in the above formula 1 are only illustrative examples, and different parameters can be set according to actual requirements in the application process.
示意性的,聚合关系指样本候选中心在区域规划范围内的位置离散程度。Illustratively, the aggregation relationship refers to the degree of dispersion of the positions of the sample candidate centers within the regional planning range.
其次,通过评论家网络对样本数据集进行期望分析,得到样本数据集对应的第二期望值,第二期望值用于指示样本数据集对应的预估聚合关系。Secondly, an expectation analysis is performed on the sample data set through the critic network, and a second expectation value corresponding to the sample data set is obtained, and the second expectation value is used to indicate the estimated aggregation relationship corresponding to the sample data set.
在一些实施例中,将样本数据集输入候选预估模型,候选预估模型中包括评论家网络,候选预估模型为预先训练得到的机器学习模型;通过评论家网络对样本数据集进行期望预估,输出得到第二期望值。In some embodiments, the sample data set is input into a candidate prediction model, the candidate prediction model includes a critic network, and the candidate prediction model is a machine learning model obtained by pre-training; the sample data set is expected to be predicted through the critic network. Estimate, the output obtains the second expected value.
本实施例中,构建包含评论家网络的候选预估模型,通过评论家网络输出得到样本数据集对应的第二期望值,其中,候选预估模型中的评论家网络可实现为包含两层CNN网络结构以及两层全连接结构,且输出结果为一个标量的网络结构,用于表示第一期望值对应的预估值,也即,对于样本数据集对应的聚合关系的预测结果。In this embodiment, a candidate prediction model including a critic network is constructed, and the second expected value corresponding to the sample data set is obtained through the output of the critic network, wherein the critic network in the candidate prediction model can be implemented as a two-layer CNN network structure and a two-layer fully connected structure, and the output result is a scalar network structure, which is used to represent the estimated value corresponding to the first expected value, that is, the prediction result of the aggregation relationship corresponding to the sample data set.
最后,基于第一期望值和第二期望值得到期望偏差。Finally, the expected deviation is obtained based on the first expected value and the second expected value.
在一些实施例中,确定第一期望值与第二期望值对应的梯度关系;将第一期望值和第二期望值之间的梯度关系确定为期望偏差。In some embodiments, a gradient relationship corresponding to the first expected value and the second expected value is determined; the gradient relationship between the first expected value and the second expected value is determined as the expected deviation.
示意性的,通过分析第一期望值与第二期望值之间的梯度关系来确定演员网络的参数调整方向,其中,梯度关系的确定方式具体可参考公式二:Illustratively, the parameter adjustment direction of the actor network is determined by analyzing the gradient relationship between the first expected value and the second expected value, wherein the specific method of determining the gradient relationship can refer to formula 2:
公式二: Formula two:
其中,ω(Zi|G)指第一期望值,b(G)指第二期望值,指梯度权重。Among them, ω(Z i |G) refers to the first expected value, b(G) refers to the second expected value, refers to the gradient weight.
步骤704,基于期望偏差对演员网络进行训练,得到目标策略模型。Step 704: Train the actor network based on the expected deviation to obtain a target policy model.
本实施例中,通过上述公式二确定第一期望值和第二期望值对应的期望偏差,当第一期望值与第二期望值越接近时,说明演员网络的参数准确度越高,当第一期望值大于第二期望值时,将梯度权重以第一期望值为正方向,调整演员网络的训练方向;当第一期望值小于第二期望值时,将梯度权重以第一期望值为负方向,调整演员网络的训练方向,最终得到目标策略模型。In this embodiment, the expected deviation corresponding to the first expected value and the second expected value is determined by the above formula 2. When the first expected value is closer to the second expected value, it means that the parameter accuracy of the actor network is higher. When the first expected value is greater than the second expected value When the expected value is two, the gradient weight is set to the positive direction of the first expected value, and the training direction of the actor network is adjusted; when the first expected value is less than the second expected value, the gradient weight is set to the negative direction of the first expected value, and the training direction of the actor network is adjusted. Finally, the target policy model is obtained.
步骤705,基于第一期望值与第二期望值,对候选预估模型的模型参数进行调整,得到期望预估模型。
其中,期望预估模型用于确定第二期望值。Wherein, the expectation prediction model is used to determine the second expectation value.
示意性的,通过确定第一期望值与第二期望值对应的均方误差值,对候选预估模型的模型参数进行调整,其中,均方误差值的计算方式具体可参考公式三:Illustratively, by determining the mean square error value corresponding to the first expected value and the second expected value, the model parameters of the candidate prediction model are adjusted, wherein the calculation method of the mean square error value can refer to Formula 3:
公式三: Formula three:
其中,ω(Zi|G)指第一期望值,b(G)指第二期望值,Lc表示均方误差值,均方误差值越小,表示候选预估模型的模型参数精度越高。Among them, ω(Z i |G) refers to the first expected value, b(G) refers to the second expected value, and L c represents the mean square error value. The smaller the mean square error value, the higher the accuracy of the model parameters of the candidate prediction model.
值得注意的是,在对演员网络进行训练的过程中,评论家网络也在进行训练,最终目标策略模型中仅涉及演员网络。It is worth noting that in the process of training the actor network, the critic network is also being trained, and only the actor network is involved in the final target policy model.
示意性的,请参考图8,其示出了本申请一个示例性实施例提供的目标策略模型训练过程示意图,如图8所示,获取样本数据集810,样本数据集810中包含至少两个样本类型实体对应的地理位置坐标(图中示出了t次训练所需要的t个样本数据集),根据样本数据集810确定样本类型实体对应的样本历史中心,根据样本历史中心确定样本数据集810中各样本类型实体对应的中心选择状态820,也即,中心选择状态820中包含被选中作为样本历史中心的样本类型实体,以及未被选中作为样本历史中心的样本类型实体,其中,被选中与未被选中对应为两种不同的状态。Illustratively, please refer to FIG. 8 , which shows a schematic diagram of the training process of the target policy model provided by an exemplary embodiment of the present application. As shown in FIG. 8 , a
提取样本数据集810中样本类型实体的样本业务分布对应的参数特征,将样本数据集810中的样本位置关系、参数特征以及中心选择状态820输入演员网络830中(样本位置关系和参数特征的输入过程未展示),输出得到样本候选中心840。Extract the parameter features corresponding to the sample business distribution of the sample type entities in the
将演员网络输出得到的样本候选中心进行聚合,生成样本候选簇,结合样本候选中心对应的样本业务分布和样本位置关系,对样本候选簇进行聚合程度分析,获取样本候选簇对应的聚合分析结果,作为第一期望值。如图8所示,通过样本候选中心840确定对应的样本候选簇850,根据样本候选簇850确定其第一期望值。Aggregate the sample candidate centers output by the actor network to generate sample candidate clusters, combine the sample business distribution and sample location relationship corresponding to the sample candidate centers, perform aggregation degree analysis on the sample candidate clusters, and obtain the aggregation analysis results corresponding to the sample candidate clusters. as the first expected value. As shown in FIG. 8 , the corresponding
将样本数据集810输入候选预估模型860,输出得到第二期望值,其中,通过候选预估模型中包含的评论家网络对样本数据集810进行期望预估,输出得到的预估结果作为第二期望值。通过第一期望值与第二期望值确定期望偏差,用于对演员网络830进行训练,最终得到目标策略模型。Input the
综上所述,本申请实施例提供的区域规划方法,通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体对应的相关业务信息,能够满足不同业务需求下的区域规划方案,从而提高区域规划的准确度。To sum up, in the regional planning method provided by the embodiments of the present application, by analyzing the geographic location coordinates of the target type entities in the geographical location, the entity location relationship and entity business distribution corresponding to each target type entity are determined, and the target type entities are analyzed. In the process of location analysis, the entity business distribution and entity location relationship are combined, so as to use the candidate center for dividing the range of candidate regions, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, Therefore, in the process of determining the candidate center in the regional planning, the relevant business information corresponding to the entity of the target type can be combined, and the regional planning scheme under different business requirements can be satisfied, thereby improving the accuracy of the regional planning.
本实施例中,通过在训练过程中加入候选预估模型对评论家网络进行训练,在对演员网络进行训练的过程中也训练评论家网络,能够提高演员网络的参数精度,得到的目标策略模型准确度也更高。In this embodiment, the critic network is trained by adding a candidate prediction model in the training process, and the critic network is also trained in the process of training the actor network, which can improve the parameter accuracy of the actor network, and the obtained target strategy model Accuracy is also higher.
示意性的,请参考图9,其示出了本申请一个示例性实施例提供的区域规划方法的流程图。即,图9对区域规划方法在商家配送场景下进行训练的详细说明,该方法包括如下步骤:Illustratively, please refer to FIG. 9 , which shows a flowchart of a regional planning method provided by an exemplary embodiment of the present application. That is, FIG. 9 is a detailed description of the training of the regional planning method in the merchant delivery scenario, and the method includes the following steps:
910,数据准备。910, data preparation.
本实施例中,将一个城市中的各商家集合作为二维平面上的位置点集合,也即,训练过程是对一个城市内的商家进行区域规划,单个商家作为样本类型实体,获取各商家对应的地理位置坐标。In this embodiment, the set of merchants in a city is used as the set of location points on a two-dimensional plane, that is, the training process is to carry out regional planning for the merchants in a city, and a single merchant is used as a sample type entity to obtain the corresponding information of each merchant. geographic coordinates.
示意性的,根据每个商家对应的地理位置坐标,确定城市内各商家对应的样本数据集,其中,样本数据集中包括商家对应的样本地理位置关系和样本业务分布,样本地理位置关系包括两个商家之间对应的路线距离,样本业务分布每个商家在历史时间段内的订单数量,根据配送业务确定的区域规划范围内规划区域最终对应的外包轮廓,商家对应的配送难度,管理层对于商家预设的订单期望数量等,在此不做限定,确定样本数据集中包含的各数据对应的特征表示,作为环境特征表示集(G)。Illustratively, according to the geographic location coordinates corresponding to each business, a sample data set corresponding to each business in the city is determined, wherein the sample data set includes a sample geographic location relationship and a sample business distribution corresponding to the business, and the sample geographic location relationship includes two. Corresponding route distance between merchants, sample business distribution of the number of orders of each merchant in the historical time period, the final outsourcing outline corresponding to the planning area within the regional planning range determined by the distribution business, the distribution difficulty corresponding to the merchant, the management’s opinion on the merchant The preset expected quantity of orders, etc., is not limited here, and the feature representation corresponding to each data included in the sample data set is determined as the environmental feature representation set (G).
预设单次训练过程中对应的样本数量B,以及预设训练次数E,以确定对城市进行区域规划时,规划区域对应的数量N。The number B of samples corresponding to a single training process and the number of preset training times E are preset to determine the number N corresponding to the planning area when planning the city.
920,模型初始化。920, the model is initialized.
本实施例中,在开始训练的过程中,对各项参数进行初始化,包括对环境特征集(G)进行初始化,对演员网络(θ)以及评论家网络(θc)进行初始化,确定商家对应的参数特征,规划区域的数量以及不同状态下的第二期望值。其中,评论家网络为期望预估模型中包含的网络。In this embodiment, in the process of starting training, initialize various parameters, including initializing the environmental feature set (G), initializing the actor network (θ) and the critic network (θ c ), and determining the corresponding merchants. The parameter characteristics of , the number of planning areas and the second expected value in different states. Among them, the critic network is the network included in the expectation prediction model.
其中,演员网络中包含两个卷积神经网络以及一个长短期记忆网络,演员网络中包含两层卷积神经网络和两个全接连层。Among them, the actor network includes two convolutional neural networks and a long short-term memory network, and the actor network includes two layers of convolutional neural networks and two fully connected layers.
930,确定样本候选中心以及第一期望值。930. Determine the sample candidate center and the first expected value.
本实施例中,训练过程包括对每一次训练过程中的每个样本确定其对应的样本候选中心。确定城市内对应的作为样本历史中心的商家,将其标记为选中状态,其余商家标记为未选中状态,将其作为中心特征。In this embodiment, the training process includes determining the corresponding sample candidate center for each sample in each training process. Determine the corresponding merchants in the city as sample historical centers, mark them as selected, and mark the rest of the merchants as unselected, and use them as central features.
将中心特征以及环境特征表示输入演员网络,输出得到样本候选中心(Zi|G),根据公式一确定样本候选中心对应的第一期望值(ω(Zi|G))。The center feature and the environment feature are input into the actor network, and the sample candidate center (Z i |G) is obtained from the output, and the first expected value (ω(Z i |G)) corresponding to the sample candidate center is determined according to formula 1.
将样本候选中心以及样本候选中心对应的第一期望值进行存储。The sample candidate center and the first expected value corresponding to the sample candidate center are stored.
940,确定样本数据集对应的第二期望值。940. Determine a second expected value corresponding to the sample data set.
将各商家对应的样本数据集输入评论家网络后,输出得到样本数据集对应的第二期望值(b|G)。After inputting the sample data set corresponding to each merchant into the critic network, the output obtains the second expected value (b|G) corresponding to the sample data set.
950,模型参数调整并更新。950, the model parameters are adjusted and updated.
在确定第一期望值与第二期望值后,根据公式二确定第一期望值与第二期望值对应的梯度关系,根据梯度关系对演员网络进行调整,并更新参数,得到目标策略模型。After the first expected value and the second expected value are determined, the gradient relationship corresponding to the first expected value and the second expected value is determined according to formula 2, the actor network is adjusted according to the gradient relationship, and the parameters are updated to obtain the target strategy model.
根据公式三确定第一期望值与第二期望值对应的均方误差值,对候选预估模型进行参数调整,并更新参数。According to formula 3, the mean square error value corresponding to the first expected value and the second expected value is determined, the parameters of the candidate prediction model are adjusted, and the parameters are updated.
综上所述,本申请实施例提供的区域规划方法,通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体对应的相关业务信息,能够满足不同业务需求下的区域规划方案,从而提高区域规划的准确度。To sum up, in the regional planning method provided by the embodiments of the present application, by analyzing the geographic location coordinates of the target type entities in the geographical location, the entity location relationship and entity business distribution corresponding to each target type entity are determined, and the target type entities are analyzed. In the process of location analysis, the entity business distribution and entity location relationship are combined, so as to use the candidate center for dividing the range of candidate regions, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, Therefore, in the process of determining the candidate center in the regional planning, the relevant business information corresponding to the entity of the target type can be combined, and the regional planning scheme under different business requirements can be satisfied, thereby improving the accuracy of the regional planning.
本方案带来的有益效果还包括:The beneficial effects of this program also include:
1.通过将实体进行聚类确定候选中心的方式转变为一个序列决策方案,仅根据历史状态判断本次训练结果;1. The method of determining candidate centers by clustering entities is transformed into a sequential decision-making scheme, and the training result is judged only according to the historical state;
2.确定第二期望值的方式可以融合不同的业务需要,能更好结合实际情况,适配业务的发展;2. The way of determining the second expected value can integrate different business needs, better combine the actual situation, and adapt to the development of the business;
3.通过构建训练模型能够提高模型训练效率。3. The model training efficiency can be improved by constructing a training model.
图10是本申请一个示例性实施例提供的区域规划装置的结构框图,如图10所示,该装置包括:FIG. 10 is a structural block diagram of an apparatus for regional planning provided by an exemplary embodiment of the present application. As shown in FIG. 10 , the apparatus includes:
获取模块1010,用于获取地理位置集,所述地理位置集中包含候选区域范围内的至少两个目标类型实体对应的地理位置坐标:The obtaining
确定模块1020,用于基于所述地理位置坐标,确定所述至少两个目标类型实体对应的环境数据集,所述环境数据集用于指示所述至少两个目标类型实体对应的实体位置关系和实体业务分布所述实体业务分布用于指示所述目标类型实体的业务在时空上的分布情况;The determining
分析模块1030,用于结合所述实体业务分布和所述实体位置关系对所述至少两个目标类型实体进行位置分析,得到所述候选区域范围内的候选中心;An
划分模块1040,还用于基于所述候选中心对所述候选区域范围进行区域划分,得到所述至少两个目标类型实体在候选区域范围内的区域规划结果。The
在一个可选的实施例中,所述分析模块1030,包括:In an optional embodiment, the
输出单元1031,用于将所述环境数据集输入目标策略模型,输出得到所述候选中心,所述目标策略模型用于结合所述实体业务分布和所述实体位置关系对所述至少两个目标类型实体进行位置分析。The output unit 1031 is configured to input the environment data set into a target strategy model, and output to obtain the candidate center, and the target strategy model is used to combine the entity business distribution and the entity location relationship with the at least two targets. Type entity for location analysis.
在一个可选的实施例中,所述至少两个目标类型实体包括商家实体,所述环境数据集用于指示所述商家实体的实体位置关系,和所述商家的业务分布;In an optional embodiment, the at least two target type entities include a merchant entity, and the environment data set is used to indicate the entity location relationship of the merchant entity and the business distribution of the merchant;
所述输出单元1031,还用于基于所述环境数据集,确定所述候选区域范围的历史区域中心,所述历史区域中心包括历史时间段内作为划分得到的区域中心的商家实体;通过所述目标策略模型,对所述历史区域中心和所述环境数据集进行分析,输出得到所述候选中心。The output unit 1031 is further configured to determine the historical area center of the candidate area based on the environment data set, where the historical area center includes the business entity as the divided area center in the historical time period; The target strategy model analyzes the historical regional center and the environmental data set, and outputs the candidate center.
在一个可选的实施例中,所述目标策略模型中包括强化学习架构中的演员网络,所述演员网络用于进行中心预测,所述演员网络中包括编解码架构中的编码器和解码器;In an optional embodiment, the target policy model includes an actor network in a reinforcement learning architecture, the actor network is used for center prediction, and the actor network includes an encoder and a decoder in an encoder-decoder architecture ;
所述输出单元1031,还用于基于所述环境数据集,确定所述候选区域范围的历史区域中心,所述历史区域中心包括历史时间段内作为划分得到的区域中心的目标类型实体;将所述历史区域中心和所述环境数据集输入所述演员网络的所述编码器,输出得到编码特征和中心特征集合;通过所述解码器对所述编码特征进行解码分析,得到解码特征;基于所述解码特征和所述中心特征集合得到所述候选中心。The output unit 1031 is further configured to determine the historical area center of the candidate area based on the environmental data set, where the historical area center includes the target type entity as the divided area center in the historical time period; The historical area center and the environmental data set are input into the encoder of the actor network, and the output obtains the encoding feature and the center feature set; the encoding feature is decoded and analyzed by the decoder to obtain the decoding feature; The candidate center is obtained from the decoded feature and the center feature set.
在一个可选的实施例中,所述目标策略模型中包括强化学习架构中的演员网络,所述演员网络用于进行中心预测;In an optional embodiment, the target policy model includes an actor network in a reinforcement learning architecture, and the actor network is used for center prediction;
所述装置还包括:The device also includes:
获取模块1010,还用于获取样本数据集,所述样本数据集用于指示至少两个样本类型实体对应的样本位置关系和样本业务分布;The obtaining
预测模块1050,用于通过所述演员网络对所述样本数据集进行预测,得到所述至少两个样本类型实体的样本候选中心;A
评估模块1060,用于通过所述强化学习架构中的评论家网络对所述样本候选中心进行评估,得到期望偏差,所述期望偏差用于指示所述样本候选中心的预测效果;An
训练模块1070,用于基于所述期望偏差对所述演员网络进行训练,得到所述目标策略模型。A
在一个可选的实施例中,所述评估模块1060,还用于将所述样本候选中心代入预设期望函数,得到所述样本候选中心对应的第一期望值,所述第一期望值用于指示所述样本候选中心之间的聚合关系;通过所述评论家网络对所述样本数据集进行期望分析,得到所述样本数据集对应的第二期望值,所述第二期望值用于指示所述样本数据集对应的预估聚合关系;基于所述第一期望值和所述第二期望值得到所述期望偏差。In an optional embodiment, the
在一个可选的实施例中,所述评估模块1060,还用于确定所述第一期望值与所述第二期望值对应的梯度关系;将所述第一期望值和所述第二期望值之间的梯度关系确定为所述期望偏差。In an optional embodiment, the
在一个可选的实施例中,所述评估模块1060,还用于将所述样本数据集输入候选预估模型,所述候选预估模型中包括所述评论家网络,所述候选预估模型为预先训练得到的机器学习模型;通过所述评论家网络对所述样本数据集进行期望预估,输出得到所述第二期望值。In an optional embodiment, the
在一个可选的实施例中,所述装置还包括:In an optional embodiment, the apparatus further includes:
调整模块1080,用于基于所述第一期望值与所述第二期望值,对所述候选预估模型的模型参数进行调整,得到期望预估模型,所述期望预估模型用于确定所述第二期望值。The adjustment module 1080 is configured to adjust the model parameters of the candidate prediction model based on the first expected value and the second expected value to obtain an expected prediction model, and the expected prediction model is used to determine the first prediction model. Two expectations.
在一个可选的实施例中,所述分析模块1030,还用于对所述候选中心进行质心定位,得到所述候选区域范围对应的区域中心;基于所述区域中心,确定所述至少两个目标类型实体在所述候选区域范围内对应的实体聚类结果;将所述实体聚类结果作为所述区域规划结果。In an optional embodiment, the
综上所述,本申请实施例提供的区域规划装置,通过对地理位置集中目标类型实体的地理位置坐标进行分析,确定各目标类型实体对应的实体位置关系以及实体业务分布,对目标类型实体进行位置分析的过程中结合实体业务分布以及实体位置关系,从而用于对候选区域范围进行划分的候选中心,最终得到区域规划结果,即,通过确定目标类型实体对应的实体位置关系和实体业务分布,从而能够在区域规划确定候选中心的过程中结合目标类型实体除地理位置坐标以外的其他参数信息,从而提高区域规划的准确度。To sum up, the regional planning device provided by the embodiment of the present application determines the entity location relationship and entity business distribution corresponding to each target type entity by analyzing the geographic location coordinates of the target type entities in the geographical location concentration, and performs the analysis on the target type entities. In the process of location analysis, the entity business distribution and entity location relationship are combined, so as to use the candidate center for dividing the range of candidate regions, and finally obtain the regional planning result, that is, by determining the entity location relationship and entity business distribution corresponding to the target type entity, Therefore, other parameter information of the target type entity other than the geographic location coordinates can be combined in the process of determining the candidate center in the regional planning, thereby improving the accuracy of the regional planning.
需要说明的是:上述实施例提供的区域规划装置,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的区域规划装置与区域规划方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the regional planning device provided in the above-mentioned embodiments is only illustrated by the division of the above-mentioned functional modules. In practical applications, the above-mentioned functions can be allocated to different functional modules according to needs. It is divided into different functional modules to complete all or part of the functions described above. In addition, the regional planning apparatus and the regional planning method embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
请参考图12,其示出了本申请一个实施例提供的计算机设备1200的结构框图。该计算机设备1200可以是上文介绍的电子设备,用于实施上述区域规划方法。Please refer to FIG. 12 , which shows a structural block diagram of a
通常,计算机设备1200包括有:处理器1201和存储器1202。Generally,
处理器1201可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1201可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(FieldProgrammable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1201也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central ProcessingUnit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1201可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器1201还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。The
存储器1202可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1202还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。
本领域技术人员可以理解,图12中示出的结构并不构成对计算机设备1200的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。Those skilled in the art can understand that the structure shown in FIG. 12 does not constitute a limitation on the
在示例中实施例中,还提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有计算机程序。所述计算机程序经配置以由一个或者一个以上处理器执行,以实现上述区域规划方法。In an example embodiment, there is also provided a computer device comprising a processor and a memory having a computer program stored in the memory. The computer program is configured to be executed by one or more processors to implement the area planning method described above.
在示例性实施例中,还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序在被计算机设备的处理器执行时实现上述区域规划方法。In an exemplary embodiment, a computer-readable storage medium is also provided, and a computer program is stored in the storage medium, and the computer program implements the above-mentioned regional planning method when executed by a processor of a computer device.
可选地,上述计算机可读存储介质可以是ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随机存取存储器)、CD-ROM(Compact Disc Read-OnlyMemory,只读光盘)、磁带、软盘和光数据存储设备等。Optionally, the above-mentioned computer-readable storage medium can be ROM (Read-Only Memory, read-only memory), RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, read-only CD-ROM) , tapes, floppy disks and optical data storage devices.
在示例性实施例中,还提供了一种计算机程序产品,当所述计算机程序产品在计算机设备上运行时,使得计算机设备执行如上述区域规划方法。In an exemplary embodiment, there is also provided a computer program product which, when executed on a computer device, causes the computer device to perform the area planning method as described above.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210351294.7A CN114943407A (en) | 2022-04-02 | 2022-04-02 | Area planning method, device, equipment, readable storage medium and program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210351294.7A CN114943407A (en) | 2022-04-02 | 2022-04-02 | Area planning method, device, equipment, readable storage medium and program product |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114943407A true CN114943407A (en) | 2022-08-26 |
Family
ID=82907343
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210351294.7A Pending CN114943407A (en) | 2022-04-02 | 2022-04-02 | Area planning method, device, equipment, readable storage medium and program product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114943407A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116030079A (en) * | 2023-03-29 | 2023-04-28 | 北京嘀嘀无限科技发展有限公司 | Geofence partitioning method, device, computer equipment and storage medium |
| CN118229177A (en) * | 2024-02-29 | 2024-06-21 | 广东工业大学 | An intelligent logistics planning method based on deep reinforcement learning |
| WO2026113938A1 (en) * | 2024-11-29 | 2026-06-04 | 华为技术有限公司 | Communication method and communication apparatus |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109598430A (en) * | 2018-11-28 | 2019-04-09 | 拉扎斯网络科技(上海)有限公司 | Distribution range generation method, device, electronic device and storage medium |
| CN111062105A (en) * | 2019-11-07 | 2020-04-24 | 郑州大学 | Region planning design method based on reinforcement learning |
| CN114049057A (en) * | 2021-09-26 | 2022-02-15 | 苏州优巨引擎智能数字科技有限公司 | An Aggregate Distribution Planning Method Based on Merchant Integration |
-
2022
- 2022-04-02 CN CN202210351294.7A patent/CN114943407A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109598430A (en) * | 2018-11-28 | 2019-04-09 | 拉扎斯网络科技(上海)有限公司 | Distribution range generation method, device, electronic device and storage medium |
| CN111062105A (en) * | 2019-11-07 | 2020-04-24 | 郑州大学 | Region planning design method based on reinforcement learning |
| CN114049057A (en) * | 2021-09-26 | 2022-02-15 | 苏州优巨引擎智能数字科技有限公司 | An Aggregate Distribution Planning Method Based on Merchant Integration |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN116030079A (en) * | 2023-03-29 | 2023-04-28 | 北京嘀嘀无限科技发展有限公司 | Geofence partitioning method, device, computer equipment and storage medium |
| CN118229177A (en) * | 2024-02-29 | 2024-06-21 | 广东工业大学 | An intelligent logistics planning method based on deep reinforcement learning |
| CN118229177B (en) * | 2024-02-29 | 2026-04-17 | 广东工业大学 | A Deep Reinforcement Learning-Based Intelligent Logistics Planning Method |
| WO2026113938A1 (en) * | 2024-11-29 | 2026-06-04 | 华为技术有限公司 | Communication method and communication apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Kapp et al. | Generative models for synthetic urban mobility data: A systematic literature review | |
| CN112861972B (en) | Site selection method, device, computer equipment and media for exhibition area | |
| Miao et al. | Balancing quality and budget considerations in mobile crowdsourcing | |
| Bao et al. | Spatial analysis of bikeshare ridership with smart card and POI data using geographically weighted regression method | |
| Uddin et al. | A framework to measure transit-oriented development around transit nodes: Case study of a mass rapid transit system in Dhaka, Bangladesh | |
| CN114357105A (en) | Pre-training method and model fine-tuning method of geographic pre-training model | |
| US11816179B2 (en) | Mobility and transportation need generator using neural networks | |
| CN110781415A (en) | Interest point recommendation method, device, equipment and medium | |
| CN120821893A (en) | A method for predicting urban pedestrian flow based on spatiotemporal dataset of urban points of interest | |
| CN115456691A (en) | Method, device, electronic device and storage medium for recommending offline advertising space | |
| CN115456266A (en) | Journey planning method, device, equipment and storage medium | |
| Cao et al. | Target tracking via crowdsourcing: A mechanism design approach | |
| CN114912717B (en) | Smart city guarantee housing application risk assessment method and system based on Internet of things | |
| Tang et al. | FedGST: An efficient federated graph neural network for spatio-temporal PoI recommendation | |
| Murray | Evolving location analytics for service coverage modeling | |
| Zou et al. | An innovative GPS trajectory data based model for geographic recommendation service | |
| CN110263250B (en) | A method and device for generating a recommendation model | |
| CN117079148A (en) | Identification methods, devices, equipment and media for urban functional areas | |
| Alami et al. | Weighted CART with spatially split rules: A new kernel-based approach in spatial classification trees | |
| CN110276387A (en) | A kind of generation method and device of model | |
| Deng et al. | A novel framework for joint learning of city region partition and representation | |
| US12614450B2 (en) | Method and apparatus for spatial aggregation for location-based services | |
| CN115330069A (en) | Information processing method and device | |
| CN114969577A (en) | Interest point recommendation method and interest point recommendation model training method and device | |
| Irawan et al. | Analyzing tourist's movement in sarbagita metropolitan area based on geotagged photo in Flickr |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |



