Generating ML pipeline using exploratory and generative code generation tool

A combined system using generative and exploratory code generation tools addresses the inefficiencies of existing AutoML tools by generating reliable and customizable ML pipelines efficiently, leveraging domain-specific practices and performance metrics.

JP2024146866APending Publication Date: 2024-10-15FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2024051767
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-31
Filing Date
2024-03-27
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing automated machine learning (AutoML) tools, such as generative and exploratory code generation tools, have limitations in efficiency and reliability, with generative tools requiring significant effort for source code labeling and exploratory tools needing extensive computational resources and time to find optimal ML pipelines.

Method used

A system combining both generative and exploratory code generation tools to generate machine learning pipelines, leveraging the strengths of each to quickly produce customizable and reliable ML pipelines by selecting pipeline components based on performance metrics.

Benefits of technology

This approach allows for the generation of ML pipelines with reasonable performance in a shorter time, incorporating domain-specific best practices while ensuring reliability, thus improving the efficiency and effectiveness of machine learning project development.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146866000001_ABST
    Figure 2024146866000001_ABST
Patent Text Reader

Abstract

To provide a method for generating ML pipelines using exploratory and generative code generation tools, and a storage medium.SOLUTION: A method includes: receiving an input dataset associated with a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a code generation tool; executing one or more exploratory code generation tools and selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by executing the first ML pipeline on the input dataset; determining a second performance metric by executing the second ML pipeline on the input dataset; and rendering an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline, based on a comparison of the first performance metric with the second performance metric.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] Embodiments described in this disclosure relate to generating machine learning (ML) pipelines using exploratory and generative code generation tools. [Background technology]

[0002] Advances in the fields of machine learning and artificial intelligence (AI) have led to the development of automated code generation tools. These tools are increasingly being used by students, researchers, and engineers to solve various types of engineering and scientific problems. An automated machine learning tool is a form of code generation tool that provides a process that can be used to automate the task of applying machine learning to real-world problems. For example, an automated machine learning tool can help a user through different stages of the development of a machine learning project, i.e., from a raw dataset to building a machine learning model for deployment. Novice users can use an automated machine learning tool to learn machine learning approaches for processing data and training a machine learning model. Meanwhile, data scientists or expert users can use an automated machine learning tool to improve the accuracy of a machine learning model by applying different approaches and diverse pipeline utilization. An automated machine learning tool can generate computer executable code for a given task and dataset, which is typically provided by the user of the tool.

[0003] The subject matter claimed in this disclosure is not limited to embodiments that solve any disadvantages or that operate only in environments such as those described above. Rather, this background is only provided to illustrate one example technology area where some embodiments described in this disclosure may be practiced. Summary of the Invention

[0004] According to an aspect of the invention, a method may include a set of operations, the set of operations including receiving an input dataset associated with a machine learning (ML) task, and generating a first ML pipeline associated with the ML task by executing a generative code generation tool. The set of operations may further include determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools, and selecting a pipeline component from the set of pipeline components. The set of operations may further include modifying the first ML pipeline based on the selection to generate a second ML pipeline, and determining a first performance metric by executing the first ML pipeline on the input dataset. The set of operations may further include determining a second performance metric by executing the second ML pipeline on the input dataset, and controlling an electronic device to render a recommendation of the ML pipeline as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric.

[0005] The object and advantages of the embodiments will be realized and achieved at least by the elements, features, and combinations particularly pointed out in the claims.

[0006] Both the foregoing general description and the following detailed description are provided by way of example and explanation, and are not limitations of the invention as claimed. [Brief description of the drawings]

[0007] Exemplary embodiments will be described and explained with additional specificity and detail through the use of the accompanying drawings in which:

[0008] [Figure 1]FIG. 1 depicts an example environment for generating a machine learning (ML) pipeline using exploratory and generative code generation tools.

[0009] [Diagram 2] FIG. 1 is a block diagram illustrating an example electronic device for generating a machine learning (ML) pipeline using exploratory and generative code generation tools.

[0010] [Diagram 3] FIG. 1 illustrates a flowchart of an example method for generating a machine learning (ML) pipeline using exploratory and generative code generation tools.

[0011] [Figure 4A] FIG. 1 illustrates an example scenario for modifying a first ML pipeline. [Figure 4B] FIG. 1 illustrates an example scenario for modifying a first ML pipeline.

[0012] [Diagram 5] FIG. 1 illustrates an example scenario for the generation of a machine learning (ML) pipeline using exploratory and generative code generation tools.

[0013] All figures are in accordance with at least one embodiment described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Some embodiments described in this disclosure relate to methods and systems for the generation of machine learning (ML) pipelines using exploratory and generative code generation tools. Instead of selecting one type of automated machine learning (AutoML) tool, such as an exploratory code generation tool or a generative code generation tool, in this disclosure, the machine learning (ML) pipeline generated by the generative code generation tool can be combined with various models explored by the exploratory code generation tool. Thus, the advantages associated with each of the exploratory and generative code generation tools can be preserved, and a customizable ML pipeline with improved performance can be synthesized.

[0015] In accordance with one or more embodiments of the present disclosure, the field of artificial intelligence (AI) models may be improved by configuring a computer system to enable the computer system to generate a machine learning (ML) pipeline using exploratory and generative code generation tools. The computer system may receive an input dataset associated with a machine learning (ML) task. The computer system may generate a first ML pipeline associated with the ML task by executing the generative code generation tool. The computer system may determine a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools. The computer system may select a pipeline component from the set of pipeline components. The computer system may modify the first ML pipeline based on the selection to generate a second ML pipeline. The computer system may determine a first performance metric by executing the first ML pipeline on the input dataset. The computer system may determine a second performance metric by executing the second ML pipeline on the input dataset. The computing system may control the electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric.

[0016] An automated machine learning tool is a form of code generation tool that provides a process that can be used to automate the task of applying machine learning to real-world problems. For example, an automated machine learning tool can help a user through different stages of the development of a machine learning project, i.e., from a raw dataset to building a machine learning model for deployment. Thus, automated machine learning (AutoML) can be a low-code / no-code (LCNC) solution to solving machine learning problems. For a given input dataset, AutoML can automatically train an ML model and make predictions. An automated machine learning tool can generate computer-executable code for a given task and dataset, which is typically provided by a user of the tool.

[0017] The two main approaches of AutoML tools are generative code generation tools and exploratory code generation tools. Generative code generation tools can generate executable ML pipelines for data scientists in a short time. Here, the ML pipelines can be generated based on existing domain-specific best practices. Generative code generation tools may require a lot of effort in source code labeling and advanced engineering work to extract templates of ML pipelines from source codes written by data scientists. On the other hand, exploratory code generation tools may require a lot of computational resources and long computational time to explore the optimal ML pipeline from the search space of ML pipelines. However, different exploratory code generation tools may have their own systematic engineering approaches to explore various options of feature engineering and machine learning algorithms. Thus, there is no need to prepare training data to generate ML pipelines using exploratory code generation tools. Moreover, theoretically, for any given dataset and for a given sufficient time period and budget to explore a large search space of ML pipelines, exploratory code generation tools may be more reliable than generative code generation tools to find ML pipelines with reasonable performance. Thus, generative and exploratory code generation tools each have their advantages and disadvantages.

