Hyperparameter optimization method, device, computer equipment and storage medium

Through the linkage between the AI ​​model and the advertising results, the advertising parameters are automatically optimized, which solves the problem of low efficiency of traditional advertising parameter optimization and achieves efficient advertising effects.

CN117237017BActive Publication Date: 2024-09-20SHANGHAI SHUHE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310990634.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-08
Publication Date
2024-09-20
Estimated Expiration
2043-08-08

AI Technical Summary

Technical Problem

Traditional advertising parameter optimization technology requires a lot of manpower and time, is inefficient, and is difficult to achieve automation and efficient optimization.

Method used

Through the linkage between the AI ​​model and the advertising results, the current advertising parameters are obtained, the advertising plan is optimized, and the hyperparameter values ​​are automatically adjusted based on the optimization results to form a virtuous cycle and improve optimization efficiency.

Benefits of technology

It realizes the automatic optimization of advertising parameters, reduces manual intervention, and improves the efficiency and effect of advertising.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117237017B
    Figure CN117237017B
Patent Text Reader

Abstract

The present application relates to a hyperparameter optimization method, device, computer equipment and storage medium. The method includes: obtaining the current value of the current hyperparameter, which is an advertising delivery parameter; inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter; obtaining the advertising delivery data after the advertising is delivered according to the actual delivery parameter; inputting the advertising delivery data into the AI ​​model to obtain the optimization result of the current hyperparameter. The use of this method can be interconnected through the AI ​​model and the advertising delivery results, so that the AI ​​model can continuously optimize the delivery plan, and then continuously and automatically optimize the hyperparameter value through the advertising delivery results, thereby forming a virtuous circle and improving the efficiency of hyperparameter optimization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a hyperparameter optimization method, device, computer equipment and storage medium. Background Art

[0002] With the development of data processing technology, advertising technology has emerged, which includes the optimization of advertising parameters. Advertising is an important channel for product promotion. With the diversification of product types, the advertising market continues to expand. The optimization of advertising parameters affects the effect of advertising. Therefore, how to optimize advertising parameters has attracted the attention of many people.

[0003] Traditional advertising parameter optimization technology requires manual maintenance by operators, which is labor-intensive and time-consuming, and results in low optimization efficiency for advertising. Summary of the invention

[0004] Based on this, it is necessary to provide a hyperparameter optimization method, device, computer equipment and storage medium to address the above technical problems.

[0005] A hyperparameter optimization method, comprising:

[0006] Get the current value of the current hyperparameter, which is the advertisement delivery parameter;

[0007] Input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters;

[0008] Obtaining advertisement delivery data after advertisement delivery according to actual delivery parameters;

[0009] Input the advertising data into the AI ​​model to obtain the optimization results of the current hyperparameters.

[0010] In one embodiment, the current hyperparameters include advertisement creation parameters, which are the ratio of customer acquisition costs to the total initial credit limit of the credit account. The above-mentioned input of advertisement delivery data into the AI ​​model to obtain the optimization result of the current hyperparameters includes:

[0011] Use the AI ​​model to obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement;

[0012] According to the planned hourly consumption ratio, delivery time, consumption time of the current advertisement and the values ​​of the advertisement creation parameters of the current advertisement before optimization, the optimized values ​​of the advertisement creation parameters of the current advertisement are obtained.

[0013] In one embodiment, the method further comprises:

[0014] When the optimized value of the advertisement creation parameter is lower than the first preset threshold, the current advertisement is continued to be created during the next advertisement delivery;

[0015] When the optimized value of the advertisement creation parameter is greater than or equal to the second preset threshold, the current advertisement is not created during the next advertisement delivery;

[0016] When the optimized value of the advertisement creation parameter is equal to the third preset threshold, the current advertisement is created according to the preset probability during the next advertisement delivery.

[0017] In one embodiment, the current hyperparameter includes a material identifier of an advertisement to be created, the advertisement to be created includes at least one, and the step of obtaining the current value of the current hyperparameter includes:

[0018] Generate a corresponding random number for each advertisement to be created, and the value of each random number is within a preset range;

[0019] Compare the random number of each advertisement to be created with a preset value;

[0020] If the random number of the current advertisement to be created is greater than a preset value, the weight of each candidate material is obtained, and each candidate material is sampled without replacement according to the weight of each candidate material to obtain the material identifier of the current advertisement to be created;

[0021] If the random number of the current target advertisement to be created is not greater than the preset value, the current candidate material is randomly sampled without replacement to obtain the material identifier of the current advertisement to be created;

[0022] The above inputs the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters, including:

[0023] The AI ​​model uses the material identifier of the advertisement to be created as the actual delivery parameter corresponding to the current hyperparameter.

[0024] In one embodiment, the method further comprises:

[0025] Group the advertisements to be created to obtain advertisement groups;

[0026] Determine the number of materials corresponding to each advertising group according to the material identifier corresponding to each advertisement to be created;

[0027] When the number of advertisements to be created is greater than the number of candidate materials, obtaining the consumption of each advertisement group within a preset time period;

[0028] Adjust the number of materials corresponding to each advertising group according to the consumption of each advertising group within the preset time period.

[0029] In one embodiment, the above-mentioned inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter includes:

[0030] Obtain advertising data within a preset time period;

