The present disclosure relates to a policy creation apparatus, a control apparatus, a policy creation method, and a non-transitory computer readable medium storing a policy creation program, and more specifically, to a policy creation apparatus configured to create policies, a control apparatus, a policy creation method, and a non-transitory computer readable medium storing a policy creation program.
Workers in processing plants, etc. are able to manufacture high-quality products by familiarizing themselves with work procedures for creating products from materials. In the work procedures, for example, the workers process the materials using processing machines. Work procedures for manufacturing good products are accumulated as know-how for each worker. In order to transfer the know-how from workers who are familiar with the work procedures to other workers, however, skilled workers need to teach how to use the processing machines, amounts of materials, timings to put the materials into the processing machines, etc. to other workers. Therefore, the transfer of know-how requires a long period of time and a lot of work.
As illustrated in Non-Patent Literature 1, as a method of learning the above know-how by machine learning, a reinforcement learning method may be used. In the reinforcement learning method, policies indicating the know-how are expressed by a form of models. In Non-Patent Literature 1, these models are expressed by a neural network.
However, it is difficult for a user to understand how the know-how has been expressed. The reason therefor is that, since the reinforcement learning method illustrated in Non-Patent Literature 1 expresses the policies indicating the know-how by a neural network, it is difficult for the user to understand the models created by the neural network.
The present disclosure has been made in order to solve the aforementioned problem and an object of the present disclosure is to provide a policy creation apparatus, a control apparatus, a policy creation method, and a policy creation program capable of creating policies with high quality and high visibility.
A policy creation apparatus according to the present disclosure includes: policy creation means for creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state; action determination means for determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy; policy evaluation means for determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and policy selection means for selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
Further, a policy creation method according to the present disclosure includes: creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state; determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy; and determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
Further, a policy creation program according to the present disclosure causes a computer to achieve: a function of creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state; a function of determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy; a function of determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and a function of selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
According to the present disclosure, it is possible to provide a policy creation apparatus, a control apparatus, a policy creation method, and a policy creation program capable of creating policies with high quality and high visibility.
Hereinafter, with reference to the drawings, example embodiments will be described. For the sake of clarification of the description, the following descriptions and the drawings are omitted and simplified as appropriate. Further, throughout the drawings, the same components are denoted by the same reference symbols and overlapping descriptions are omitted as appropriate.
With reference to
The policy creation apparatus 101 executes processing in, for example, a control apparatus 150. The control apparatus 150 includes the policy creation apparatus 101 and a controller 151. The controller 151 executes control regarding a target 170 in accordance with an action determined according to a policy created by the policy creation apparatus 101.
In the policy creation apparatus 101, the policy creation unit 102 creates a policy for determining an action to be taken regarding the target 170. The policy creation unit 102 generates policy information, which is information indicating the policy. The details of the policy will be described later with reference to
When, for example, the target 170 is a vehicle such as a self-driving vehicle, the action determination unit 103 acquires, for example, observation values (feature amounts) such as the number of rotations of an engine, the velocity of the vehicle, a surrounding environment and the like. The action determination unit 103 determines an action by executing processing that will be described later with reference to
Further, when, for example, the target 170 is a power generator, the action determination unit 103 acquires, for example, observation values (feature amounts) such as the number of rotations of a turbine, the temperature of an incinerator, or the pressure of the incinerator. The action determination unit 103 determines an action by executing processing that will be described later with reference to
In the following description, the kinds of the observation (velocity, the number of rotations etc.) may be expressed as feature parameters (or feature amounts) and values observed regarding these kinds may be expressed as feature parameter values (or values of the feature amounts). The policy creation apparatus 101 acquires action evaluation information indicating the level of the quality of the action that has been determined. The policy creation apparatus 101 creates a high-quality policy based on the acquired action evaluation information. The policy indicates information that is a basis for determining the action to be taken regarding the target 170 when the target 170 is in one state, as illustrated in
For example, in the policy evaluation information illustrated in
It is assumed, in the following description, that the larger the value of the evaluation information is, the higher the quality of the corresponding policy becomes, whereas the smaller the value of the evaluation information is, the lower the quality of the corresponding policy becomes for the sake of convenience of description. In this case, the policy evaluation information illustrated in
Referring next to
The policy creation apparatus 101 creates, for example, a policy for determining a series of actions that may achieve the state VI, starting from the state I (illustrated in
Referring next to
In the tree structure illustrated in
It is further assumed, for the sake of convenience of description, that the state of the target 170 is expressed by two feature parameters x and y. The feature parameter x indicates, for example, the position of the target 170. The feature parameter y indicates, for example, the velocity of the target 170. The number of feature parameters indicating the state of the target 170 may be other than two; it may be one or three or larger. Further, the policy information does not necessarily include all the feature parameters observed regarding the state of the target 170 and may include only some of the observed feature parameters. The policy information may include, for example, only the feature parameter x.
As illustrated in
It is further assumed, for example, that the target 170 is in a state in which the value of the feature parameter x is 3 and the value of the feature parameter y is 1. In this case, the policy creation apparatus 101 receives each of the feature parameter values (x=3, y=1) indicating this state. Next, the policy creation apparatus 101 determines whether the condition “x<2” is established in the root node. In this case, since “x>2” (NO in the condition “x<2”), the policy creation apparatus 101 determines whether or not the condition “y<1” is established in the intermediate node. In this case, since “y=1” (NO in the condition “y<1”), the policy creation apparatus 101 determines the action “pull”.
In other words, in the respective non-terminal nodes (e.g., “x<2”, “y<1”, and “y<2”) in the tree structure, conditions for determining the state are arranged. Further, in the leaf nodes (terminal nodes) in the tree structure, actions in a case in which the target 170 is in a state in accordance with these conditions are arranged. Therefore, when the number of actions is a predetermined number, the tree structure indicating the policy for determining this action includes a predetermined number of rules. The “rule” here means a set of conditions to reach one action. In the example shown in
Note that, in the tree structure, the distances from the root node (in this example, “x<2”) to the respective leaf nodes are not necessarily constant and may be different from one another. Further, the policy information may not be necessarily expressed using a tree structure and may include at least one rule for determining the action to be taken regarding the target 170, as illustrated in
Further, the action to be taken regarding the target 170 may affect the state of this target 170. Therefore, since the target 170 is affected by this action, the state of the target 170 may change from a first state to a second state. In this case, it can also be regarded that a condition for determining whether to execute an action indicates the first state in the policy information as described above. Further, since the second state occurs by applying an action while the target 170 is in the first state, information indicating the second state (i.e., the next state of the target 170) may be arranged in the leaf nodes instead of arranging information indicating the actions in the leaf nodes in the policy information.
Further, as illustrated in
Besides the rules illustrated in
Referring next to
Next, the action determination unit 103 determines an action in accordance with the policies created by the policy creation unit 102 and the policy evaluation unit 104 evaluates the qualities of the policies based on the quality of the action that has been determined (Step S103). The policy evaluation unit 104 evaluates, regarding each of the policies created by the policy creation unit 102, the quality of the policy. In the processing in Step S103, the policy evaluation unit 104 may determine the quality of the action based on, for example, the quality of a state included in the episode described above with reference to
Next, the policy selection unit 105 selects high-quality policies from among a plurality of policies based on the qualities evaluated by the policy evaluation unit 104 (Step S104). The policy selection unit 105 selects, for example, policies whose quality levels are high from among the plurality of policies. Alternatively, the policy selection unit 105 selects, for example, policies whose qualities are equal to or higher than the average from among the plurality of policies. Alternatively, the policy selection unit 105 selects, for example, policies whose qualities are equal to or higher than a desired quality from among the plurality of policies. Alternatively, the policy selection unit 105 may select a policy whose quality is the highest from among the policies created in the iteration from Steps S101 to S106. The processing of selecting policies is not limited to the above-described example.
Next, the distribution update unit 106 updates the distribution that is a basis for creating the policies in Step S102 (Step S105). The distribution update unit 106 updates the distribution by calculating, regarding each of the parameters included in the policies selected by the policy selection unit 105, for example, the mean and standard deviation of the parameter values. That is, the distribution update unit 106 updates, using policy parameters indicating the policies selected by the policy selection unit 105, a distribution regarding the policy parameters. The policy parameters will be described later.
The iteration processing from Step S101 (loop start) to Step S106 (loop end) is repeated, for example, a given number of times. Alternatively, this iteration processing may be repeated until the qualities of the policies become equal to or larger than a predetermined criterion. By repeatedly executing the processing from Steps S101 to S106, the distribution that is a basis for creating the policies tends to gradually approach a distribution in which observation values regarding the target 170 are reflected. The policies in accordance with the target 170 can thus be created.
The action determination unit 103 may receive observation values indicating the state of the target 170 and determines the action to be taken regarding the target 170 in accordance with the input observation values and the policy whose quality is the highest. The controller 151 may further control the action to be taken regarding the target 170 in accordance with the action determined by the action determination unit 103.
Referring next to
The policy creation unit 102 receives the initial state of the policy as illustrated in
Further, the policy creation unit 102 creates a policy illustrated in
For the sake of convenience of description, as policy parameters indicating a policy, parameters indicating actions (states) are denoted by θu, parameters indicating feature amounts in conditions are denoted by θφ and parameters indicating determination criteria regarding the feature amounts in the conditions are denoted by θv. The policy creation unit 102 refers to the parameters θφ, θv, and θu in turn in accordance with the processing shown in
Likewise, the policy illustrated in
Incidentally, the policy creation unit 102 provides values of the policy parameters (the parameters θφ, θv, and θu) in accordance with one distribution (e.g., probability distribution) in processing of S111, S112, and S113 that will be described later. The distribution that the policy parameters follow may be, for example, a Gaussian distribution. Alternatively, the distribution that the policy parameters follow may not be necessarily a Gaussian distribution and may instead be other distributions such as a uniform distribution, a binomial distribution, or a multinomial distribution. Further, the distributions regarding the respective policy parameters may not be the same distribution and may be distributions different from one another for each policy parameter. For example, the distribution the parameter θφ follows and the distribution the parameter θv follows may be different from each other. Alternatively, the distributions regarding the respective policy parameters may be distributions whose mean values and standard deviations are different from each other. That is, the distribution is not limited to the above-described examples. It is assumed, in the following description, that each policy parameter follows a Gaussian distribution.
Next, processing of calculating the values of the respective policy parameters in accordance with one distribution will be described. For the sake of convenience of description, it is assumed that the distribution regarding one policy parameter is a Gaussian distribution with mean μ and standard deviation σ, where μ denotes a real number and σ denotes a positive real number. Further, μ and σ may be different for each policy parameter or may be the same. The policy creation unit 102 calculates values of the policy parameters (policy parameter values) in accordance with the Gaussian distribution in the processing of S111, S112, and S113 that will be described later. The policy creation unit 102 randomly creates, for example, a set of policy parameter values (parameters θφ, θv, and θu) in accordance with the above Gaussian distribution. The policy creation unit 102 calculates, for example, the policy parameter values, using random numbers or pseudo random numbers using a random number seed, in such a way that the policy parameter values follow the Gaussian distribution. In other words, the policy creation unit 102 calculates the random numbers that follow the Gaussian distribution as values of the policy parameters. As described above, by expressing the policy by the policy parameters that follow a predetermined distribution and determining the rule (conditions and actions) in the policy by calculating the respective policy parameters in accordance with the distribution, the policy can be expressed more efficiently.
Each process of the flowchart in
The policy creation unit 102 determines, for example, the feature amounts in the order of tracing the tree structure in the breadth-first order. It is assumed here that the parameter θφ indicating the feature amount in a condition includes (the number of conditions×F) values. In the example of the policy having the tree structure as shown in
Each row of the matrix in the above Expression 1 corresponds to the condition (non-terminal node) and each column corresponds to the kind of the feature amount. Therefore, when a policy is created under a condition of F=5 kinds of feature amounts in the example of the tree structure shown in
The policy creation unit 102 checks, when it determines the feature amount regarding one condition, F parameters that correspond to one condition from the parameters θφ. The policy creation unit 102 then determines the feature amount that corresponds to the parameter θφ from among the values of F parameters θφ that correspond to the above condition in accordance with a certain rule, e.g., a rule that the largest value is selected. When, for example, the value of θφ(1,2) is the largest among the parameters θφ(1,1)−θφ(1,F) of the condition 1 (condition 201) in the above Expression 1, the policy creation unit 102 determines the feature amount that corresponds to θφ(1,2) as a feature amount in the condition 1 (condition 201).
Note that the policy creation unit 102 may select, for example, the feature amount from among the ones with large values (e.g., top 5%, 10% etc.) of parameters θφ indicating the feature amounts from among F kinds of feature amounts. By executing the above processing, a feature amount including a large amount of information can be selected. Therefore, a criterion for efficiently determining the state of the target 170 can be created.
Next, the policy creation unit 102 calculates a threshold indicating the determination criterion regarding the feature amount determined regarding each condition (Step S112 in
θv=[θv(1), . . . ,θv(n), . . . ,θv(2
When a policy is created in the example of the tree structure in
The policy creation unit 102 calculates the determination criterion regarding the feature amount by executing the processing as shown in the following Expression 3 on the calculated value θv.
(Threshold)=(Vmax−Vmin)×g(θv)±Vmin (Expression 3)
The symbol Vmin denotes the minimum value of the values observed regarding the feature amount. The symbol Vmax denotes the maximum value of the values observed regarding the feature amount. The symbol g(x), which is a function that gives a value from 0 to 1 for a real number x, denotes a function that monotonically changes. The symbol g(x), which is also called an activation function, is implemented, for example, by a sigmoid function.
Accordingly, the policy creation unit 102 calculates the value of the parameter θv in accordance with a distribution such as a Gaussian distribution. Then, as shown in Expression 3, the policy creation unit 102 calculates the determination criterion (threshold) regarding the feature amount from a range of observation values regarding the feature amount (in this example, a range from Vmin to Vmax) using the value of the parameter θv.
Next, the policy creation unit 102 determines signs of inequality when the feature amount is determined. The policy creation unit 102 may determine, for example, the directions of the signs of inequality randomly, in a certain direction, or in accordance with a predetermined procedure (e.g., alternately). As a result of the above processing, the policy creation unit 102 calculates the determination criterion regarding the feature amount in each condition. As a result of the execution of the above processing, even in a case in which the situation under which an action regarding the target 170 is taken is not clear, the policy creation unit 102 is able to efficiently search for the threshold included in the determination criterion for determining the state of the target 170. The policy creation unit 102 executes the above processing regarding the feature amounts included in the conditions 201 to 203 (illustrated in
Next, the policy creation unit 102 calculates the action (state) for each condition (rule) (Step S113). In some cases actions are indicated by continuous values, while in the other cases the actions are indicated by discrete values. When actions are indicated by continuous values, the values indicating the actions may be control values of the target 170. When, for example, the target 170 is the inverted pendulum shown in
First, processing when the actions (states) are indicated by continuous values will be described. The policy creation unit 102 calculates, regarding one action (one of the actions 211 to 214 in
θu=[θu(1), . . . ,θu(l), . . . ,θu(2
When the policy is created in the example of the tree structure shown in
The policy creation unit 102 calculates the action value indicating the action regarding one condition (rule) by executing the processing shown in the following Expression 5 on the calculated value θu.
(Action value)=(Umax−Umin)×h(θu)+Umin (Expression 5)
The symbol Umin indicates the minimum value of values indicating one action (state). The symbol Umax indicates the maximum value of values indicating one action (state). The symbols Umin and Umax may be, for example, determined in advance by the user. The symbol h(x), which is a function that gives a value from 0 to 1 for a real number x, indicates a function that monotonically changes. The symbol h(x), which is also called an activation function, may be implemented by a sigmoid function.
Therefore, the policy creation unit 102 calculates the value of the parameter θu in accordance with a distribution such as a Gaussian distribution. Then as shown by Expression 5, the policy creation unit 102 calculates one action value indicating the action in a certain rule from a range of observation values (in this example, a range from Umin to Umax) using the value of the parameter θu. The policy creation unit 102 executes the above processing regarding each of the actions included in the actions 211 to 214 (illustrated in
Note that the policy creation unit 102 may not use a predetermined value for “Umax−Umin” in the above Expression 5. The policy creation unit 102 may determine the maximum action value to be Umax and determine the minimum action value to be Umin from the history of action values regarding the action. Alternatively, when the leaf nodes are each defined by a “state”, the policy creation unit 102 may determine a range of values (state values) indicating the next state in the rule from the maximum value and the minimum value in the history of observation values indicating each state. According to the above processing, the policy creation unit 102 may efficiently determine the action included in the rule for determining the state of the target 170.
Next, processing when the actions (states) are indicated by discrete values will be described. It is assumed, for the sake of convenience of description, that there are A kinds of actions (states) regarding the target 170 (where A is a natural number). That is, it means that there are A kinds of action candidates for a certain rule. The policy creation unit 102 determines, for example, the actions (states) in order from the left end of the leaf nodes (actions 211-214 in
Note that each row of the matrix in the above Expression 6 corresponds to the leaf node (terminal node) and each column corresponds to the kind of the action. Therefore, when a policy of A=3 kinds of actions is created in the example of the tree structure shown in
The policy creation unit 102 checks A parameters that correspond to one leaf node from the parameters θu when the action (condition) in one leaf node is determined. Then the policy creation unit 102 determines the action (state) that corresponds to a certain rule, e.g., a rule that the largest value is selected, from among the parameter values that correspond to this action (state). When, for example, the value of θu(1,2) is the largest in the parameters θu(1,1)−θu(1,A) of the leaf node #1 (action 211) in the above Expression 6, the policy creation unit 102 determines the action that corresponds to θu(1,2) as the action in the leaf node #1 (action 211).
As a result of the processing in Steps S111 to S113 shown in
Referring next to
The action determination unit 103 acquires observation values (state values) observed regarding the target 170. The action determination unit 103 then determines an action in this state for the acquired observation values (state values) in accordance with one of the policies created by the processing shown in
Next, the comprehensive evaluation unit 109 calculates the total value of the evaluation values regarding each of the actions. Specifically, the comprehensive evaluation unit 109 calculates the evaluation value regarding this policy by calculating the total value for a series of actions determined in accordance with this policy (Step S125). Accordingly, the comprehensive evaluation unit 109 calculates the evaluation value regarding the policy for one episode. The comprehensive evaluation unit 109 may create evaluation information in which the evaluation value calculated regarding the policy (i.e., quality of the policy) is associated with the identifier indicating this policy and store the created policy evaluation information in the policy evaluation information storage unit 107.
Note that the policy evaluation unit 104 may calculate the evaluation value of the policy by executing the processing illustrated in
With reference to a specific example, the processing shown in
The action determination unit 103 determines an action that corresponds to a state in accordance with one policy, which is the evaluation target. The controller 151 executes the determined action. Next, the action evaluation unit 108 calculates the evaluation value regarding the action determined by the action determination unit 103. The action evaluation unit 108 calculates, for example, the evaluation value (+1) when the action is fine and the evaluation value (−1) when it is not fine. The action evaluation unit 108 calculates the evaluation value for each action in one episode that includes 200 steps.
In the policy evaluation unit 104, the comprehensive evaluation unit 109 calculates the evaluation value regarding the one policy by calculating the total value of the evaluation values calculated for the respective steps. It is assumed, for example, the policy evaluation unit 104 has calculated the evaluation values as follows regarding the policies 1 to 4.
policy 1: 200
policy 2: −200
policy 3: −40
policy 4: 100
In this case, when, for example, the policy selection unit 105 selects two of the four policies whose evaluation values calculated by the policy evaluation unit 104 are within top 50%, the policy selection unit 105 selects the policies 1 and 4 whose evaluation values are larger than those of the others. That is, the policy selection unit 105 selects high-quality policies from among a plurality of policies (S104 in
The distribution update unit 106 calculates, regarding each of the policy parameters included in the high-quality policies selected by the policy selection unit 105, the mean of the parameter values and standard deviation thereof. The distribution update unit 106 thereby updates a distribution such as a Gaussian distribution (probability distribution) that each policy parameter follows (S105 in
As described above, since the distribution is updated using high-quality policies, the average value μ in the distribution that the policy parameters follow may approach a value that may achieve policies with higher qualities. Further, the standard deviation σ in the distribution that the policy parameters follow may become smaller. Therefore, the width of the distribution may become narrower as the number of times of update increases. Accordingly, the policy creation unit 102 is more likely to calculate policy parameters that express policies with higher evaluation values (higher qualities) by using the updated distribution. In other words, the policy creation unit 102 calculates the policy parameters using the updated distribution, which increases the probability that high-quality policies will be created. Therefore, by repeating the processing as shown in
Note that the action determination unit 103 may specify the identifier indicating the policy having the largest evaluation value (i.e., the highest quality) from the policy evaluation information stored in the policy evaluation information storage unit 107 and determine the action in accordance with the policy indicated by the specified identifier. That is, when creating a plurality of policies again, the policy creation unit 102 may create, for example, (b-1) policies using the updated distribution and extract, as the remaining one policy, a policy whose evaluation value is the largest among the policies created in the past. Then the action determination unit 103 may determine actions for (b-1) policies created using the updated distribution and the policy whose evaluation value is the largest among the polices created in the past. According to the above processing, when a policy whose evaluation value has been previously high is still evaluated relatively highly even after the distribution is updated, this policy can be appropriately selected. Therefore, it becomes possible to create high-quality policies more efficiently.
In the example of the inverted pendulum illustrated in
Further, in the aforementioned examples, the policy evaluation unit 104 evaluates each policy based on each of the states included in an episode. Instead, this policy may be evaluated by predicting a state that may reach in the future by execution of an action and calculating the difference between the predicted state and a desired state. In other words, the policy evaluation unit 104 may evaluate the policy based on the estimated value (or the expected value) of the evaluation value regarding the state determined by executing the action. Further, the policy evaluation unit 104 may calculate, regarding one policy, evaluation values of a policy regarding each episode by iteratively executing the processing shown in
Next, effects (i.e., technical advantages) regarding the policy creation apparatus 101 according to the first example embodiment will be described. With the policy creation apparatus 101 according to the first example embodiment, policies with high quality and high visibility can be created. The reason therefor is that the policy creation apparatus 101 creates policies each including a predetermined number of rules so that these policies conform to the target 170.
Referring to
The horizontal axis in each of
When the dotted line is compared with the polygonal line in
Referring next to
In the case of the example of the inverted pendulum (illustrated in
While the processing in the policy creation apparatus 101 has been described using the term “state of the target 170”, the state may not necessarily be an actual state of the target 170. The state may be, for example, information indicating the result of calculation performed by a simulator that has simulated the state of the target 170. In this case, the controller 151 may be achieved by the simulator.
Next, a second example embodiment will be described.
The policy creation apparatus 201 according to the second example embodiment includes a policy creation unit 202, an action determination unit 203, a policy evaluation unit 204, and a policy selection unit 205. The policy creation unit 202 may be achieved by functions similar to those included in the policy creation unit 102 described with reference to
The policy creation unit 202 creates a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object (i.e., a target) is combined with an action in the state (Step S201). The policy creation unit 202 determines, for example, the condition for determining the state of the target 170 (i.e., the object) and the action in accordance with this condition based on observation values observed regarding the state of the target 170. Alternatively, the policy creation unit 202 may specify, for example, the condition for determining the state of the target 170 (i.e., the object) and the next state that occurs next to the state in accordance with this condition based on the observation values observed regarding the state of the target 170 and determine the action for reaching the specified next state. The policy creation unit 202 creates a rule in which the specified condition is combined with the determined action. Then the policy creation unit 202 creates a plurality of policies each including a predetermined number of rules.
The action determination unit 203 determines, for each of the plurality of policies that have been created by the policy creation unit 202, the action performed while the state of the target 170 (i.e., the object) is changed from the first state to the second state in accordance with a policy (Step S202). The policy evaluation unit 204 determines the quality of the determined action in accordance with the difference between a state between the first state and the second state and a desired state and determines the quality of the policy for each of the plurality of policies based on the determined quality of the action (Step S203). Note that the desired state indicates the state that may be the goal of the target (i.e., the object).
Next, the policy selection unit 205 selects policies that are determined to have high qualities from among the plurality of policies that have been created (Step S204). Specifically, the policy selection unit 205 selects the policy having the highest quality or policies having relatively high qualities (i.e., quality levels are high) from among the plurality of policies. The “policies having high qualities” here may be, for example, policies that are included within the top 5%, 10%, or 15% counting from the highest quality from among the plurality of policies. Further, the “policies having high qualities” may be, for example, top m (m is an integer smaller than b) policies with high quality among b policies.
Next, effects of the policy creation apparatus 201 according to the second example embodiment of the present disclosure will be described. With the policy creation apparatus 201 according to the second example embodiment, policies with high quality and high visibility can be created. The reason therefor is that the policy creation apparatus 201 creates policies each including a predetermined number of rules in such a way that the policies conform to the target (i.e., the object).
A configuration example of hardware resources in a case in which the above-described policy creation apparatus according to each of the example embodiments is implemented using one calculation processing device (information processing apparatus, computer) will be described. Note that the policy creation apparatus according to each of the example embodiments may be physically or functionally implemented by using at least two calculation processing devices. Further, the policy creation apparatus according to each of the example embodiments may be implemented as a dedicated apparatus or may be implemented by a general-purpose information processing apparatus.
The non-volatile storage medium 24 is, for example, a computer-readable Compact Disc or Digital Versatile Disc. Further, the non-volatile storage medium 24 may be a Universal Serial Bus (USB) memory, a Solid State Drive or the like. The non-volatile storage medium 24 allows a related program to be holdable and portable without power supply. The non-volatile storage medium 24 is not limited to the above-described media. Further, a related program may be supplied via the communication IF 27 and a communication network in place of the non-volatile storage medium 24.
The volatile storage device 22, which is a computer-readable device, is able to temporarily store data. The volatile storage device 22 is a memory such as a dynamic random Access memory (DRAM), a static random Access memory (SRAM) or the like.
Specifically, when executing a software program (a computer program: hereinafter simply referred to as “program”) stored in the disk 23, the CPU 21 duplicates the program in the volatile storage device 22 and executes arithmetic processing. The CPU 21 reads out data required for executing the program from the volatile storage device 22. When it is required to display the result of the output, the CPU 21 displays it on the output device 26. When the program is input from the outside, the CPU 21 acquires the program from the input device 25. The CPU 21 interprets and executes the policy creation program (
That is, each of the example embodiments may be achieved also by the above-described policy creation program. Further, it can be understood that each of the example embodiments of the present disclosure can also be achieved with a computer-readable non-volatile storage medium in which the above-described policy creation program is recorded.
Note that the present disclosure is not limited to the above-described embodiments and may be changed as appropriate without departing from the spirit of the present disclosure. For example, in the aforementioned flowchart, the order of the processes (steps) may be changed as appropriate. Further, one or more of the plurality of processes (steps) may be omitted.
Further, in the above-described example embodiments, for each policy parameter, i.e., for each of the components of the parameters θφ, θv, and θu shown in Expressions 1, 2, 4, and 6, values of the respective policy parameters are calculated in accordance with an independent distribution (probability distribution). That is, the distribution update unit 106 independently calculates, for each of the policy parameters, the mean value and standard deviation for distributions that correspond to the respective policy parameters, thereby updating the distributions. However, the example embodiments are not limited to the above configurations. When policy parameters have a correlation, the distribution may be updated using covariance. In this case, a variance-covariance matrix may be applied to Expressions 1, 2, 4, and 6.
As described above, the policy program can be stored and provided to a computer using any type of non-transitory computer readable media. Non-transitory computer readable media include any type of tangible storage media. Examples of non-transitory computer readable media include magnetic storage media (such as flexible disks, magnetic tapes, hard disk drives, etc.), optical magnetic storage media (e.g., magneto-optical disks), CD-Read Only Memory (CD-ROM), CD-R, CD-R/W, and semiconductor memories (such as mask ROM, Programmable ROM (PROM), Erasable PROM (EPROM), flash ROM, Random Access Memory (RAM), etc.). The program may be provided to a computer using any type of transitory computer readable media. Examples of transitory computer readable media include electric signals, optical signals, and electromagnetic waves. Transitory computer readable media can provide the program to a computer via a wired communication line (e.g., electric wires, and optical fibers) or a wireless communication line.
The present disclosure has been described above with reference to the above example embodiments as exemplary examples. However, the present disclosure is not limited to the above-described example embodiments. That is, various aspects that may be understood by those skilled in the art may be applied within the scope of the present disclosure.
The whole or part of the exemplary embodiments disclosed above can be described as, but not limited to, the following supplementary notes.
A policy creation apparatus comprising:
policy creation means for creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state;
action determination means for determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy;
policy evaluation means for determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and
policy selection means for selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
The policy creation apparatus according to Supplementary Note 1, wherein
the policy is expressed by a policy parameter that follows at least one predetermined distribution, and
the policy creation means determines each of the condition and the action in the policy by calculating the value of the policy parameter in accordance with the distribution.
The policy creation apparatus according to Supplementary Note 2, further comprising distribution update means for updating the distribution regarding the policy parameter from the policy parameter selected by the policy selection means,
wherein the policy creation means creates the policy by calculating the value of the policy parameter in accordance with the distribution updated by the distribution update means.
The policy creation apparatus according to Supplementary Note 2 or 3 wherein
the condition in the rule comprises at least some kinds of feature amounts among a plurality of kinds of feature amounts regarding the object and a determination criterion for determining observation values regarding the feature amounts, and
the policy creation means selects the feature amount in the condition based on the policy parameters regarding the feature amounts calculated in accordance with the distribution.
The policy creation apparatus according to Supplementary Note 4, wherein the policy creation means calculates, for each of some kinds of feature amounts, the policy parameter regarding the feature amount and selects the feature amount regarding the policy parameters whose values are high among the calculated policy parameters as the feature amount in the condition.
The policy creation apparatus according to Supplementary Note 4 or 5, wherein the policy creation means calculates the determination criterion regarding the selected feature amount in the condition based on a range of observation values of the feature amount and the policy parameter regarding the determination criterion calculated in accordance with the distribution.
The policy creation apparatus according to any one of Supplementary Notes 2 to 6, wherein the policy creation means calculates the policy parameter regarding the action in the rule in accordance with the distribution and determines the action in the rule based on the calculated policy parameter regarding the action.
The policy creation apparatus according to any one of Supplementary Notes 1 to 7, wherein
the policy creation means creates the policy in accordance with a tree structure composed of terminal nodes and non-terminal nodes different from the terminal nodes,
the conditions are arranged in the non-terminal nodes in the tree structure, and
the actions in accordance with the conditions arranged in the non-terminal nodes leading to the terminal nodes are arranged in the terminal nodes in the tree structure.
The policy creation apparatus according to any one of Supplementary Notes 1 to 8, further comprising policy evaluation information storage means for storing policy evaluation information in which the quality of the policy determined by the policy evaluation means is associated with an identifier indicating the policy, wherein
the policy evaluation means stores the policy evaluation information in which the determined quality of the policy is associated with the identifier of the policy in the policy evaluation information storage means, and
the action determination means selects the identifier associated with the policy having the highest quality from the policy evaluation information stored in the policy evaluation information storage means, and determines the action in accordance with the policy indicated by the selected identifier.
A control apparatus comprising:
the policy creation apparatus according to any one of Supplementary Notes 1 to 9; and
a controller configured to perform control regarding the object in accordance with the action determined by the policy creation apparatus.
A policy creation method comprising:
creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state;
determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy; and
determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and
selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
A non-transitory computer readable medium storing a policy creation program for causing a computer to achieve:
a function of creating a plurality of policies each including a predetermined number of rules in which a condition for determining a state of an object is combined with an action in the state;
a function of determining, for each of the plurality of policies that have been created, an action to be performed while a state of the object is changed from a first state to a second state in accordance with the policy;
a function of determining, in accordance with a difference between a state between the first state and the second state and a desired state, the quality of the determined action and determining, for each of the plurality of policies, the quality of the policy based on the determined quality of the action; and
a function of selecting the policy that is determined to have a high quality from among the plurality of policies that have been created.
While the present disclosure has been described above with reference to the example embodiments, the present disclosure is not limited to the above example embodiments. Various changes that may be understood by those skilled in the art within the scope of the present disclosure can be made to the configurations and the details of the present disclosure.
This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2018-244598, filed on Dec. 27, 2018, the disclosure of which is incorporated herein in its entirety by reference.
Number | Date | Country | Kind |
---|---|---|---|
2018-244598 | Dec 2018 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2019/035576 | 9/10/2019 | WO | 00 |