[0018] Meanwhile, the disclosed system can generate a machine learning (ML) pipeline using both an exploratory code generation tool and a generative code generation tool. The disclosed system can combine the machine learning pipeline generated by the generative code generation tool with pipeline components selected from a set of pipeline components determined by running one or more exploratory code generation tools. Thus, the disclosed system can retain the advantages of both the exploratory code generation tool and the generative code generation tool. That is, the disclosed system can recommend an ML pipeline with reasonable performance for an ML task in a shorter period of time. Because a generative code generation tool is used, the ML pipeline can be recommended by considering domain-specific best practices used by data scientists. Furthermore, because one or more exploratory code generation tools are used, the recommended ML pipeline can have a reliable and reasonable performance score.

[0019] Embodiments of the present disclosure will now be described with reference to the accompanying drawings.

[0020] FIG. 1 is a diagram depicting an example environment relevant to the synthesis of a machine learning (ML) pipeline for automated pipeline recommendation, configured in accordance with at least one embodiment described in the present disclosure. Referring to FIG. 1, an environment 100 is shown. The environment 100 may include a system. The system may include an electronic device 102, a web-based data source 104, a server 106, a database 108, and a communication network 110. The electronic device 102 may include or have access to a generative code generation tool 102A and an exploratory code generation tool 102B. The electronic device 102, the web-based data source 104, and the database 108 may be communicatively coupled to each other via the communication network 110. The database 108 may include an input data set 112. Further shown in FIG. 1 is a user 114 associated with or operating the electronic device 102.

[0021] The system (not shown) may include suitable logic, circuitry, interfaces, and / or code that may be configured to generate a machine learning (ML) pipeline using the exploratory and generative code generation tool recommendations as described herein. Examples of systems include, but are not limited to, meta-learning machines, mobile devices, desktop computers, laptops, computer workstations, computing devices, mainframe machines, servers such as cloud servers, and server clusters. In one or more embodiments, the system may include a user end terminal device and a server communicatively coupled to the user end terminal device. The system may be implemented using hardware including a processor, a microprocessor (e.g., performing or controlling the execution of one or more operations), a field-programmable gate array (FPGA), or an application-specific integrated circuit (ASIC). In some other examples, the system may be implemented using a combination of hardware and software.

[0022] The electronic device 102 may include appropriate logic, circuitry, interfaces, and / or code that may be configured to render ML pipeline recommendations on a display screen to assist a user 114 (e.g., a developer). Examples of electronic device 102 include, but are not limited to, meta-learning machines, mobile devices, desktop computers, laptops, computer workstations, computing devices, mainframe machines, servers such as cloud servers, and server clusters. In one or more embodiments, the electronic device 102 may include a user end terminal device and a server communicatively coupled to the user end terminal device.

[0023] The generative code generation tool 102A can be used to generate a first ML pipeline associated with an ML task. In one embodiment, the generative code generation tool 102A may be a generative automated machine learning (AutoML) tool and may be trained with a human-written pipeline. The generative code generation tool 102A may be configured to generate an ML pipeline by considering domain-specific best practices of a data scientist or ML engineer. The generative code generation tool 102A may not need to explore and dynamically execute a large number of pipeline candidates to generate a first ML pipeline associated with an ML task. Thus, the generative code generation tool 102A may run for a shorter execution time to generate the first ML pipeline. The generated first ML pipeline may need to be run multiple times because the generated first ML pipeline may need to be customized for business purposes. Thus, the shorter execution time and smaller cost associated with the generative code generation tool 102A may benefit the overall customization procedure of the first ML pipeline. The generative code generation tool 102A can generate the first ML pipeline without dynamically running multiple candidate ML pipelines. By way of example, the generative code generation tool 102A can include "SapientML", "AlphaD3M®", "Oracle® AutoML", etc.

[0024] The exploratory code generation tool 102B can be used to determine a set of pipeline components associated with an ML task. The exploratory code generation tool 102B can view the automated ML problem as a search and optimization problem, in which the ML pipeline component with the maximum value of the performance score can be selected from a search space of pipeline components.

[0025] For any given dataset, the exploratory code generation tool 102B is more reliable than other code generation approaches to find a ML pipeline (e.g., a pipeline with a set of pipeline components) with reasonable performance, given sufficient time and budget to explore a large search space of ML pipelines. However, the exploratory code generation tool 102B must explore and dynamically execute a large number of potential ML pipelines, which may result in long processing times and high search costs. Also, the exploratory code generation tool 102B may not be able to learn from the domain-specific best practices of data scientists. For example, the exploratory code generation tool 102B may not be able to apply certain feature engineering transformations to certain dataset columns as a human data scientist would.

[0026] The web-based data source 104 may be a platform for hosting web data such as datasets, discussions, code repositories, and / or executable kernels (e.g., code notebooks). In one embodiment, the web-based data source 104 may be a website server, cloud storage, a web application, or a web-based service that exposes a web API for data download. The kernel may include a machine learning pipeline for a particular dataset. In some cases, an input dataset 112 may be received from the web-based data source 104 and stored in the database 108. In one embodiment, the input dataset 112 may be received from a proprietary data source that is different (not linked) from the web-based data source 104.

[0027] Server 106 may include suitable logic, circuitry, and interfaces, and / or code that may be configured to store information related to the input dataset and the generated first ML pipeline. Server 106 may be implemented as a cloud server and may perform operations via web applications, cloud applications, HTTP requests, repository operations, file transfers, etc. Other implementations of server 106 include, but are not limited to, a database server, a file server, a web server, a media server, an application server, a mainframe server, or a cloud computing server.

[0028] In at least one embodiment, the server 106 may be implemented as multiple distributed cloud-based resources using a number of techniques well known to those skilled in the art. Those skilled in the art will appreciate that the scope of the disclosure is not limited to the implementation of the server 106 and the electronic device 102 as two separate entities. In certain embodiments, the functionality of the server 106 may be incorporated in whole or at least in part into the electronic device 102 without departing from the scope of the disclosure. In some examples, the server 106 may host the database 108. Alternatively, the server 106 may be separate from the database 108 or communicatively coupled to the database 108.

[0029] The database 108 may include suitable logic, interfaces, and / or code that may be configured to store the input data set 112. The database 108 may be derived from data from a relational or non-relational database, or a set of comma-separated values ​​(csv) files in traditional or big data storage. The database 108 may be stored or cached on a device, such as the server 106 or the electronic device 102. The device that stores the database 108 may be configured to receive a query for the input data set 112 from the electronic device 102. In response, the device that stores the database 108 may be configured to retrieve and provide the queried input data set 112 to the electronic device 102 based on the received query. In some embodiments, the database 108 may be hosted on multiple servers in one or more locations. The operations of the database 108 may be performed using hardware, including a processor, a microprocessor (e.g., performing or controlling the execution of one or more operations), a field-programmable gate array (FPGA), or an application-specific integrated circuit (ASIC). In some other examples, the database 108 may be implemented using software.

[0030] The communication network 110 may include a communication medium through which the electronic device 102 may communicate with the server 104, which may store the database 108. Examples of the communication network 110 may include, but are not limited to, the Internet, a cloud network, a Wireless Fidelity (Wi-Fi) network, a Personal Area Network (PAN), a Local Area Network (LAN), and / or a Metropolitan Area Network (MAN). Various devices in the environment 100 may be configured to connect to the communication network 110 according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, Transmission Control Protocol and Internet Protocol (TCP / IP), User Datagram Protocol (UDP), Hypertext Transfer Protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE802.11, light fidelity (Li-Fi), 802.16, IEEE802.11s, IEEE802.11g, multi-hop communications, wireless access points (APs), device-to-device communications, cellular communications protocols, and / or Bluetooth (BT) communications protocols, or combinations thereof.