[0031] The actual delivery parameters are determined based on the advertisement delivery data within a preset time period and the current values ​​of the current hyperparameters.

[0032] In one embodiment, the above-mentioned obtaining the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the AI ​​model includes:

[0033] Obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the optimization strategy corresponding to the current hyperparameters described in the AI ​​model;

[0034] The above method also includes:

[0035] Receive configuration requests for new hyperparameters;

[0036] Extract the newly added hyperparameters and corresponding optimization strategies in the configuration request;

[0037] Configure the optimization strategy for the newly added hyperparameters based on the newly added hyperparameters and the corresponding optimization strategies.

[0038] A hyperparameter optimization device, comprising:

[0039] The first acquisition module is used to obtain the current value of the current hyperparameter, where the current hyperparameter is an advertisement delivery parameter;

[0040] The determination module is used to input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters;

[0041] The second acquisition module is used to obtain the advertisement delivery data after the advertisement delivery is performed according to the actual delivery parameters;

[0042] The optimization module is used to input advertising data into the AI ​​model to obtain the optimization results of the current hyperparameters.

[0043] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0044] Get the current value of the current hyperparameter, which is the advertisement delivery parameter;

[0045] Input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters;

[0046] Obtaining advertisement delivery data after advertisement delivery according to actual delivery parameters;

[0047] Input the advertising data into the AI ​​model to obtain the optimization results of the current hyperparameters.

[0048] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0049] Get the current value of the current hyperparameter, which is the advertisement delivery parameter;

[0050] Input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters;

[0051] Obtaining advertisement delivery data after advertisement delivery according to actual delivery parameters;

[0052] Input the advertising data into the AI ​​model to obtain the optimization results of the current hyperparameters.

[0053] The above-mentioned hyperparameter optimization method, device, computer equipment and storage medium obtain the current value of the current hyperparameter, which is the advertising delivery parameter; input the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter; obtain the advertising delivery data after the advertising is delivered according to the actual delivery parameter; input the advertising delivery data into the AI ​​model to obtain the optimization result of the current hyperparameter. This application can interact with the AI ​​model and the advertising delivery results, so that the AI ​​model can continuously optimize the delivery plan, and then continuously and automatically optimize the hyperparameter value through the advertising delivery results, thereby forming a virtuous circle and improving the efficiency of hyperparameter optimization. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A diagram showing an application environment of a hyperparameter optimization method in an embodiment;

[0055] Figure 2 A schematic diagram of a process flow of a hyperparameter optimization method in one embodiment;

[0056] Figure 3 A schematic diagram of a probability curve for advertisement creation in one embodiment;

[0057] Figure 4 A diagram showing an application environment of a hyperparameter optimization method in an embodiment;

[0058] Figure 5 is a structural block diagram of a hyperparameter optimization device in an embodiment;

[0059] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0061] Please refer to Figure 1 , Figure 1 A schematic diagram of an application environment of a hyperparameter optimization method provided by an exemplary embodiment of the present application. Figure 1 As shown, the application environment includes a server 100 and a terminal 101. The server 100 and the terminal 101 can be communicatively connected via a network 102 to implement the hyperparameter optimization method of the present application.

[0062] Server 100 is used to obtain the current value of the current hyperparameter, which is an advertisement delivery parameter; input the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter; obtain the advertisement delivery data after advertisement delivery according to the actual delivery parameter; input the advertisement delivery data into the AI ​​model to obtain the optimization result of the current hyperparameter, store the optimized value of the current hyperparameter into the hyperparameter list and send it to the terminal 101 for display.

[0063] The server 100 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0064] The terminal 101 is used to receive the hyperparameter list sent by the server 100 and display it on the user interface.

[0065] The terminal 101 may be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices.

[0066] The network 102 is used to realize the network connection between the terminal 101 and the server 100. Specifically, the network 102 may include various types of wired or wireless networks.

[0067] In one embodiment, Figure 2 As shown, a hyperparameter optimization method is provided, which is applied to Figure 1 The server in the example is used to illustrate the following steps:

[0068] S11. Obtain the current value of the current hyperparameter, where the current hyperparameter is an advertisement delivery parameter.

[0069] In the present application, the above-mentioned current hyperparameter refers to a hyperparameter used to control advertisement delivery. For example, the above-mentioned current hyperparameter may be a parameter corresponding to what type of advertisement to create and a parameter of whether to create a certain type of advertisement.

[0070] The hyperparameters of the present application may specifically be hyperparameters in an advertising delivery model. In the context of machine learning, hyperparameters are parameters whose values ​​are set before starting the learning process, rather than parameter data obtained through training. Typically, it is necessary to optimize the hyperparameters and select a set of optimal hyperparameters for the learning machine to improve the performance and effect of learning.

[0071] Since the hyperparameters in this application need to be continuously optimized, this application pre-builds a database and stores the values ​​of the hyperparameters after each optimization in the database. A hyperparameter list is pre-created in this application, and each hyperparameter and the corresponding value are stored in the hyperparameter list. When this application obtains the current hyperparameter, it can be obtained from the hyperparameter list. The hyperparameters in this application may include one or more, and when executing the hyperparameter optimization method of this application, the current value of the current hyperparameter can be obtained from the database for processing.

[0072] S12. Input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters.

