Parameter determination method and device, electronic device, and computer-readable storage medium
By automatically determining the parameter selection method based on the expected length of model training and training data, the problem of complex parameter selection methods in the existing technology is solved, the accuracy of parameter combinations and model performance are improved, and user operations are simplified.
Patent Information
- Application Number
- CN201910277910.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-08
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-04-08
AI Technical Summary
The selection of parameter selection methods in the prior art requires high professional capabilities of operators, making it difficult for ordinary users to find suitable parameter combinations, resulting in low parameter accuracy.
By automatically determining the target parameter selection method based on the expected model training time and training data, the search space is reduced and the accuracy and efficiency of parameter combinations are improved.
It improves the accuracy of parameter combination selection and model performance, simplifies user input, reduces the requirements for professional knowledge and experience, and can train a model that meets user requirements within a specified time.
Smart Images

Figure CN111859592B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a parameter determination method and device, an electronic device, and a computer-readable storage medium. Background Art
[0002] In the process of computer modeling, the selection of model parameters is very important and will directly affect the accuracy of the model output results. Therefore, it is necessary to select the best parameter combination from the parameter space to make the model have the best performance. The existing grid search will use an exhaustive method to run all combinations of each parameter to find the best parameter combination. However, this method is very inefficient and requires a lot of computing resources.
[0003] In order to reduce the search space, some parameter selection methods (eg, spherical test design, uniform test design, orthogonal test design, etc.) are generally used in the prior art to select some parameter combinations from the entire parameter space to improve efficiency.
[0004] In the process of implementing the present invention, the inventors found that the prior art has at least the following problems: the selection of parameter selection method requires relatively high professional ability of the operator, and it is difficult for general users to find a suitable parameter selection method, resulting in low accuracy of the determined parameters. Summary of the invention
[0005] The embodiments of the present invention provide a parameter determination method and device, an electronic device, and a computer-readable storage medium to solve the defect of low accuracy of parameters determined by users who do not have high business capabilities in the prior art.
[0006] To achieve the above object, an embodiment of the present invention provides a parameter determination method, including:
[0007] Determine the target parameter selection method based on the expected model training time and training data;
[0008] According to the target parameter selection method, a target parameter combination is determined.
[0009] The embodiment of the present invention further provides a parameter determination device, including:
[0010] A determination module is used to determine the target parameter selection method according to the expected model training time and training data;
[0011] The parameter selection module is used to determine the target parameter combination according to the target parameter selection method.
[0012] An embodiment of the present invention further provides an electronic device, including:
[0013] Memory, used to store programs;
[0014] A processor, configured to run the program stored in the memory, to:
[0015] Execute the parameter determination method provided by the embodiment of the present invention.
[0016] An embodiment of the present invention further provides a computer-readable storage medium, on which instructions are stored, and the instructions are used to execute the parameter determination method provided by the embodiment of the present invention.
[0017] The parameter determination method and device, as well as the electronic device and computer-readable storage medium provided in the embodiments of the present invention select the most appropriate parameter combination from the parameter space through a parameter selection method determined according to the expected duration of model training. While improving efficiency and saving computing resources, it improves the accuracy of parameter combination selection, thereby improving the performance of the model.
[0018] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0020] Figure 1 A system block diagram of a business system provided by an embodiment of the present invention;
[0021] Figure 2 A flow chart of an embodiment of a parameter determination method provided by the present invention;
[0022] Figure 3 A flow chart of another embodiment of the parameter determination method provided by the present invention;
[0023] Figure 4 A schematic diagram of the structure of an embodiment of a parameter determination device provided by the present invention;
[0024] Figure 5 A schematic structural diagram of another embodiment of the parameter determination device provided by the present invention;
[0025] Figure 6 A schematic structural diagram of an electronic device embodiment provided by the present invention. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] In the prior art, in order to reduce the search space for selecting the best parameter combination, some parameter selection methods are usually used to select some parameter combinations from the entire parameter space to improve efficiency. However, the selection of parameter selection methods requires relatively high business capabilities of users (model operators) and requires high theoretical and practical knowledge. For general users, it is difficult to find a suitable parameter selection method, so the accuracy of the parameter combination finally determined is low.
[0028] Therefore, the present application proposes a parameter determination scheme, the main principle of which is: to automatically determine the target parameter selection method by the time the user expects to complete model training. The user does not need to have rich experience and professional knowledge, and can only input the training data and the expected time to make the system automatically recommend a suitable method for him. Then, according to the selected target parameter selection method, the search space is reduced from the entire parameter space to the candidate parameter combination selected by the target parameter selection method, thereby improving efficiency and saving computing resources. At the same time, according to the target parameter selection method determined by the user's constraints, the parameter combination selected is more accurate, which can improve the performance of the computing model, such as the machine learning model.
[0029] The method provided by the embodiment of the present invention can be applied to any business system with data processing capability. Figure 1 A system block diagram of a business system provided by an embodiment of the present invention, Figure 1 The structure shown is only one example of a business system to which the technical solution of the present invention can be applied. Figure 1 As shown, the business system includes a parameter determination device. The device includes: a determination module and a parameter selection module, which can be used to perform the following Figure 2 and Figure 3The processing flow shown in the figure. In this business system, first, the target parameter selection method is determined according to the expected model training time and training data; then, the target parameter combination is selected from the parameter space according to the determined target parameter selection method. Users do not need to have rich experience and professional knowledge, and can only input training data and the expected model training time to allow the system to automatically recommend a suitable method for them, so as to reduce the search space and select the most suitable parameter combination. While improving efficiency and saving computing resources, it can improve the accuracy of parameter combination selection, thereby improving the performance of the model.
[0030] It is worth noting that according to an embodiment of the present invention, the user can input the expected duration of model training through various input interfaces / media. In the prior art, the user needs to master relatively professional knowledge and rich experience to input various parameters of the model in order to facilitate model training, and if the model trained using the input parameters does not meet expectations, it is necessary to retry new parameters to obtain the training model the user wants. The present invention only requires the user to input the expected training duration, and it can automatically try various parameter combinations to perform model training, thereby ultimately providing the user with a training model that meets the user's requirements for direct use by the user. Therefore, compared with the prior art, this solution greatly reduces the requirements for the user's professional knowledge and experience, simplifies the user's input, and can select a parameter combination that can train the model the user wants within the specified time according to the time specified by the user.
[0031] The above embodiments are illustrations of the technical principles and exemplary application frameworks of the embodiments of the present invention. The specific technical solutions of the embodiments of the present invention are further described in detail below through multiple embodiments.
[0032] Embodiment 1
[0033] Figure 2 This is a flow chart of an embodiment of the parameter determination method provided by the present invention. The execution subject of this method can be the above-mentioned business system, or various servers or terminal devices with data processing capabilities, or devices or chips integrated on these devices. Figure 2 As shown, the parameter determination method includes the following steps:
[0034] S201, determining a target parameter selection method according to the expected model training time and training data.
[0035] In the embodiment of the present invention, the expected model training duration refers to the length of time that the user expects to complete the model training. After the training data is obtained, the model can be trained according to the training data. The number of times that the model training can be completed within the expected model training duration is calculated, and the target parameter selection method is determined according to the calculated number of times.
[0036] S202: Determine a target parameter combination according to a target parameter selection method.
[0037] In an embodiment of the present invention, after the target parameter selection method is determined, the target parameter combination can be determined according to the target parameter selection method. Of course, if the model only needs to determine one parameter, determining the target parameter combination includes determining one target parameter. Specifically, when determining the target parameter combination, an array parameter combination can be selected from the parameter space as a candidate parameter combination according to the determined target parameter selection method, and then each candidate parameter combination can be evaluated. For example, each candidate parameter combination can be input into the model respectively, and a set of optimal parameter combinations can be selected as the target parameter combination based on the evaluation of each indicator of the model.
[0038] The parameter determination method provided in the embodiment of the present invention selects an array of candidate parameter combinations from the parameter space through a parameter selection method determined according to the length of time a user expects to complete model training to reduce the search space, and evaluates the selected candidate parameter combinations to select the most appropriate parameter combination. While improving efficiency and saving computing resources, it improves the accuracy of parameter combination selection, thereby improving the performance of the model.
[0039] Embodiment 2
[0040] Figure 3 FIG. 1 is a flow chart of another embodiment of the parameter determination method provided by the present invention. Figure 3 As shown in the above Figure 2 Based on the illustrated embodiment, the parameter determination method provided in this embodiment may further include the following steps:
[0041] S301, obtaining a set of random parameter combinations.
[0042] In an embodiment of the present invention, when determining the target parameter selection method, it is necessary to first obtain a set of random parameter combinations. A parameter list may be obtained first. For example, the parameter list may include but is not limited to the following: whether the feature is regularized, the type of discrete feature encoding, whether feature dimensionality reduction is performed, whether feature screening is performed, model type, model parameters, etc. Then, a random value is set for each parameter in the parameter list to form a set of random parameter combinations. For example, for the above parameter list, the randomly formed random parameter combination may be: the feature is regularized, the type of discrete feature encoding is one-hot encoding, feature dimensionality reduction is performed, feature screening is performed, the model type is a random forest model, the tree depth of the model is 5, the number of trees of the model is 100, etc.
[0043] S302, setting a first model according to a random parameter combination, inputting training data into the first model for model training, and obtaining the time required to complete one model training.
[0044] In an embodiment of the present invention, after the first model is set according to the above random parameter combination, the training data input by the user is input into the first model for model training, and the time required to complete one training is recorded. Here, the first model includes a machine learning model and a statistical model, wherein the machine learning model includes a deep learning model, a neural network model, etc.; the statistical model includes a time series model, such as an Auto Regressive Integrated Moving Average (hereinafter referred to as ARIMA) model, etc.
[0045] S303: Calculate the number of model training completions within the expected model training duration according to the time required to complete one model training.
[0046] In an embodiment of the present invention, based on the time required to complete one training acquired above and the expected duration of model training input by the user, it is possible to calculate how many times the model training can be completed within the expected duration of model training to obtain the number of model training completions.
[0047] S304: Determine a target parameter selection method according to the number of times the model training is completed.
[0048] In the embodiment of the present invention, different parameter selection methods determine the number of model trainings required for parameters, that is, different preset parameter selection methods have different number index thresholds. Therefore, when determining the target parameter selection method, the number index thresholds of multiple preset parameter selection methods can be obtained respectively; then, among the preset parameter selection methods whose number index thresholds are not greater than the number of times the above-mentioned model training is completed, the preset parameter selection method with the largest number index threshold is determined as the target parameter selection method. That is to say, after obtaining the number index thresholds of each preset parameter selection method, the method that cannot complete parameter selection within the expected duration of model training can be excluded first, that is, the preset parameter selection method whose number index threshold is greater than the number of times the model training is completed; because the more model trainings are required to be completed for parameter selection, the higher the accuracy of the parameter combination selected by the parameter selection method, therefore, among the methods that can complete parameter selection within the expected duration of model training, the preset parameter selection method with the largest number index threshold is selected as the target parameter selection method.
[0049] In addition, in the embodiment of the present invention, each preset parameter selection method includes but is not limited to: a spherical test method, a uniform test method or an orthogonal test method.
[0050] S305: Select an array candidate parameter combination from the parameter space according to the target parameter selection method.
[0051] S306: Set a first model according to the array candidate parameter combination and obtain an evaluation index of the first model.
[0052] In an embodiment of the present invention, when an array candidate parameter combination is selected from the parameter space according to the target parameter selection method, the first model is set according to the candidate parameter combination, and the evaluation index of the first model under different candidate parameter combinations is obtained. When the first model is a regression task model, the evaluation index can be root mean square error (RMSE); when the first model is a classification task model, the evaluation index can be cross-entropy.
[0053] S307: Based on the first model, determine the candidate parameter combination corresponding to the minimum value of the evaluation index as the target parameter combination.
[0054] In the embodiment of the present invention, based on the above-mentioned first model, the candidate parameter combination corresponding to the minimum value of the evaluation index can be determined as the target parameter combination.
[0055] In addition, the parameter determination method provided by the embodiment of the present invention may further include: receiving an expected model training duration input by a user through an input interface.
[0056] The parameter determination method provided in the embodiment of the present invention determines the target parameter selection method according to the time length that the user expects to complete the model training and the number index threshold of each preset parameter selection method, and then selects an array of candidate parameter combinations from the parameter space according to the target parameter selection method to reduce the search space, and evaluates the selected candidate parameter combinations to select the best parameter combination that can complete the training task within the expected time length of the model training. While improving efficiency and saving computing resources, it improves the accuracy of parameter combination selection, thereby improving the performance of the training model.
[0057] Embodiment 3
[0058] Figure 4 A schematic diagram of a parameter determination device according to an embodiment of the present invention is provided, which can be used to perform the following steps: Figure 2 The method steps shown. Figure 4 As shown, the parameter determination device may include: a determination module 41 and a parameter selection module 42.
[0059] Among them, the determination module 41 is used to determine the target parameter selection method according to the expected model training time and training data. The expected model training time is the length of time the user expects to complete the model training; the parameter selection module 42 is used to determine the target parameter combination according to the target parameter selection method.
[0060] In an embodiment of the present invention, after obtaining the training data, the determination module 41 can train the model according to the training data, calculate the number of times the model training can be completed within the expected duration of the model training, and determine the target parameter selection method according to the calculated number of times. After the determination module 41 determines the target parameter selection method, the parameter selection module 42 can determine the target parameter combination according to the target parameter selection method. Of course, if the model only needs to determine one parameter, determining the target parameter combination includes determining a target parameter. Specifically, when determining the target parameter combination, the parameter selection module 42 can select an array parameter combination from the parameter space as a candidate parameter combination according to the determined target parameter selection method, and then evaluate each candidate parameter combination. For example, each candidate parameter combination can be input into the first model respectively, and a set of optimal parameter combinations can be selected as the target parameter combination based on the evaluation of each indicator of the first model.
[0061] The parameter determination device provided in the embodiment of the present invention selects an array of candidate parameter combinations from the parameter space through a parameter selection method determined according to the length of time a user expects to complete model training to reduce the search space, and evaluates the selected candidate parameter combinations to select the most appropriate parameter combination. While improving efficiency and saving computing resources, it improves the accuracy of parameter combination selection, thereby improving the performance of the training model.
[0062] Embodiment 4
[0063] Figure 5 A schematic diagram of another embodiment of the parameter determination device provided by the present invention can be used to perform the following steps: Figure 3 The method steps shown. Figure 5 As shown in the above Figure 4 On the basis of the illustrated embodiment, the parameter selection module 42 may include: a parameter selection unit 421 and an evaluation unit 422 .
[0064] Among them, the parameter selection unit 421 can be used to select an array of candidate parameter combinations from the parameter space according to the target parameter selection method; the evaluation unit 422 can be used to evaluate the candidate parameter combinations and determine the target parameter combination from the candidate parameter combinations according to the evaluation results.
[0065] In an embodiment of the present invention, the parameter selection unit 421 can select an array candidate parameter combination from the parameter space according to the target parameter selection method determined by the determination module 41; then, the evaluation unit 422 evaluates the array candidate parameter combination selected by the parameter selection unit 421, and determines the target parameter combination from the array candidate parameter combination according to the evaluation result.
[0066] On the other hand, in the parameter determination device provided by the embodiment of the present invention, the determination module 41 may include: a first acquisition unit 411 , a model training unit 412 , a calculation unit 413 and a determination unit 414 .
[0067] Among them, the first acquisition unit 411 can be used to obtain a set of random parameter combinations; the model training unit 412 can be used to set the first model according to the random parameter combination, input the training data into the first model for model training, and obtain the time required to complete one model training; the calculation unit 413 can be used to calculate the number of model training completions within the expected model training duration based on the time required to complete one model training; the determination unit 414 can be used to determine the target parameter selection method based on the number of model training completions.
[0068] In an embodiment of the present invention, when the determination module 41 determines the target parameter selection method, first, a set of random parameter combinations can be obtained by the first acquisition unit 411. The first acquisition unit 411 can first obtain a parameter list. For example, the parameter list may include but is not limited to the following contents: whether the feature is regularized, the type of discrete feature encoding, whether feature dimensionality reduction is performed, whether feature screening is performed, model type, model parameters, etc. Then the first acquisition unit 411 sets a random value for each parameter in the parameter list to form a set of random parameter combinations. For example, for the above parameter list, the randomly formed random parameter combination can be: the feature is regularized, the type of discrete feature encoding is one-hot encoding, feature dimensionality reduction is performed, feature screening is performed, the model type is a random forest model, the tree depth of the model is 5, the number of trees of the model is 100, etc.
[0069] Then, the model training unit 412 sets the first model according to the random parameter combination obtained by the first acquisition unit 411, and inputs the training data into the first model for model training to obtain the time required to complete one model training. Here, the first model includes a machine learning model and a statistical model, wherein the machine learning model includes a deep learning model, a neural network model, etc.; the statistical model includes a time series model, such as an ARIMA model, etc. Then, the calculation unit 413 calculates the number of model training completions within the expected model training duration according to the time required to complete one model training obtained by the model training unit 412. Finally, the determination unit 414 determines the target parameter selection method according to the number of model training completions calculated by the calculation unit 413.
[0070] Further, the determination unit 414 can be specifically used to obtain the number index thresholds of multiple preset parameter selection methods respectively, where the number index threshold is the number of model trainings required for the preset parameter selection method to determine the parameters; and among the preset parameter selection methods whose number index threshold is not greater than the number of completed model trainings, the preset parameter selection method with the largest number index threshold is determined as the target parameter selection method. Each preset parameter selection method includes, but is not limited to, a spherical test method, a uniform test method, or an orthogonal test method.
[0071] In addition, the first acquisition unit 411 may be specifically configured to acquire a parameter list, and set a random value for each parameter in the parameter list to form a random parameter combination.
[0072] Furthermore, in an embodiment of the present invention, the above-mentioned evaluation unit 422 can be specifically used to set a first model according to an array of candidate parameter combinations, obtain an evaluation index of the first model, and based on the first model, determine the candidate parameter combination corresponding to the minimum value of the evaluation index as the target parameter combination.
[0073] In the embodiment of the present invention, when evaluating the candidate parameter combination, the evaluation unit 422 may set a first model according to the array candidate parameter combination selected by the parameter selection unit 421, obtain the evaluation index of the first model, and then determine the candidate parameter combination corresponding to the minimum value of the evaluation index as the target parameter combination based on the first model. Specifically, the evaluation index may include: root mean square error or cross entropy, etc.
[0074] In addition, the parameter determination device provided in the embodiment of the present invention may further include: an input module, which can be used to receive the expected duration of model training input by the user through the input interface.
[0075] The functions of each module in the embodiment of the present invention are detailed in the specific description of the above method embodiment, which will not be repeated here.
[0076] The parameter determination device provided by the embodiment of the present invention determines the target parameter selection method according to the time length that the user expects to complete the model training and the number index threshold of each preset parameter selection method, and then selects an array of candidate parameter combinations from the parameter space according to the target parameter selection method to reduce the search space, and evaluates the selected candidate parameter combinations to select the best parameter combination that can complete the training task within the expected time length of the model training. While improving efficiency and saving computing resources, it improves the accuracy of parameter combination selection, thereby improving the performance of the training model.
[0077] Embodiment 5
[0078] The internal functions and structure of the parameter determination device are described above. The device can be implemented as an electronic device. Figure 6 This is a schematic diagram of the structure of an electronic device embodiment provided by the present invention. Figure 6 As shown, the electronic device includes a memory 61 and a processor 62 .
[0079] The memory 61 is used to store programs. In addition to the above programs, the memory 61 can also be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phone book data, messages, pictures, videos, etc.
[0080] The memory 61 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0081] The processor 62 is coupled to the memory 61 and executes the program stored in the memory 61 to perform the operation steps of the parameter determination method described in the above embodiment.
[0082] In addition, the processor 62 may also include various modules described in the above embodiments to perform parameter determination operations, and the memory 61 may be used, for example, to store data required for these modules to perform operations and / or data outputted.
[0083] Further, if Figure 6 As shown, the electronic device may also include: a communication component 63, a power component 64, an audio component 65, a display 66 and other components. Figure 6 Only some components are shown schematically, which does not mean that the electronic device only includes Figure 6 Components shown.
[0084] The communication component 63 is configured to facilitate wired or wireless communication between the electronic device and other devices. The electronic device can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 63 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 63 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0085] The power supply component 64 provides power to various components of the electronic device. The power supply component 64 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device.
[0086] The audio component 65 is configured to output and / or input audio signals. For example, the audio component 65 includes a microphone (MIC), and when the electronic device is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 61 or sent via the communication component 63. In some embodiments, the audio component 65 also includes a speaker for outputting audio signals.
[0087] The display 66 includes a screen, which may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0088] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for determining parameters in computer modeling, characterized in that: include: Receive the expected duration of model training input by the user through the input interface, and determine the target parameter selection method according to the expected duration of model training and training data, including: obtaining a set of random parameter combinations; setting a first model according to the random parameter combination, inputting the training data into the first model for model training, and obtaining the time required to complete one model training; calculating the number of model training completions within the range of the expected duration of model training according to the time required to complete one model training; determining the target parameter selection method according to the number of model training completions; wherein, determining the target parameter selection method according to the number of model training completions includes: respectively obtaining the number index thresholds of multiple preset parameter selection methods, the number index threshold being the number of model trainings required to determine the parameters using the preset parameter selection method; among the preset parameter selection methods whose number index threshold is not greater than the number of model training completions, determining the preset parameter selection method with the largest number index threshold as the target parameter selection method; According to the target parameter selection method, a target parameter combination is determined.
2. The parameter determination method according to claim 1, characterized in that: The expected model training duration is the length of time the user expects to complete model training.
3. The parameter determination method according to claim 1, characterized in that: Determining the target parameter combination according to the target parameter selection method includes: According to the target parameter selection method, an array candidate parameter combination is selected from the parameter space; The candidate parameter combinations are evaluated, and a target parameter combination is determined from the candidate parameter combinations according to the evaluation result.
4. The parameter determination method according to claim 1, characterized in that: The preset parameter selection method includes: a spherical test method, a uniform test method or an orthogonal test method.
5. The parameter determination method according to claim 1, characterized in that: The obtaining of a set of random parameter combinations includes: Get the parameter list; A random value is set for each parameter in the parameter list to form a random parameter combination.
6. The parameter determination method according to claim 3, characterized in that: The step of evaluating the candidate parameter combinations and determining a target parameter combination from the candidate parameter combinations according to the evaluation result includes: Setting a first model according to the candidate parameter combination in the array, and obtaining an evaluation index of the first model; Based on the first model, the candidate parameter combination corresponding to the minimum value of the evaluation index is determined as the target parameter combination.
7. The parameter determination method according to claim 6, characterized in that: The evaluation indicators include: root mean square error or cross entropy.
8. A device for determining parameters in computer modeling, characterized in that: include: A determination module is used to receive the expected model training time input by the user through the input interface, and determine the target parameter selection method according to the expected model training time and training data; The determination module includes: a first acquisition unit, used to acquire a group of random parameter combinations; a model training unit, used to set a first model according to the random parameter combination, input training data into the first model for model training, and acquire the time required to complete one model training; a calculation unit, used to calculate the number of model training completions within the expected duration of the model training according to the time required to complete one model training; a determination unit, used to determine a target parameter selection method according to the number of model training completions; wherein the determination unit is specifically used to respectively acquire a number index threshold of multiple preset parameter selection methods, the number index threshold being the number of model trainings required for the preset parameter selection method to determine the parameters; and among the preset parameter selection methods whose number index threshold is not greater than the number of model training completions, the preset parameter selection method with the largest number index threshold is determined as the target parameter selection method; The parameter selection module is used to determine the target parameter combination according to the target parameter selection method.
9. The parameter determination device according to claim 8, characterized in that: The expected model training duration is the length of time the user expects to complete model training.
10. The parameter determination device according to claim 8, characterized in that: The parameter selection module includes: A parameter selection unit, used to select an array candidate parameter combination from the parameter space according to the target parameter selection method; An evaluation unit is used to evaluate the candidate parameter combinations and determine a target parameter combination from the candidate parameter combinations according to the evaluation result.
11. The parameter determination device according to claim 8, characterized in that: The preset parameter selection method includes: a spherical test method, a uniform test method or an orthogonal test method.
12. The parameter determination device according to claim 8, characterized in that: The first acquisition unit is specifically used to acquire a parameter list, and set a random value for each parameter in the parameter list to form a random parameter combination.
13. The parameter determination device according to claim 10, characterized in that: The evaluation unit is specifically used to set a first model according to the candidate parameter combinations in the array, obtain an evaluation index of the first model, and based on the first model, determine the candidate parameter combination corresponding to the minimum value of the evaluation index as the target parameter combination.
14. The parameter determination device according to claim 13, characterized in that: The evaluation indicators include: root mean square error or cross entropy.
15. An electronic device, characterized in that: include: Memory, used to store programs; A processor, configured to run the program stored in the memory, to: Execute the parameter determination method described in any one of claims 1 to 7. 16 . A computer-readable storage medium having instructions stored thereon, wherein the instructions are used to execute the parameter determination method according to any one of claims 1 to 7.