[0031] The input dataset 112 may be data received from a user 114 or a web-based data source 104, for which an ML pipeline recommendation may need to be made. In one embodiment, the input dataset 112 may be a tabular dataset, such as a dataset related to a home price prediction problem. The received input dataset 112 may be in raw format or may be stored in the database 108 in a format such as csv, tsv, txt, or json.

[0032] In operation, user input may be provided via the electronic device 102. For example, the electronic device 102 may enable a user 114 to send a request including a dataset (such as the input dataset 112) to the system to generate an ML pipeline recommendation for the dataset in the form of computer-executable code or kernels (such as a computer-executable notebook).

[0033] The system may receive an input dataset 112 associated with an ML task via a request and generate a first ML pipeline associated with the ML task by executing a generative code generation tool 102A. The generative code generation tool 102A may also be referred to as a generative AutoML tool, which may generate an ML pipeline for a predictive task on a new dataset by learning from a corpus of old datasets and a human-written ML pipeline. As an example, the generative code generation tool 102A may be "SapientML". Details related to the generation of the first ML pipeline are further provided, for example, in FIG. 3 (304).

[0034] The system may determine a set of pipeline components associated with an ML task by executing one or more exploratory code generation tools, such as exploratory code generation tool 102B. Each of the one or more exploratory code generation tools may require a different configuration. During execution of the exploratory code generation tool 102B, a specification may be provided as an input to the exploratory code generation tool 102B. To determine the set of pipeline components, the system may execute the exploratory code generation tool 102B based on the received specification. Details related to determining the set of pipeline components are further provided in, for example, FIG. 3 (306).

[0035] The system may select a pipeline component from a set of pipeline components. To select a pipeline component, performance data associated with the set of pipeline components may be determined. The pipeline component may then be selected based on the performance data. More details regarding the selection of pipeline components are provided further in, for example, FIG. 3 (reference number 308).

[0036] The system can modify the first ML pipeline based on the selection to generate a second ML pipeline. To generate the second ML pipeline, the system can replace selected pipeline components from the set of pipeline components with pipeline components of the first ML pipeline. Details related to modifying the first ML pipeline are provided further in, for example, FIG. 3 (310).

[0037] The system can determine a first performance metric by running the first ML pipeline on the input dataset. The first performance metric can be a predictive metric, such as an accuracy metric, a confusion matrix, a precision metric, etc., that can be used to evaluate the first ML pipeline. More details regarding determining the first performance metric are provided further in, for example, FIG. 3 (312).

[0038] The system can determine a second performance metric by running the second ML pipeline on the input dataset. Similar to the first performance metric, the second performance metric can be a predictive metric that can be used to evaluate the second ML pipeline. More details regarding determining the second performance metric are provided further in, for example, FIG. 3 (314).

[0039] The system can control the electronic device 102 to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric, where the ML pipeline can be recommended as the first ML pipeline if the first performance metric is greater than the second performance metric. Similarly, the second ML pipeline can be recommended if the first performance metric is less than the second performance metric. Details related to controlling the electronic device 102 are further provided in, for example, FIG. 3 (316).

[0040] Modifications, additions, or omissions may be made to FIG. 1 without departing from the scope of the present disclosure. For example, environment 100 may include more or fewer elements than shown and described in this disclosure. For example, in some embodiments, environment 100 may include electronic device 102 but not database 108. Further, in some embodiments, functionality of database 108 may be incorporated into electronic device 102 without departing from the scope of the present disclosure.

[0041] Figure 2 is a block diagram illustrating an example system for generating a machine learning (ML) pipeline using exploratory and generative code generation tools, arranged in accordance with at least one embodiment described in this disclosure. Figure 2 will be described in conjunction with the elements of Figure 1. With reference to Figure 2, a block diagram 200 of an electronic device 102 is shown. The electronic device 102 can include a generative code generation tool 102A, an exploratory code generation tool 102B, a processor 204, a memory 206, a network interface 208, an input / output (I / O) device 210, and a display device 210A.

[0042] The system 202 may include suitable logic, circuitry, interfaces, and / or code that may be configured to generate an ML pipeline using the exploratory and generative code generation tool recommendations as described herein. Examples of the system 202 include, but are not limited to, a meta-learning machine, a mobile device, a desktop computer, a laptop, a computer workstation, a computing device, a mainframe machine, a server such as a cloud server, and a collection of servers. In one or more embodiments, the system 202 may include a user end terminal device and a server communicatively coupled to the user end terminal device. The system 202 may be implemented using hardware, including a processor, a microprocessor (e.g., performing or controlling the execution of one or more operations), a field-programmable gate array (FPGA), or an application-specific integrated circuit (ASIC). In some other examples, the system may be implemented using a combination of hardware and software.

[0043] The processor 204 may include suitable logic, circuitry, and / or interfaces that may be configured to execute program instructions associated with different operations performed by the system 202. The processor 204 may include any suitable special purpose or general purpose computer, computing entity, or processing device, including various computer hardware or software modules, and may be configured to execute instructions stored on any suitable computer-readable storage medium. For example, the processor 204 may include a microprocessor, a microcontroller, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or any other digital or analog circuitry configured to interpret and / or execute program instructions and / or process data.

[0044] 2 as a single processor, processor 204 may include any number of processors configured, individually or collectively, to perform or direct the performance of any number of operations of electronic device 102 as described in this disclosure. Furthermore, one or more of the processors may reside on one or more different electronic devices, such as different servers. In some embodiments, processor 204 may be configured to interpret and / or execute program instructions and / or process data stored in memory 206. Some examples of processor 204 may be a graphics processing unit (GPU), a central processing unit (CPU), a Reduced Instruction Set Computer (RISC) processor, an ASIC processor, a complex instruction set computer (CISC) processor, a co-processor, and / or combinations thereof.

[0045] The memory 206 may include appropriate logic, circuitry, interfaces, and / or code that may be configured to store the input data set 112. The memory 206 may store program instructions executable by the processor 204. In particular embodiments, the memory 206 may be configured to store an operating system and associated application specific information. The memory 206 may include computer-readable storage media that carry or have stored thereon computer-executable instructions or data structures. Such computer-readable storage media may include any commercially available media that can be accessed by a general purpose or special purpose computer, such as the processor 204. By way of example, and not limitation, such computer-readable storage media may include tangible or non-transitory computer-readable media including random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory devices (e.g., solid-state memory devices), or any other storage medium that can be used to carry or store specific program code in the form of computer-executable instructions or data structures and that can be accessed by a general-purpose or special-purpose computer. Combinations of the above may also be included within the scope of computer-readable storage media. Computer-executable instructions may include, for example, instructions and data configured to cause the processor 204 to perform a particular operation or group of operations associated with the electronic device 102.

[0046] The network interface 208 may comprise appropriate logic, circuitry, interfaces, and / or code that may be configured to establish communications between the electronic device 102 and a server / device of the database 108 over the communications network 110. The network interface 208 may be implemented using various known technologies to support wired or wireless communications of the electronic device 102 over the communications network 110. The network interface 208 may include, but is not limited to, an antenna, a radio frequency (RF) transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a code decoder (CODEC) chipset, a subscriber identity module (SIM) card, and / or a local buffer.