[0073] The AI ​​model in this application is an AI (Artificial Intelligence) model. The above-mentioned actual delivery parameters refer to the actual values ​​delivered in the actual advertising delivery. For example, the actual delivery parameters here can be the specific budget value of the adjustment advertising budget action, the template advertising plan, the material ID, and the copywriting ID.

[0074] The above-mentioned input of the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters can be determined by a pre-set strategy.

[0075] S13: Acquire advertisement delivery data after advertisement delivery according to actual delivery parameters.

[0076] In this application, the above-mentioned advertising data refers to the advertising effect after the advertisement is placed. For example, the advertising data here may include the cost, click volume, exposure volume, credit volume, credit limit, etc. of the advertisement.

[0077] S14. Input the advertising data into the AI ​​model to obtain the optimization result of the current hyperparameters.

[0078] In this application, the above AI model includes optimization strategies corresponding to each hyperparameter, and each optimization strategy is pre-configured for different hyperparameters. The above optimization results are the values ​​of the current hyperparameters after optimization.

[0079] In one embodiment, the current hyperparameters include advertisement creation parameters, which are the ratio of customer acquisition costs to the total initial credit limit of the credit account. The step of inputting advertisement delivery data into the AI ​​model to obtain the optimization result of the current hyperparameters may include:

[0080] Use the AI ​​model to obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement;

[0081] According to the planned hourly consumption ratio, delivery time, consumption time of the current advertisement and the values ​​of the advertisement creation parameters of the current advertisement before optimization, the optimized values ​​of the advertisement creation parameters of the current advertisement are obtained.

[0082] In this application, the above-mentioned advertisement creation parameters refer to parameters that affect whether to create a certain type of advertisement. The advertisement creation parameter in this application is cpcl, and the value of cpcl is equal to the ratio of the customer acquisition cost to the total initial credit limit of the credit account, that is, cpcl = customer acquisition cost / total initial credit limit of the credit account.

[0083] Specifically, the above-mentioned planned hourly consumption ratio of the current advertisement refers to the ratio of the planned hourly consumption to the planned total consumption. The above-mentioned delivery time refers to the time interval from the start of the delivery of the current advertisement to the current time, that is, the time period during which the current advertisement is delivered up to the current time. The above-mentioned time of consumption refers to the time period during which the current advertisement generates consumption. The above-mentioned current advertisement refers to a current advertisement, or it can also be a current type of advertisement, that is, it can represent an advertisement or a type of advertisement.

[0084] The optimized values ​​of the advertisement creation parameters of the current advertisement are obtained based on the planned hourly consumption ratio, delivery time, consumption time, and the values ​​of the advertisement creation parameters of the current advertisement before optimization. The optimized values ​​can be calculated by the following formula:

[0085]

[0086] Among them, revise_cpcl in the above formula represents the optimization result of cpcl. The above Smooth_cpcl represents the value of cpcl before optimization. The above hour_cost_rate represents the proportion of planned consumption per hour to the total planned consumption. The above hour_diff represents the time period of the current advertising minus the total time period of consumption. The above theta represents the exponential function hyperparameter, and its default value can be set to 0.5 or other values, which are not specifically limited here.

[0087] From the above formula, we can see that the statistical plan shows the proportion of consumption each hour. The greater the consumption from the current hour, the closer it is to the current hour, the greater the proportion of the credit margin, and the smaller the optimization result of cpcl.

[0088] Through this implementation method, the present application can optimize hyperparameters using the delivery data and optimization strategies after the advertisement is delivered, without the need for human participation in parameter adjustment, thereby improving the efficiency of parameter optimization.

[0089] In one embodiment, the above method may further include:

[0090] When the optimized value of the advertisement creation parameter is lower than the first preset threshold, the current advertisement is continued to be created during the next advertisement delivery;

[0091] When the optimized value of the advertisement creation parameter is greater than or equal to the second preset threshold, the current advertisement is not created during the next advertisement delivery;

[0092] When the optimized value of the advertisement creation parameter is equal to the third preset threshold, the current advertisement is created according to the preset probability during the next advertisement delivery.

[0093] In the present application, the server can determine the probability of advertisement creation according to the optimized value of advertisement creation parameter. When the optimized value of advertisement creation parameter is lower than the first preset threshold, the current advertisement creation probability is 1 when the next advertisement is delivered. When the optimized value of advertisement creation parameter is greater than or equal to the second preset threshold, the current advertisement creation probability is 0 when the next advertisement is delivered. When the optimized value of advertisement creation parameter is equal to the third preset threshold, the current advertisement creation probability is the preset probability when the next advertisement is delivered.

[0094] In the present application, the first preset threshold, the second preset threshold and the third preset threshold can be set according to actual needs, and are not specifically limited here. The preset probability is generally set to 50%, and can also be set to other values.

[0095] Exemplarily, when the optimization result of cpcl is lower than target_cpcl (equivalent to the first preset threshold mentioned above), the current advertisement or the current type of advertisement is created normally.

[0096] When the optimization result of cpcl is greater than or equal to pause_prob_p100_cpcl (equivalent to the second preset threshold value mentioned above), there is a 100% probability that the current ad will not be created. When the optimization result of cpcl is equal to pause_prob_p50_cpcl (equivalent to the third preset threshold value mentioned above), there is a 50% probability that the current ad will not be created. Among them, the above-mentioned target_cpcl, pause_prob_p50_cpcl and pause_prob_p100_cpcl can be set according to the goals of the account. If pause_prob_p50_cpcl is set to different values, the ad creation probability curve will be different.