[0047] The I / O device 210 may include appropriate logic, circuitry, interfaces, and / or code that may be configured to receive user input. For example, the I / O device 210 may receive a first user input corresponding to the input data set 112. The I / O device 210 may include various input and output devices that may be configured to communicate with other components, such as the processor 204 and the network interface 208. Examples of input devices may include, but are not limited to, a touch screen, a keyboard, a mouse, a joystick, and / or a microphone. Examples of output devices may include, but are not limited to, a display (e.g., display device 210A) and a speaker.

[0048] The display device 210A may include suitable logic, circuitry, and / or code that may be configured to display the automated pipeline recommendations. The display device 210A may be configured to receive user input from the user 114 (e.g., a first user input corresponding to a request for the input data set 112). In such a case, the display device 210A may be a touch screen that receives the user input. The display device 210A may be implemented through a number of known technologies, such as, but not limited to, liquid crystal display (LCD) display, light emitting diode (LED) display, plasma display, and / or organic LED (OLED) display technologies, and / or other display technologies.

[0049] Modifications, additions, or omissions may be made to the example electronic device 102 without departing from the scope of the present disclosure. For example, in some embodiments, the example electronic device 102 may include any number of other components that may not be shown or described for the sake of brevity.

[0050] FIG. 3 illustrates a flowchart of an exemplary method for generating a machine learning (ML) pipeline using an exploratory and generative code generation tool, according to one embodiment of the disclosure. FIG. 3A is described in conjunction with elements of FIGS. 1 and 2. Referring to FIG. 3, a flowchart 300 is shown. The method illustrated in the flowchart 300 may begin at 302 and may be performed by any suitable system, device, or apparatus, such as the exemplary electronic device 102 of FIG. 1 or the processor 204 of FIG. 2. Although illustrated by separate blocks, steps and operations associated with one or more of the blocks of the flowchart 300 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0051] At block 302, an input dataset 112 associated with an ML task may be received. In one embodiment, the processor 204 may be configured to receive the input dataset 112. Examples of ML tasks include, but are not limited to, a classification task, a regression task, a clustering task, a generative task, or an adversarial learning task. In one embodiment, information associated with one or more target features of the input dataset 112 may also be received. Such information may be required to determine the type of ML task a user wants or can perform using the input dataset 112. In an exemplary embodiment, the input dataset 112 may be a tabular dataset associated with a home price prediction problem. The input dataset 112 may include features such as land area, condition of the home, year of construction of the home, pool area, and sale price of the home. The ML task may be a regression task, and the target feature of the ML task may be the sale price.

[0052] In block 304, a first ML pipeline associated with the ML task may be generated by executing the generative code generation tool 102A. In one embodiment, the processor 204 may be configured to generate a first ML pipeline associated with the ML task by executing the generative code generation tool 102A. The generative code generation tool 102A may also be referred to as a generative AutoML tool, which can rapidly generate high-quality ML pipelines for predictive tasks on new datasets by learning from a corpus of old datasets and human-written ML pipelines. For example, a generative code generation tool 102A such as "SapientML" may use a three-stage program synthesis approach that infers based on progressively smaller search regions to reduce the search space. In the first step, feasible ML components of the pipeline may be predicted using an ML model. In the second stage, syntactic constraints associated with the ML model and the corpus may be used to condense the components into a limited pool of feasible concrete pipelines. In the third stage, a selected number of pipelines (from the second stage) may be evaluated for pipeline recommendation.

[0053] The generative code generation tool 102A may not need to explore and dynamically execute a large number of potential ML pipelines to generate the first ML pipeline. Thus, the generative code generation tool 102A may generate the first ML pipeline in a shorter time. In scenarios where the features associated with the input dataset 112 are unique, a human-written pipeline may not be available. In such cases, the generative code generation tool 102A may not be able to guarantee a good performance score for the generated ML pipeline.

[0054] In one embodiment, the first ML pipeline may include a first plurality of pipeline components representing a first set of transformations on the input dataset and a first model selection operation for the ML task. The first ML pipeline may include zero or at least one pre-processing component, such as a data pre-processing component. In some cases, the first plurality of pipeline components may include a feature selection component and / or a feature engineering component in addition to the data pre-processing component. A given pre-processing component may be applied to a subset or the entire set of features of the corresponding input dataset 112, and the ML model may be applied to the entire set of features.

[0055] The data preprocessing component can preprocess the input dataset 112 and can include, for example, a missing value handling component, a data imbalance component, and a scaling component applicable to the input dataset 112. Data imbalance of the input dataset 112 can be handled using data imbalance components such as "imblearn.under_sampling", "NearMiss imblearn.over_sampling.SMOTENC", etc. The input dataset 112 can be scaled using scaling components such as "sklearn.preprocessing.StandardScaler", "sklearn.preprocessing.MinMaxScaler", etc. The feature selection component can select a subset of features from a set of features associated with the received input dataset 112. Examples of feature selection components can include, but are not limited to, "pandas.DataFrame.drop" and "sklearn.feature_selection.RFE". The feature engineering component can extract features from the input dataset 112. For example, the feature engineering component can include "patsy.dmatrices", "sklearn.cluster.KMeans", etc. The pipeline components may also include feature extraction components such as "pandas.to_datetime", "sklearn.feature_extraction.text.TfidfVectorizer", etc. The pipeline components may also include categorical encoder components such as "pandas.get_dummies", "sklearn.preprocessing.LabelEncoder", etc.

[0056] The first ML pipeline may also include an ML model component associated with a model selection operation for the ML task. The model selection operation may be used to select a first ML model, such as a regression model or a classification model, based on the ML task. For example, the model selection and evaluation component may select the first ML model as "sklearn.model_selection.learning_curve", "sklearn.model_selection.cross_val_predict", etc. The first ML pipeline may further include a model training operation that may train the selected first ML model.

[0057] In one embodiment, the processor 204 can be configured to receive a specification that can include computational resource constraints associated with the system 202 and performance requirements associated with an ML task. The computational resource constraints can include, for example, the number of available central processing units (CPUs), the number of graphical processing units (GPUs), available memory for computation or storage, etc. The performance requirements associated with an ML task can include, for example, a maximum training time, a maximum execution time for execution of one or more exploratory code generation tools, etc.

[0058] At block 306, a set of pipeline components associated with the ML task may be determined by executing one or more exploratory code generation tools, such as exploratory code generation tool 102B. In one embodiment, the processor 204 may be configured to determine the set of pipeline components associated with the ML task by executing one or more exploratory code generation tools.

[0059] In one embodiment, the specification may be provided as an input to the exploratory code generation tool 102B during execution of the exploratory code generation tool 102B. Additionally or alternatively, user preferences for the type of ML model (e.g., stack model) of the pipeline components may be provided via the electronic device 102. Upon receiving the specification and / or user preferences, the processor 204 may be configured to determine a set of pipeline components.

[0060] As described above, a set of pipeline components associated with an ML task may be determined by executing one or more exploratory code generation tools, such as exploratory code generation tool 102B. Each of the one or more exploratory code generation tools may require a different configuration. In some cases, the specification may provide overall constraints, such as available computational resources and execution time. The specification may further provide appropriate configurations, such as the number of available CPU cores or maximum training time. Based on the specification, constraints associated with the execution of the one or more exploratory code generation tools may be determined and enforced during execution. For example, the number of exploratory code generation tools that can be used to determine the set of pipeline components may depend on the number of available graphical processing units (GPUs).

[0061] In one embodiment, the processor 204 may be configured to determine a maximum execution time for executing one or more exploratory code generation tools based on the specifications. The processor 204 may further be configured to control the execution of the one or more exploratory code generation tools based on the maximum execution time. The one or more exploratory code generation tools may be executed to perform a search over an optimization space of pipeline components and determine a set of pipeline components based on the search. As described above, the exploratory code generation tool 102B, e.g., the "Mljar-supervised" tool, may execute multiple ML pipelines available in the search space to determine a set of pipeline components associated with an ML task. The maximum execution time may be a maximum duration that each of the one or more exploratory code generation tools, such as the exploratory code generation tool 102B, may be executed. However, it should be noted that if computational resources and execution time are not a primary constraint, one or more exploratory code generation tools may be executed for a longer period of time to obtain a potentially better set of pipeline components.

[0062] In conjunction with the set of pipeline components, the processor 204 may generate performance data associated with such components by using one or more exploratory code generation tools (e.g., the exploratory code generation tool 102B). The performance data may include a performance score for each pipeline component of the set of pipeline components.

[0063] In one embodiment, the set of pipeline components may include a set of function calls corresponding to a set of ML models. Additionally or alternatively, the set of pipeline components may include other components, such as a data preprocessing component, a feature selection component, a feature engineering component, or a model training component. The set of models may be available as an option to replace a model in the first ML pipeline generated by the generative code generation tool 102A. As an example, the set of models may be one of a single layer of ML models with hyperparameter optimization, a stack of two layers of ML models, an ensemble of a single layer of two ML models, or an ensemble of two layers of two ML models. The single layer of ML models with hyperparameter optimization may be a base ML model. In one example, the single layer of ML models may be a bagging model, e.g., a “random forest” model. In another example, the single layer of ML models may be a boosted model, e.g., an adaptive boosting (“AdaBoost”) model, a gradient boosting model, and an extreme gradient boosting model (“XGBoost”) model. It should be noted that the training dataset may be sampled into a set of samples before applying it to the bagged and / or boosted models. Both bagged and boosted models are two main types of ensemble learning methods that can take a collection of weak learners (e.g., decision trees) and form a single strong learner. The main difference between bagged and boosted models is in the way the bagged and / or boosted models are trained. In bagged models, the weak learners can be trained in parallel, while in boosted models, the weak learners can be trained sequentially.

[0064] A two-layer stack of ML models can stack a first layer of ML model onto a second layer of ML model. A single-layer ensemble of two ML models can include two models in one layer. A two-layer ensemble of two ML models can include a first model in the first layer and a second model in the second layer.

[0065] Unlike bagging, in ensemble stacking, the ML models may be different and may be fitted to the same training dataset rather than to samples of the training dataset. Furthermore, unlike boosting, a single ML model in ensemble stacking may be used to learn to combine predictions from the participating ML models rather than a sequence of ML models that may modify the predictions of previous ML models. The architecture of an ensemble stacking model may include two or more base ML models, often referred to as "Level 0" ML models, and a meta-model, often referred to as a "Level 1" ML model, that can combine predictions of the base ML models. The "Level 0" ML models may be models that are fitted to the training dataset. Predictions from the "Level 0" ML models may be compiled and provided to a "Level 1" ML model. The "Level 1" ML model may learn to provide predictions based on how to best combine predictions of the base models.

[0066] Each ML model may be associated with a performance score (i.e., a score included in the performance data). The performance score may measure a predictive metric or training time of a corresponding ML model of a set of ML models on an input dataset. An example of a leaderboard listing model selection components and information associated with such components (e.g., performance data) is shown in Table 1 below: [Table 1] Exemplary performance data [Table 1] From Table 1, it can be seen that the area under the curve (AUC) for each ML model in the set of ML models is determined, and the value of the AUC for each ML model in the set of ML models is provided in the corresponding row under the "Metric Value" column. Furthermore, Table 1 provides, under the "Training Time" column, a training time period that can be used to train each ML model. The data provided in Table 1 is merely an example, and such examples should not be construed as limiting the present disclosure.

[0067] It should be noted that the exploratory code generation tool 102B, e.g., “Mljar-supervised®”, can approach the pipeline recommendation problem for a dataset as a search and optimization problem (i.e., selecting the best pipeline from a space of candidates). In some examples, the exploratory code generation tool 102B may rely on a particular aspect of pipeline construction, e.g., model building by neural architecture search for deep learning models, hyperparameter optimization for neural architectures or traditional ML models, or feature engineering. The exploratory code generation tool 102B may run multiple ML pipelines available in the space to determine a set of pipeline components associated with an ML task. Thus, for a given input dataset, such as the input dataset 112, and a given sufficient time period and budget for exploring the vast space of ML pipelines, the exploratory code generation tool 102B is more reliable in finding a pipeline with reasonable performance than the generative code generation tool 102A.

[0068] At block 308, a pipeline component may be selected from the set of pipeline components. In one embodiment, the processor 204 may be configured to select a pipeline component from the set of pipeline components. By way of example and not limitation, where the set of pipeline components includes a set of function calls corresponding to a set of ML models (as shown in Table 1), the function calls (i.e., pipeline components) corresponding to the ML models may be selected from the set of pipeline components.

[0069] In one embodiment, the processor 204 may be configured to select a pipeline component from the set of pipeline components based on the performance data. The performance data may include a performance score for each pipeline in the set of pipeline components, and the performance score for the selected pipeline component may be the maximum value in the performance data. The performance score may measure a prediction metric or training time of a corresponding ML model in the set of ML models for the input dataset. The prediction metric may include, for example, an accuracy metric, a confusion matrix, a precision metric, a recall metric, an F-score, an area under the curve (AUC), a mean absolute error (MAE), a mean squared error (MSE), an R2 score, an adjusted R2, and the like. As an example, the performance score of the first ML model may be determined as “0.83945” for AUC and “150” for training time. The performance score of the first ML model may be compared to each ML model in Table 1 to select the pipeline component. Referring to FIG. 1, a pipeline component (i.e., an ML model) that can be selected from the set of ML models can be “46_CatBoost”, which has a metric value as “0.83950733”, and a training time as “104.52” based on the comparison.

[0070] In one embodiment, the processor 204 may be configured to parse the contents of the first ML pipeline (obtained at 304) to determine references to the first ML model via function calls in the contents. The first ML pipeline may be parsed using a program parser. In parsing the contents of the first ML pipeline, the processor 204 may be further configured to select a function call to a second ML model as a pipeline component from the set of function calls based on a comparison of performance scores of the first ML model with other ML models in the set of ML models. It will be appreciated that the program parser may be part of a compiler or may be a program that may be used to parse a pipeline, such as the first ML pipeline. References to the first ML model via function calls may be determined using the program parser. For example, the first ML model may be selected as "CatBoostRegressor(X, Y)".

[0071] At block 310, the first ML pipeline may be modified based on the selection to generate a second ML pipeline. In one embodiment, the processor 204 may be configured to modify the first ML pipeline based on the selection to generate the second ML pipeline. A pipeline component selected from a set of pipeline components may be substituted for a pipeline component of the first ML pipeline to generate the second ML pipeline. For example, a model selection component may be selected from a set of pipeline components. A first ML model selection component associated with the first ML pipeline may be substituted with a model selection component to generate the second ML pipeline.