[0097] For example, when target_cpcl=0.06, pause_prob_p100_cpcl=0.14, and pause_prob_p50_cpcl are set to 0.08, 0.1, and 0.12, respectively, the corresponding advertisement creation probability curve is as follows: Figure 3 shown.

[0098] exist Figure 3 In the figure, the horizontal axis is the optimization result of cpcl, and the vertical axis is the probability of ad creation. Curve A is the ad creation probability curve when pause_prob_p50_cpcl is 0.08. Curve B is the ad creation probability curve when pause_prob_p50_cpcl is 0.1. Curve C is the ad creation probability curve when pause_prob_p50_cpcl is 0.12.

[0099] Through this implementation, the present application can determine the probability of ad creation according to the value of the optimized hyperparameter, and further execute the next ad creation according to the ad creation probability. The optimization of the hyperparameters of the present application is based on the historical advertising delivery effect. The hyperparameters optimized by the present application control the ad creation, and then control the ad delivery, so that the ad delivery effect is better.

[0100] In one embodiment, the current hyperparameter includes a material identifier of an advertisement to be created, the advertisement to be created includes at least one, and the step of obtaining the current value of the current hyperparameter may include:

[0101] Generate a corresponding random number for each advertisement to be created, and the value of each random number is within a preset range;

[0102] Compare the random number of each advertisement to be created with a preset value;

[0103] If the random number of the current advertisement to be created is greater than a preset value, the weight of each candidate material is obtained, and each candidate material is sampled without replacement according to the weight of each candidate material to obtain the material identifier of the current advertisement to be created;

[0104] If the random number of the current target advertisement to be created is not greater than the preset value, the current candidate material is randomly sampled without replacement to obtain the material identifier of the current advertisement to be created;

[0105] The above-mentioned inputting the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters may include:

[0106] The AI ​​model uses the material identifier of the advertisement to be created as the actual delivery parameter corresponding to the current hyperparameter.

[0107] In the present application, the above-mentioned preset range can be set according to actual needs. For example, the preset range here can be set to [0, 1]. The above-mentioned preset value can also be set according to actual needs. For example, the preset value here can be set to 0.1. The above-mentioned candidate materials refer to pre-set advertising materials. The server pre-sets a corresponding material identifier, such as a material id, for each candidate material.

[0108] In this application, the number of materials corresponding to each advertisement to be created can be output by the AI ​​model, or the number of materials corresponding to each advertisement to be created can be set manually. This application can also score each candidate material through the AI ​​model, and obtain the score of each material as the weight of each candidate material. When the random number of the target advertisement to be created is greater than the preset value, the pre-set weights of each candidate material are obtained, and multiple candidate materials are sorted according to the weights of each candidate material. The sorting can be from high to bottom, and the candidate materials are sampled in turn according to the sorted candidate materials and the number of materials corresponding to the current advertisement to be created, that is, the materials with high weights are selected first to obtain the material identification of the current advertisement to be created.

[0109] In the present application, the above-mentioned determination of the actual delivery parameter corresponding to the current hyperparameter according to the current value of the current hyperparameter can be determined according to a preset scheme, wherein different preset schemes exist for different hyperparameters.

[0110] Exemplarily, the above-mentioned preset scheme may include material combination rules. Specifically, the material combination rules here can be divided into video material rules and text group rules.

[0111] a) Copywriting group rules: Randomly select from the currently available copywriting groups

[0112] b) Video material rules (divided into four steps: alternative video materials, new plan quantity adjustment, model weighted sampling and random exploration):

[0113] Strategy 1, alternative video materials: select new materials provided by suppliers in the past 3 days and old materials that have not been used in the past 15 days.

[0114] Strategy 2, exploration and utilization: Generate N 0-1 random numbers (N = number of new ads), determine whether each value is greater than 0.1, if it is greater than 0.1, use the model score as the weight to sample the candidate materials without replacement, if it is less than 0.1, do not add any weight and randomly sample without replacement until all N random numbers have completed the above actions.

[0115] Strategy 3, bottom-line rule: Create at least one new ad per ad group every day.

[0116] Among them, at least one of the above strategies 1 and 2 can be satisfied. The above strategy 3 is a strategy that must be satisfied. According to the above strategies, the actual delivery parameters corresponding to the current hyperparameters are obtained. This hyperparameter is used as a strategy for selecting a material copy combination in the ad creation action. This parameter will generate the id of the material combination (corresponding to the id in the table).

[0117] The current value of the current hyperparameter in this application can be obtained directly from the hyperparameter list or obtained by calculation. In this application, when the hyperparameter is a material identifier, the hyperparameter can be obtained by calculation, and the value of the calculated hyperparameter is further used as the actual delivery parameter corresponding to the hyperparameter.

[0118] Through the implementation methods of the present application, it is possible to determine actual delivery parameters based on hyperparameters, further obtain advertising delivery data based on the actual delivery parameters, and further determine the optimized value of the current hyperparameter based on the advertising delivery data.