[0072] In one embodiment, the modifications may include changes associated with variable names, model classes, and module paths of pipeline components of the first ML pipeline. The Scikit-Learn library may be a popular open source software (OSS) that may support popular machine learning algorithms and expose application programming interfaces (APIs) in a unified interface. For example, different ML algorithms may have methods with the same name, such as fit(), predict(), and predict_proba(). A generative code generation tool 102A, such as the SapientML tool, may employ the Scikit-Learn library. The variable names, model classes, and module paths from the first ML pipeline generated using the generative code generation tool 102A, such as the SapientML tool, may be replaced with the variable names, model classes, and module paths from the selected pipeline components (generated by running the exploratory code generation tool 102B) based on a predefined mapping table.

[0073] An example mapping from "Mljar-supervised" tools to open source software (OSS) classes is shown in Table 2 below: [Table 2] Example mappings from "Mljar-supervised" tools to OSS classes [Table 2] The data provided in Table 2 are merely examples, and such examples should not be construed as limiting the present disclosure.

[0074] In one embodiment, the first ML pipeline may be further modified based on hyperparameters of the selected pipeline components (e.g., function calls to the ML model). The hyperparameters may control the training of the first ML model associated with the first ML pipeline. Example hyperparameters may include number of weights, cost function, input size, number of layers, etc. The hyperparameters of the first ML pipeline may be replaced with the hyperparameters of the selected pipeline to modify the first ML pipeline. Example hyperparameters of the "CatBoost model" evaluated by "Mljar-supervised" are shown in Table 3 below: [Table 3] Example hyperparameters [Table 3] The output of the "Mljar-supervised" tool may be analyzed to recover the hyperparameters of the "CatBoost model". From Table 3, it can be seen that the hyperparameters of the "CatBoost model" may include learning rate and depth. The hyperparameters of the first ML pipeline may be replaced with the hyperparameters of the selected pipeline to modify the first ML pipeline and generate a second ML pipeline. It should be noted that the data provided in Table 3 are merely examples, and such examples should not be construed as limiting the present disclosure.

[0075] In one embodiment, the second ML pipeline may include a second plurality of pipeline components representing a second set of transformations on the input dataset and a second model selection operation for the ML task. The second ML pipeline may include zero or at least one pre-processing component, such as one or more data pre-processing components and an ML model component, associated with the second model selection operation for the ML task. Furthermore, the second ML pipeline may include a feature selection component and a feature engineering component. The second plurality of pipeline components may be similar to the first plurality of pipeline components. Thus, for the sake of brevity, a description of the second plurality of pipeline components is omitted in the disclosure.

[0076] At block 312, a first performance metric may be determined by running the first ML pipeline on the input dataset 112. In one embodiment, the processor 204 may be configured to determine the first performance metric by running the first ML pipeline on the input dataset 112. The performance metric may be a predictive metric that can be used to evaluate the machine learning pipeline to ensure that the output of the ML pipeline is correct. Examples of the first performance metric include, but are not limited to, an accuracy metric, a confusion matrix, a precision metric, a recall metric, an F-score, an area under the curve (AUC), a mean absolute error (MAE), a mean squared error (MSE), an R2 score, and an adjusted R2. The accuracy metric may be determined as a ratio of the number of correct predictions made by the first ML model associated with the first ML pipeline to the total number of predictions made by the first ML model associated with the first ML pipeline. The confusion matrix may be a tabular representation of the predictions of a binary (or multi-class) classifier. That is, if the first ML model associated with the first ML pipeline is a classifier, the confusion matrix can be used to characterize how well the first ML model performs on a test dataset when the true values ​​of the test dataset may be known. The precision metric can determine the proportion of positive predictions that are determined to be correct based on the execution of the first ML pipeline on the test dataset. The recall metric can determine the proportion of positive predictions that are determined to be incorrect based on the execution of the first ML pipeline on the test dataset. The F1 score can be calculated as the harmonic mean of the precision and recall metrics. The AUC is the likelihood that the first ML model associated with the first ML pipeline will rank a randomly selected positive example higher than a randomly selected negative example. The mean absolute error (MAE) can be the average of the absolute differences between the actual values ​​and the values ​​predicted by the ML model.The MSE may be the mean squared difference between the actual and predicted values. The R score or R-squared error may be a coefficient of determination that determines a first ML model of the first ML pipeline by comparing it to a certain baseline. In one embodiment, the AUC may be determined as a first performance metric by running the first ML pipeline on the input dataset 112.

[0077] At block 314, a second performance metric may be determined by running a second ML pipeline on the input dataset 112. In one embodiment, the processor 204 may be configured to determine the second performance metric by running the second ML pipeline on the input dataset 112. Examples of the second performance metric include, but are not limited to, an accuracy metric, a confusion matrix, a precision metric, a recall metric, an F-score, an area under the curve (AUC), a mean absolute error (MAE), a mean squared error (MSE), an R2 score, and an adjusted R2. The second performance metric may be similar to the first performance metric. Thus, a description of the second performance metric is omitted from this disclosure for simplicity. In one embodiment, the AUC may be determined as the second performance metric by running the second ML pipeline on the input dataset 112.

[0078] At block 316, the electronic device 102 may be controlled to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on the comparison of the first performance metric and the second performance metric. In one embodiment, the processor 204 may be configured to control the electronic device 102 to render the ML pipeline recommendation based on the comparison of the first performance metric and the second performance metric.

[0079] If the first performance metric is greater than the second performance metric, the first ML pipeline may be determined to outperform the second ML pipeline. In such a case, the first ML pipeline may be recommended. If the first performance metric is less than the second performance metric, the second ML pipeline may be determined to outperform the first ML pipeline. In such a case, the second ML pipeline may be recommended. In one embodiment, the first performance metric and the second performance metric may be accuracy metrics. The first performance metric may be 0.8567 and the second performance metric may be 0.8921. Comparing both metrics, the second ML pipeline may be recommended. The recommended ML pipeline may be rendered on a display device, such as the display device 210A of FIG. 2. The user 114 may use the recommended ML pipeline for the ML task.

[0080] Flowchart 300 has been illustrated as individual operations, such as 302, 304, 306, 308, 310, 312, 314, and 316. However, in particular embodiments, such individual operations may be further divided into additional operations, combined into fewer operations, or eliminated, depending on the particular implementation, without departing from the essence of the disclosed embodiments.

[0081] 4A and 4B are diagrams illustrating an example scenario for modifying a first ML pipeline, according to at least one embodiment described in this disclosure. FIGs. 4A and 4B are described in conjunction with elements of FIGs. 1, 2, and 3. With reference to FIGs. 4A and 4B, an example scenario 400 is shown. The example scenario 400 may include a generated first ML pipeline 402 and selected pipeline components 404. The generated first ML pipeline 402 may include a set of code 402A that may be associated with a first ML model.

[0082] With reference to FIG. 4A, the generated first ML pipeline 402 may include a set of code 402A that may be associated with a first ML model. The first ML model may be a "CatBoostRegressor" as observed from the set of code 402A. With reference to FIG. 4B, the first ML pipeline 402 may be modified by replacing the set of code 402A of the first ML pipeline 402 with selected pipeline components 404 associated with an ensemble stacked model. As shown, for example, the CatBoostRegressor() model in the first ML pipeline 402 is replaced by an ensemble of CatBoostRegressor() and RandomForestRegressor() from the selected pipeline components 404. It should be noted that the scenario 400 of FIGS. 4A and 4B is for illustrative purposes and such examples should not be construed as limiting the scope of the disclosure.

[0083] FIG. 5 illustrates an example scenario for generating a machine learning (ML) pipeline using exploratory and generative code generation tools, according to at least one embodiment described in this disclosure. FIG. 5 is described in conjunction with elements of FIG. 1, FIG. 2, FIG. 3, FIG. 4A, and FIG. 4B. With reference to FIG. 5, an example scenario 500 is illustrated. The example scenario 500 may include a generative code generation tool 102A, an input dataset 502, a set of exploratory code generation tools 504, a first ML pipeline 506, a set of pipeline components 508, a second ML pipeline 510, and a recommended ML pipeline 512. The set of exploratory code generation tools 504 may include a first exploratory code generation tool 504A, a second exploratory code generation tool 504B, and..., an Nth exploratory code generation tool 504N.

[0084] The example scenario 500 can include a set of operations 514, 516, 518, and 520. The set of operations can be performed by the system 202 to generate an ML pipeline using exploratory and generative code generation tools, as described herein.

[0085] 5, an input dataset 502 may be received. The input dataset 502 may be a tabular dataset related to a home price prediction problem. The input dataset 502 may be provided to a generative code generation tool 102A and a set of exploratory code generation tools 504. The generative code generation tool 102A may analyze the input dataset 502 and may generate a first ML pipeline 506 for the ML task of predicting home prices. The set of exploratory code generation tools 504 may determine a set of pipeline components 508 related to the ML task of predicting home prices.

[0086] A pipeline component selection operation may be performed at block 514. The processor 204 may be configured to select a pipeline component from the set of pipeline components 508. More details regarding the selection of a pipeline component from the set of pipeline components 508 are provided further in, for example, FIG.

[0087] The processor 204 may modify the first ML pipeline 506 based on the selection to generate a second ML pipeline 510. Then, in block 516, the processor 204 may determine a first performance metric, such as AUC, by running the first ML pipeline on the input dataset 502.

[0088] In block 518, the processor 204 may determine a second performance metric by running a second ML pipeline on the input dataset 502. Once the first and second performance metrics are determined, the processor 204, in block 520, compares the first performance metric to the second performance metric. Based on the comparison, the recommended ML pipeline 512 may be rendered on a display device, such as the display device 210A of FIG. 2. If the first and second performance metrics are accuracy metrics and the metric value of the first performance metric is greater than the metric value of the second performance metric, the recommended ML pipeline 512 may be the first ML pipeline 506. However, if the metric value of the first performance metric is less than the metric value of the second performance metric, the recommended ML pipeline 512 may be the second ML pipeline 510.

[0089] Various embodiments of the present disclosure may provide one or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause a system (e.g., exemplary system 202) to perform operations. The operations may include receiving an input dataset (e.g., input dataset 112 of FIG. 1 ) associated with a machine learning (ML) task. The operations may further include generating a first ML pipeline associated with the ML task by executing a generative code generation tool (e.g., generative code generation tool 102A of FIG. 1 ). The operations may further include determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools (e.g., exploratory code generation tool 102B of FIG. 1 ). The operations may further include selecting a pipeline component from the set of pipeline components. The operations may further include modifying the first ML pipeline based on the selection to generate a second ML pipeline. The operations may further include determining a first performance metric by executing the first ML pipeline on the input dataset (e.g., input dataset 112 of FIG. 1 ). The operations may further include determining a second performance metric by running a second ML pipeline on an input dataset (e.g., input dataset 112 of FIG. 1 ). The operations may further include controlling an electronic device (e.g., the electronic device of FIG. 1 ) to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric.

[0090] As used in this disclosure, the term "module" or "component" may refer to a specific hardware implementation configured to perform the operations of the module or component, and / or a software object or software routine that may be stored and / or executed by general-purpose hardware (e.g., computer-readable medium, processing device, etc.) of an electronic device. In some embodiments, components, modules, engines, and services different from those described in this disclosure may be implemented as objects or processes (e.g., separate threads) executing on an electronic device. Although some of the systems and methods described in this disclosure have been generally described as being implemented in software (stored on and / or executed by general-purpose hardware), dedicated hardware implementations or combinations of software and dedicated hardware implementations are also possible and contemplated. As used herein, a "computing entity" may be any electronic device described above in this disclosure, or any module or combination of modules executing on an electronic device.

[0091] Terms used in this disclosure, and particularly in the appended claims (e.g., the body of the appended claims), are generally intended as "broad" terms (e.g., the term "including" should be interpreted as "including, but not limited to," the term "having" should be interpreted as "having, but not limited to," etc.).

[0092] Moreover, where the recitation of a particular number of introduced claims is intended, such intent is expressly set forth in the claim, and in the absence of such recitation, no such intent exists. For example, as an aid to understanding, the following appended claims may include the use of the introductory phrases "at least one" and "one or more" to introduce the recitation of claims. However, the use of such phrases should not be construed to mean that the introduction of a claim recitation by the indefinite article "a" or "an" limits any particular claim that includes such an introduced recitation of claims to an embodiment that includes only one such recitation, even when the same claim includes the introductory phrase "one or more" or "at least one" and the indefinite article "a" or "an" (e.g., which should be interpreted to mean "a" and / or "an at least one" or "one or more"). In other words, the same applies to the use of definite articles used to introduce a recitation of claims.

[0093] Moreover, where the recitation of a particular number of incorporated claims is explicitly recited, one of ordinary skill in the art will understand that such recitation should be interpreted to mean at least the number recited (e.g., a recitation of "two enumerations" without other qualification means at least two enumerations, or an enumeration of two or more). Furthermore, in instances where a recitation similar to "at least one of A, B, and C, etc." or "one or more of A, B, and C, etc." is used, such configurations are typically intended to include A alone, B alone, C alone, A and B together, A and C together, B and C together, or A, B, and C together, etc.

[0094] Furthermore, any disjunctive word or phrase expressing two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibility of including one of the terms, either one of the terms, or both terms. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B" or "A and B."

[0095] All examples and conditional language described in this disclosure are intended for instructional purposes to assist the reader in understanding the disclosure and the concepts that the disclosure contributes to further developing the art, and should not be construed as being limited to such specifically recited examples and conditions. Although the embodiments of the present disclosure have been described in detail, various modifications, substitutions, and alternatives may be made thereto without departing from the spirit and scope of the present disclosure.

[0096] In addition to the above-described embodiment, the following supplementary notes are further disclosed. (Appendix 1) A method executable by a processor of a system, comprising: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric; The method includes: (Appendix 2) The first ML pipeline comprises: a first plurality of pipeline components representing a first set of transformations on the input data set; a first model selection operation for the ML task; The method of claim 1, comprising: (Appendix 3) The second ML pipeline comprises: a second plurality of pipeline components representing a second set of transformations on the input data set; a second model selection operation for the ML task; The method of claim 1, comprising: (Appendix 4) receiving a specification including computational resource constraints associated with the system and performance requirements associated with the ML task; determining the set of pipeline components based on the specification; 2. The method of claim 1, further comprising: (Appendix 5) determining a maximum execution time for execution of the one or more exploratory code generation tools based on the specifications; controlling execution of the one or more exploratory code generation tools based on the maximum execution time; Further comprising: 5. The method of claim 4, wherein the one or more exploratory code generation tools are executed to perform a search over an optimization space of pipeline components and determine the set of pipeline components based on the search. (Appendix 6) using the one or more exploratory code generation tools to generate performance data associated with the set of pipeline components; selecting the pipeline component from the set of pipeline components based on the performance data; Further comprising: the performance data includes a performance score for each pipeline component in the set of pipeline components; 2. The method of claim 1, wherein the performance score of the pipeline component is a maximum value in the performance data. (Appendix 7) 7. The method of claim 6, wherein the set of pipeline components includes a set of function calls corresponding to a set of ML models. (Appendix 8) 8. The method of claim 7, wherein the performance score measures a predictive metric or training time of a corresponding ML model from the set of ML models on the input dataset. (Appendix 9) parsing the content of the first ML pipeline to determine references to first ML models via function calls in the content; selecting a function call from the set of function calls to a second ML model as the pipeline component based on a comparison of a performance score of the first ML model to other ML models in the set of ML models; 8. The method of claim 7, further comprising: (Appendix 10) Each ML model in the set of ML models: A single layer of ML model with hyperparameter optimization, A stack of two layers of the ML model, A single-layer ensemble of two ML models, or A two-layer ensemble of the two ML models, 8. The method according to claim 7, which is one of the methods described above. (Appendix 11) 2. The method of claim 1, wherein the first ML pipeline is further modified based on hyperparameters of the selected pipeline. (Appendix 12) 2. The method of claim 1, wherein the modifications include changes associated with variable names, model classes, and module paths of pipeline components of the first ML pipeline. (Appendix 13) One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause the system to perform operations, including: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric;