[0119] In one embodiment, the above method may further include:

[0120] Group the advertisements to be created to obtain advertisement groups;

[0121] Determine the number of materials corresponding to each advertising group according to the material identifier corresponding to each advertisement to be created;

[0122] When the number of advertisements to be created is greater than the number of candidate materials, obtaining the consumption of each advertisement group within a preset time period;

[0123] Adjust the number of materials corresponding to each advertising group according to the consumption of each advertising group within the preset time period.

[0124] In the present application, the above-mentioned adjusting the number of candidate materials allocated to each advertising group according to the consumption of each advertising group within a preset time period may include:

[0125] Obtain the consumption ratio of each advertising group within a preset time period;

[0126] The candidate materials are allocated in proportion to the consumption ratio of each advertising group within a preset time period.

[0127] Through this implementation, the present application can adjust the number of candidate materials in each advertising group to achieve better advertising delivery.

[0128] In one embodiment, the above-mentioned inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter may include:

[0129] Obtain advertising data within a preset time period;

[0130] The actual delivery parameters are determined based on the advertisement delivery data within a preset time period and the current values ​​of the current hyperparameters.

[0131] In the present application, the above-mentioned preset time period refers to a preset historical time period. The preset time period can be set according to actual needs and is not specifically limited here. The above-mentioned advertising delivery data can be relevant data after the advertising is delivered. For example, the advertising delivery data here may include advertising costs, clicks, exposures, credit amounts, credit limits, etc.

[0132] In one embodiment, the above-mentioned obtaining the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the AI ​​model includes:

[0133] Obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the optimization strategy corresponding to the current hyperparameters described in the AI ​​model;

[0134] The above method also includes:

[0135] Receive configuration requests for new hyperparameters;

[0136] Extract the newly added hyperparameters and corresponding optimization strategies in the configuration request;

[0137] Configure the optimization strategy for the newly added hyperparameters based on the newly added hyperparameters and the corresponding optimization strategies.

[0138] In this application, there is an optimization strategy corresponding to each hyperparameter, and there is a calculation rule for calculating the actual delivery parameters corresponding to each hyperparameter. The optimization strategy corresponding to each hyperparameter and the calculation rule for calculating the actual delivery parameters need to be configured in advance.

[0139] Specifically, the above formula:

[0140]

[0141] This is the optimization strategy corresponding to the hyperparameter "the advertising creation parameter is the ratio of the customer acquisition cost to the total initial credit limit of the credit account".

[0142] In this application, the above configuration request refers to a request for configuring a newly added hyperparameter. Specifically, the server pre-creates a configuration file, which includes the optimization strategy corresponding to each hyperparameter, the actual delivery parameter corresponding to each hyperparameter, and the calculation rules for each hyperparameter to obtain the corresponding actual delivery parameter.

[0143] The above configuration request carries the parameter name of the newly added hyperparameter, the corresponding optimization strategy, the corresponding actual delivery parameter, and the calculation rules of the corresponding actual delivery parameter obtained by calculating the corresponding new hyperparameter. The parameter name of the newly added hyperparameter in the configuration request, the corresponding optimization strategy, the corresponding actual delivery parameter, and the calculation rules of the corresponding actual delivery parameter obtained by calculating the corresponding new hyperparameter are associated and updated to the above configuration file to complete the configuration of the optimization strategy for the current hyperparameter. Through this implementation method, the present application can flexibly configure each hyperparameter to achieve the expansion and flexibility of the solution.

[0144] Please refer to Figure 4 , Figure 4 A schematic diagram of the application environment of the hyperparameter optimization method in another embodiment is provided. Figure 4 As shown, the application environment includes an AI activity engine, an AI model, a hyperparameter platform, and an advertising delivery platform. Among them, the AI ​​activity engine is used to trigger a scheduled task. When the task is triggered, the AI ​​model starts to execute the relevant steps in the hyperparameter optimization method in this application. The AI ​​model is used to calculate the actual delivery parameters and optimize the hyperparameters. The hyperparameter platform is used to manage each hyperparameter and maintain the value of each hyperparameter by creating a hyperlist. The advertising delivery platform is used to deliver advertisements. The optimization results of the hyperparameters can be used for the user's next advertising delivery, or they can be updated to the parameter list in the hyperparameter platform.

[0145] In one embodiment, Figure 5 As shown, a hyperparameter optimization device is provided, comprising: a first acquisition module 11, a determination module 12, a second acquisition module 13 and an optimization module 14, wherein:

[0146] The first acquisition module 11 is used to obtain the current value of the current hyperparameter, where the current hyperparameter is an advertisement delivery parameter;

[0147] A determination module 12 is used to input the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters;

[0148] The second acquisition module 13 is used to obtain advertisement delivery data after advertisement delivery according to actual delivery parameters;

[0149] The optimization module 14 is used to input the advertising data into the AI ​​model to obtain the optimization result of the current hyperparameters.

[0150] In one embodiment, the above-mentioned current hyperparameters include advertising creation parameters, which are the ratio of customer acquisition costs to the total initial credit limit of the credit account. The above-mentioned optimization module 14 can obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through an AI model, and obtain the optimized values ​​of the advertising creation parameters of the current advertisement based on the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement and the values ​​of the advertising creation parameters of the current advertisement before optimization.