[0023] In one embodiment, the present invention relates to a computer-readable storage medium comprising: (Appendix 14) The operation includes: receiving a specification including computational resource constraints associated with the system and performance requirements associated with the ML task; determining the set of pipeline components based on the specification; 14. The one or more non-transitory computer-readable storage media of claim 13, further comprising: (Appendix 15) The operation includes: using the one or more exploratory code generation tools to generate performance data associated with the set of pipeline components; selecting the pipeline component from the set of pipeline components based on the performance data; Further comprising: the performance data includes a performance score for each pipeline in the set of pipeline components; 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the performance score of the pipeline component is a maximum value in the performance data. (Appendix 16) 16. The one or more non-transitory computer-readable storage media of claim 15, wherein the set of pipeline components includes a set of function calls corresponding to a set of ML models. (Appendix 17) 17. The one or more non-transitory computer-readable storage media of claim 16, wherein the performance score measures a predictive metric or training time of a corresponding ML model of the set of ML models on the input dataset. (Appendix 18) The operation includes: parsing the content of the first ML pipeline to determine references to first ML models via function calls in the content; selecting a function call from the set of function calls to a second ML model as the pipeline component based on a comparison of a performance score of the first ML model to other ML models in the set of ML models; 17. The one or more non-transitory computer-readable storage media of claim 16, further comprising: (Appendix 19) 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the first ML pipeline is further modified based on hyperparameters of the selected pipeline. (Appendix 20) 1. A system comprising: A memory configured to store instructions; a processor, coupled to the memory, configured to execute the instructions to perform operations; The process includes: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric; Including, the system. [Explanation of symbols]

[0097] 100 Environment 102 Electronic equipment 102A Generative Code Generation Tools 102B Exploratory Code Generation Tools 104 Web-Based Data Sources 108 Database 110 Communication Network 112 Input Dataset

Claims

1. A method executable by a processor of a system, comprising: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric; The method includes:

2. The first ML pipeline comprises: a first plurality of pipeline components representing a first set of transformations on the input data set; a first model selection operation for the ML task; The method of claim 1 , comprising:

3. The second ML pipeline: a second plurality of pipeline components representing a second set of transformations on the input data set; a second model selection operation for the ML task; and The method of claim 1 , comprising:

4. receiving a specification including computational resource constraints associated with the system and performance requirements associated with the ML task; determining the set of pipeline components based on the specification; The method of claim 1 further comprising:

5. determining a maximum execution time for execution of the one or more exploratory code generation tools based on the specifications; controlling execution of the one or more exploratory code generation tools based on the maximum execution time; Further comprising:

5. The method of claim 4, wherein the one or more exploratory code generation tools are executed to perform a search over an optimization space of pipeline components and to determine the set of pipeline components based on the search.

6. using the one or more exploratory code generation tools to generate performance data associated with the set of pipeline components; selecting the pipeline component from the set of pipeline components based on the performance data; Further comprising: the performance data includes a performance score for each pipeline component in the set of pipeline components; The method of claim 1 , wherein the performance score for the pipeline component is a maximum value in the performance data.

7. The method of claim 6 , wherein the set of pipeline components comprises a set of function calls corresponding to a set of ML models.

8. 8. The method of claim 7, wherein the performance score measures a predictive metric or training time of a corresponding ML model of the set of ML models on the input dataset.

9. parsing the content of the first ML pipeline to determine references to a first ML model via function calls in the content; selecting a function call to a second ML model from the set of function calls as the pipeline component based on a comparison of a performance score of the first ML model to other ML models in the set of ML models; The method of claim 7 further comprising:

10. Each ML model in the set of ML models: A single layer of ML model with hyperparameter optimization, A stack of two layers of the ML model, A single-layer ensemble of two ML models, or An ensemble of two layers of the two ML models, The method of claim 7, wherein the

11. 2. The method of claim 1, wherein the first ML pipeline is further modified based on hyperparameters of the selected pipeline.

12. The method of claim 1 , wherein the modifications include changes associated with variable names, model classes, and module paths of pipeline components of the first ML pipeline.

13. One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause the system to perform operations, including: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric; One or more non-transitory computer-readable storage media including:

14. The operation includes: receiving a specification including computational resource constraints associated with the system and performance requirements associated with the ML task; determining the set of pipeline components based on the specification; The one or more non-transitory computer-readable storage media of claim 13, further comprising:

15. The operation includes: using the one or more exploratory code generation tools to generate performance data associated with the set of pipeline components; selecting the pipeline component from the set of pipeline components based on the performance data; Further comprising: the performance data includes a performance score for each pipeline in the set of pipeline components; The one or more non-transitory computer-readable storage media of claim 13 , wherein the performance score for the pipeline component is a maximum value in the performance data.

16. 20. The one or more non-transitory computer-readable storage media of claim 15, wherein the set of pipeline components comprises a set of function calls that correspond to a set of ML models.

17. 20. The one or more non-transitory computer-readable storage media of claim 16, wherein the performance score measures a predictive metric or training time of a corresponding ML model of the set of ML models on the input dataset.

18. The operation includes: parsing the content of the first ML pipeline to determine references to a first ML model via function calls in the content; selecting a function call to a second ML model from the set of function calls as the pipeline component based on a comparison of a performance score of the first ML model to other ML models in the set of ML models; 20. The one or more non-transitory computer-readable storage media of claim 16, further comprising:

19. 14. The one or more non-transitory computer-readable storage media of claim 13, wherein the first ML pipeline is further modified based on hyperparameters of the selected pipeline.

20. 1. A system comprising: A memory configured to store instructions; a processor, coupled to the memory, configured to execute the instructions to perform operations; The process includes: receiving an input dataset related to a machine learning (ML) task; generating a first ML pipeline associated with the ML task by executing a generative code generation tool; determining a set of pipeline components associated with the ML task by executing one or more exploratory code generation tools; selecting a pipeline component from the set of pipeline components; modifying the first ML pipeline based on the selection to generate a second ML pipeline; determining a first performance metric by running the first ML pipeline on the input dataset; determining a second performance metric by running the second ML pipeline on the input dataset; controlling an electronic device to render an ML pipeline recommendation as one of the first ML pipeline or the second ML pipeline based on a comparison of the first performance metric and the second performance metric; Including, the system.