[0151] In one of the embodiments, the above-mentioned optimization module 14 can also continue to create the current advertisement during the next advertisement delivery when the optimized value of the advertisement creation parameter is lower than the first preset threshold value, and not create the current advertisement during the next advertisement delivery when the optimized value of the advertisement creation parameter is greater than or equal to the second preset threshold value, and create the current advertisement according to the preset probability during the next advertisement delivery when the optimized value of the advertisement creation parameter is equal to the third preset threshold value.

[0152] In one embodiment, the above-mentioned current hyperparameters include the material identification of the advertisement to be created, and the above-mentioned advertisement to be created includes at least one. The above-mentioned first acquisition module 11 can generate a corresponding random number for each advertisement to be created, and the value of each random number is within a preset range. The random number of each advertisement to be created is compared with a preset value. If the random number of the current advertisement to be created is greater than the preset value, the weight of each candidate material is obtained, and each candidate material is sampled without replacement according to the weight of each candidate material to obtain the material identification of the current advertisement to be created. If the random number of the current target advertisement to be created is not greater than the preset value, the current candidate material is randomly sampled without replacement to obtain the material identification of the current advertisement to be created, and the material identification of the advertisement to be created is used as the actual delivery parameter corresponding to the current hyperparameter through the AI ​​model.

[0153] In one of the embodiments, the above-mentioned determination module 12 can also group the advertisements to be created to obtain each advertisement group, determine the number of materials corresponding to each advertisement group according to the material identifier corresponding to each advertisement to be created, and when the number of advertisements to be created is greater than the number of candidate materials, obtain the consumption of each advertisement group within a preset time period, and adjust the number of materials corresponding to each advertisement group according to the consumption of each advertisement group within the preset time period.

[0154] In one embodiment, the determination module 12 may obtain advertisement delivery data within a preset time period, and determine actual delivery parameters according to the advertisement delivery data within the preset time period and the current value of the current hyperparameter.

[0155] In one of the embodiments, the above-mentioned optimization module 14 can obtain the planned hourly consumption ratio, delivery time and consumption time of the current advertisement through the optimization strategy corresponding to the current hyperparameters in the AI ​​model, and can also receive a configuration request for a new hyperparameter, extract the new hyperparameters and the corresponding optimization strategy in the configuration request, and configure the optimization strategy for the new hyperparameter according to the new hyperparameters and the corresponding optimization strategy.

[0156] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as the operation data of smart home devices. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a hyperparameter optimization method is implemented.

[0157] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: obtaining a current value of a current hyperparameter, where the current hyperparameter is an advertisement delivery parameter; inputting the current hyperparameter into an AI model to obtain an actual delivery parameter corresponding to the current hyperparameter; obtaining advertisement delivery data after advertisement delivery according to the actual delivery parameter;

[0158] Input the advertising data into the AI ​​model to obtain the optimization results of the current hyperparameters.

[0159] In one embodiment, the above-mentioned current hyperparameters include advertisement creation parameters, which are the ratio of customer acquisition costs to the total initial credit limit of the credit account. When the processor executes the computer program to implement the above-mentioned step of inputting the advertisement delivery data into the AI ​​model and obtaining the optimization result of the current hyperparameters, the following steps are specifically implemented:

[0160] Use the AI ​​model to obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement;

[0161] According to the planned hourly consumption ratio, delivery time, consumption time of the current advertisement and the values ​​of the advertisement creation parameters of the current advertisement before optimization, the optimized values ​​of the advertisement creation parameters of the current advertisement are obtained.

[0162] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0163] When the optimized value of the advertisement creation parameter is lower than the first preset threshold, the current advertisement is continued to be created during the next advertisement delivery;

[0164] When the optimized value of the advertisement creation parameter is greater than or equal to the second preset threshold, the current advertisement is not created during the next advertisement delivery;

[0165] When the optimized value of the advertisement creation parameter is equal to the third preset threshold, the current advertisement is created according to the preset probability during the next advertisement delivery.

[0166] In one embodiment, the current hyperparameters include a material identifier of an advertisement to be created, and the advertisement to be created includes at least one. When the processor executes a computer program to implement the step of obtaining the current value of the current hyperparameters, the following steps are specifically implemented:

[0167] Generate a corresponding random number for each advertisement to be created, and the value of each random number is within a preset range;

[0168] Compare the random number of each advertisement to be created with a preset value;

[0169] If the random number of the current advertisement to be created is greater than a preset value, the weight of each candidate material is obtained, and each candidate material is sampled without replacement according to the weight of each candidate material to obtain the material identifier of the current advertisement to be created;

[0170] If the random number of the current target advertisement to be created is not greater than the preset value, the current candidate material is randomly sampled without replacement to obtain the material identifier of the current advertisement to be created;

[0171] When the processor executes the computer program to implement the above-mentioned step of inputting the current hyperparameters into the AI ​​model and obtaining the actual delivery parameters corresponding to the current hyperparameters, the following steps are specifically implemented:

[0172] The AI ​​model uses the material identifier of the advertisement to be created as the actual delivery parameter corresponding to the current hyperparameter.

[0173] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0174] Group the advertisements to be created to obtain advertisement groups;

[0175] Determine the number of materials corresponding to each advertising group according to the material identifier corresponding to each advertisement to be created;

[0176] When the number of advertisements to be created is greater than the number of candidate materials, obtaining the consumption of each advertisement group within a preset time period;

[0177] Adjust the number of materials corresponding to each advertising group according to the consumption of each advertising group within the preset time period.

[0178] In one embodiment, when the processor executes the computer program to implement the above-mentioned step of inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter, the following steps are specifically implemented:

[0179] Obtain advertising data within a preset time period;

[0180] The actual delivery parameters are determined based on the advertisement delivery data within a preset time period and the current values ​​of the current hyperparameters.

[0181] In one embodiment, when the processor executes the computer program to implement the above-mentioned step of obtaining the planned hourly consumption ratio, delivery time, and time of consumption of the current advertisement through the AI ​​model, the following steps are specifically implemented:

[0182] Obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the optimization strategy corresponding to the current hyperparameters described in the AI ​​model;

[0183] When the processor executes the computer program, it also specifically implements the following steps:

[0184] Receive configuration requests for new hyperparameters;

[0185] Extract the newly added hyperparameters and corresponding optimization strategies in the configuration request;

[0186] Configure the optimization strategy for the newly added hyperparameters based on the newly added hyperparameters and the corresponding optimization strategies.

[0187] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: obtaining a current value of a current hyperparameter, which is an advertising delivery parameter; inputting the current hyperparameter into an AI model to obtain an actual delivery parameter corresponding to the current hyperparameter; obtaining advertising delivery data after advertising is delivered according to the actual delivery parameter; and inputting the advertising delivery data into the AI ​​model to obtain an optimization result of the current hyperparameter.

[0188] In one embodiment, the above-mentioned current hyperparameters include advertisement creation parameters, which are the ratio of customer acquisition costs to the total initial credit limit of the credit account. When the computer program is executed by the processor to implement the above-mentioned step of inputting advertisement delivery data into the AI ​​model and obtaining the optimization result of the current hyperparameters, the following steps are specifically implemented:

[0189] Use the AI ​​model to obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement;

[0190] According to the planned hourly consumption ratio, delivery time, consumption time of the current advertisement and the values ​​of the advertisement creation parameters of the current advertisement before optimization, the optimized values ​​of the advertisement creation parameters of the current advertisement are obtained.

[0191] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0192] When the optimized value of the advertisement creation parameter is lower than the first preset threshold, the current advertisement is continued to be created during the next advertisement delivery;

[0193] When the optimized value of the advertisement creation parameter is greater than or equal to the second preset threshold, the current advertisement is not created during the next advertisement delivery;

[0194] When the optimized value of the advertisement creation parameter is equal to the third preset threshold, the current advertisement is created according to the preset probability during the next advertisement delivery.

[0195] In one embodiment, the current hyperparameters include a material identifier of an advertisement to be created, and the advertisement to be created includes at least one. When the computer program is executed by a processor to implement the step of obtaining the current value of the current hyperparameters, the following steps are specifically implemented:

[0196] Generate a corresponding random number for each advertisement to be created, and the value of each random number is within a preset range;

[0197] Compare the random number of each advertisement to be created with a preset value;

[0198] If the random number of the current advertisement to be created is greater than a preset value, the weight of each candidate material is obtained, and each candidate material is sampled without replacement according to the weight of each candidate material to obtain the material identifier of the current advertisement to be created;

[0199] If the random number of the current target advertisement to be created is not greater than the preset value, the current candidate material is randomly sampled without replacement to obtain the material identifier of the current advertisement to be created;

[0200] When the computer program is executed by the processor to implement the above-mentioned step of inputting the current hyperparameters into the AI ​​model to obtain the actual delivery parameters corresponding to the current hyperparameters, the following steps are specifically implemented:

[0201] The AI ​​model uses the material identifier of the advertisement to be created as the actual delivery parameter corresponding to the current hyperparameter.

[0202] In one embodiment, when the computer program is executed by a processor, the following steps are specifically implemented:

[0203] Group the advertisements to be created to obtain advertisement groups;

[0204] Determine the number of materials corresponding to each advertising group according to the material identifier corresponding to each advertisement to be created;

[0205] When the number of advertisements to be created is greater than the number of candidate materials, obtaining the consumption of each advertisement group within a preset time period;

[0206] Adjust the number of materials corresponding to each advertising group according to the consumption of each advertising group within the preset time period.

[0207] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned step of inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter, the following steps are specifically implemented:

[0208] Obtain advertising data within a preset time period;

[0209] The actual delivery parameters are determined based on the advertisement delivery data within a preset time period and the current values ​​of the current hyperparameters.

[0210] In one embodiment, when the computer program is executed by the processor to implement the above-mentioned steps of obtaining the planned hourly consumption ratio, delivery time, and time of consumption of the current advertisement through the AI ​​model, the following steps are specifically implemented:

[0211] Obtain the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement through the optimization strategy corresponding to the current hyperparameters described in the AI ​​model;

[0212] When the computer program is executed by the processor, the following steps are specifically implemented:

[0213] Receive configuration requests for new hyperparameters;

[0214] Extract the newly added hyperparameters and corresponding optimization strategies in the configuration request;

[0215] Configure the optimization strategy for the newly added hyperparameters based on the newly added hyperparameters and the corresponding optimization strategies.

[0216] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0217] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0218] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A hyperparameter optimization method, characterized in that: The method comprises: Obtaining current hyperparameters, where the current hyperparameters are parameters used to control advertisement creation, and the current hyperparameters include a ratio of customer acquisition costs to a total initial credit limit of a credit account; Input the current hyperparameters into the AI ​​model to obtain actual delivery parameters corresponding to the current hyperparameters; Acquire advertisement delivery data after advertisement delivery according to the actual delivery parameters, the advertisement delivery data including the planned hourly consumption ratio, delivery time, and consumption generation time of the current advertisement; According to the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement, and the value of the advertisement creation parameter of the current advertisement before optimization, the optimization result of the current hyperparameter is obtained, wherein the calculation formula for obtaining the optimization result of the current hyperparameter is: Among them, cpcl in the formula is the ratio of the customer acquisition cost to the total initial credit limit of the credit account, revise_cpcl is the optimization result of cpcl, Smooth_cpcl is the value before cpcl optimization, hour_cost_rate represents the proportion of planned hourly consumption to the total planned consumption, hour_diff is the difference between the current advertising delivery time and the total time incurred, and theta is a pre-set exponential function hyperparameter.

2. The method according to claim 1, characterized in that The method further comprises: When the optimization result of the current hyperparameter is lower than the first preset threshold, continue to create the current advertisement during the next advertisement delivery; When the optimization result of the current hyperparameter is greater than or equal to the second preset threshold, the current advertisement is not created during the next advertisement delivery; When the optimization result of the current hyperparameter is equal to the third preset threshold, the current advertisement is created according to the preset probability when the next advertisement is delivered.

3. The method according to claim 1, characterized in that The current hyperparameter includes a material identifier of an advertisement to be created, the advertisement to be created includes at least one, and obtaining a current value of the current hyperparameter includes: Generating a corresponding random number for each of the advertisements to be created, wherein the value of each of the random numbers is within a preset range; Comparing the random number of each advertisement to be created with a preset value; If the random number of the current advertisement to be created is greater than the preset value, the weight of each candidate material is obtained, and the candidate materials are sampled without replacement according to the weight of each candidate material to obtain the material identifier of the current advertisement to be created; If the random number of the current advertisement to be created is not greater than the preset value, then randomly sampling without replacement is performed on each candidate material to obtain a material identifier of the current advertisement to be created; Input the current hyperparameters into the AI ​​model to obtain actual delivery parameters corresponding to the current hyperparameters, including: The AI ​​model uses the material identifier of the advertisement to be created as the actual delivery parameter corresponding to the current hyperparameter.

4. The method according to claim 3, characterized in that The method further comprises: Grouping the advertisements to be created to obtain advertisement groups; Determining the number of materials corresponding to each of the advertisement groups according to the material identifiers corresponding to each of the advertisements to be created; When the number of the advertisements to be created is greater than the number of the candidate materials, obtaining the consumption of each of the advertisement groups within a preset time period; The number of materials corresponding to each of the advertising groups is adjusted according to the consumption of each of the advertising groups within a preset time period.

5. The method according to claim 1, characterized in that The step of inputting the current hyperparameter into the AI ​​model to obtain the actual delivery parameter corresponding to the current hyperparameter includes: Obtain advertising data within a preset time period; The actual delivery parameter is determined according to the advertisement delivery data within the preset time period and the current value of the current hyperparameter.

6. The method according to claim 1, characterized in that The acquiring of advertisement delivery data after advertisement delivery according to the actual delivery parameters includes: Obtain the planned hourly consumption ratio, delivery time, and consumption generation time of the current advertisement through the optimization strategy corresponding to the current hyperparameter in the AI ​​model; The method further comprises: Receive configuration requests for new hyperparameters; Extracting newly added hyperparameters and corresponding optimization strategies in the configuration request; The optimization strategy of the newly added hyperparameter is configured according to the newly added hyperparameter and the corresponding optimization strategy.

7. A hyperparameter optimization device, characterized in that: The device comprises: A first acquisition module is used to acquire a current value of a current hyperparameter, where the current hyperparameter is a parameter used to control advertisement creation, and the current hyperparameter includes a ratio of a customer acquisition cost to a total initial credit limit of a credit account; A determination module, used to input the current hyperparameters into the AI ​​model to obtain actual delivery parameters corresponding to the current hyperparameters; The second acquisition module is used to obtain the advertisement delivery data after the advertisement is delivered according to the actual delivery parameters, wherein the advertisement delivery data includes the planned hourly consumption ratio, delivery time, and consumption generation time of the current advertisement; The optimization module is used to obtain the optimization result of the current hyperparameter according to the planned hourly consumption ratio, delivery time, and consumption time of the current advertisement and the value of the advertisement creation parameter of the current advertisement before optimization, wherein the calculation formula for obtaining the optimization result of the current hyperparameter is: Among them, cpcl in the formula is the ratio of the customer acquisition cost to the total initial credit limit of the credit account, revise_cpcl is the optimization result of cpcl, Smooth_cpcl is the value before cpcl optimization, hour_cost_rate represents the proportion of planned hourly consumption to the total planned consumption, hour_diff is the difference between the current advertising delivery time and the total time incurred, and theta is a pre-set exponential function hyperparameter.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.