Synthesizing ML pipelines for automated pipeline recommendation

The automated synthesis of machine learning pipelines using data type information and task specifications addresses the inefficiencies of manual training corpus creation in AutoML, providing a scalable and efficient solution for training high-performance models.

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

Patent Information

Application Number
JP2024051765
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 meta-learning-based AutoML approaches require time-consuming and costly manual or semi-automated methods to create training corpora for machine learning pipelines, which are limited in availability, quality, and reproducibility, leading to inefficiencies in training high-performance models.

Method used

A fully automated system that synthesizes high-performance machine learning pipelines using data type information and task specifications, generating a scalable and extensible database of pipelines through optimization techniques, ensuring intellectual property safety and reducing manual effort.

Benefits of technology

The system provides a sustainable, scalable, and IP-safe training corpus for AutoML systems, enabling better performance and efficiency in training metamodels by automating the creation of machine learning pipelines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024146864000001_ABST
    Figure 2024146864000001_ABST
Patent Text Reader

Abstract

To provide a method of synthesizing machine learning (ML) pipelines for automated pipeline recommendations.SOLUTION: A method includes: receiving data comprising tabular datasets and code files; generating a task specification corresponding to each dataset and determining data type information for features of each dataset; extracting a plurality of API methods from the code files and generating an ML pipeline based on the data type information and the task specification; obtaining variations of the ML pipeline based on options associated with an ML pipeline component and generating a database of pipelines based on the ML pipeline and the variations; selecting candidate pipelines from the database based on an optimization approach and executing the candidate pipelines to evaluate a performance of each candidate pipeline; and obtaining a training corpus of ML pipelines for pipeline recommendation.SELECTED DRAWING: Figure 8A
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The embodiments discussed in this disclosure relate to the composition of machine learning (ML) pipelines for automated pipeline recommendation. background [Background technology]

[0002] Advances in the fields of machine learning and artificial intelligence (AI) have led to the development of automated machine learning (AutoML) algorithms. Meta-learning-based AutoML may require a training corpus that may contain a large number of pipelines to build a training model for AutoML. A training corpus may be generated by collecting a large number of pipelines written by humans and applying program analysis methods to extract labels with additional manual annotations. Such manual or semi-automated methods of creating a training corpus may be time-consuming and cost-ineffective.

[0003] The subject matter claimed in this disclosure is not limited to embodiments that solve any shortcomings or that operate only in such environments. 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 [Problem to be solved by the invention]

[0004] According to an aspect of an embodiment, a method may include a set of operations that may include receiving data including a set of tabular datasets and a set of code files, each of which may include computer executable code for a machine learning (ML) task. The set of operations may further include generating a task specification corresponding to each tabular dataset of the set of tabular datasets and determining data type information for features of each tabular dataset of the set of tabular datasets. The set of operations may further include extracting a plurality of application programming interface (API) methods associated with ML pipeline components from the set of code files and generating an ML pipeline based on the data type information and the task specification. The set of operations may further include obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline and generating a database of ML pipelines based on the ML pipeline and the variant for each tabular dataset of the set of tabular datasets. The set of operations may further include selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach, running the set of candidate ML pipelines, and evaluating performance of each candidate ML pipeline in the set of candidate ML pipelines on test data. The set of operations may further include obtaining a training corpus of ML pipelines from the set of candidate ML pipelines for an ML pipeline recommendation task based on the evaluation.

[0005] The object and advantages of the embodiments will be realized and attained 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 are explanatory only and are not restrictive of the invention, as claimed. [Brief description of the drawings]

[0007] Example embodiments are described with additional specificity and detail through the use of the accompanying drawings.

[0008] [Figure 1] FIG. 1 illustrates an example environment related to composition of a machine learning (ML) pipeline for automated pipeline recommendation.

[0009] [Diagram 2] FIG. 1 is a block diagram illustrating an example electronic device for synthesizing a machine learning (ML) pipeline for automated pipeline recommendation.

[0010] [Diagram 3] FIG. 1 illustrates a flowchart of an example method for synthesizing a machine learning (ML) pipeline for automated pipeline recommendation.

[0011] [Figure 4] FIG. 1 illustrates a flowchart of an example method for extracting application programming interface (API) methods associated with an ML pipeline component.

[0012] [Diagram 5] FIG. 1 illustrates a flowchart of an example method for generating an ML pipeline based on a subset of templates.

[0013] [Figure 6] FIG. 1 illustrates a flowchart of an example method for generating ML pipeline recommendations.

[0014] [Figure 7] FIG. 1 illustrates an example scenario of an ML pipeline generated based on a subset of templates.

[0015] [Figure 8A] Figure 8B illustrates an example scenario for ML pipeline generation based on a subset of data type information, task specifications, and templates. [Figure 8B] Figure 8A shows an example scenario for ML pipeline generation based on a subset of data type information, task specifications, and templates.

[0016] All of these are according to at least one embodiment described in this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Some embodiments described in the present disclosure relate to a method and system for synthesizing a machine learning (ML) pipeline for automatic pipeline recommendation. In the present disclosure, data including a set of tabular datasets and a set of code files may be received. Each of the set of code files may include computer executable code for an ML task. Upon receiving the set of tabular datasets and the set of code files, a task specification may be generated corresponding to each tabular dataset of the set of tabular datasets. Then, data type information may be determined for features of each tabular dataset of the set of tabular datasets, and a plurality of application programming interface (API) methods associated with ML pipeline components may be extracted from the set of code files. Based on the data type information and the task specification, an ML pipeline may be generated. Then, a variant of the ML pipeline may be obtained based on an option associated with at least one pipeline component of the ML pipeline. A database of ML pipelines may be generated based on the ML pipeline and the variant for each tabular dataset of the set of tabular datasets. A set of candidate ML pipelines may be selected from the database of ML pipelines based on an optimization approach. The set of candidate ML pipelines may be executed to evaluate the performance of each candidate ML pipeline in the set of candidate ML pipelines on the test data, and a training corpus of ML pipelines may be obtained from the set of evaluated ML pipelines for an ML pipeline recommendation task based on the evaluation.

[0018] According to one or more embodiments of the present disclosure, improvements may be made in the fields of machine learning (ML) and software development by configuring a computing system such that the computing system can utilize a training corpus of ML pipelines to synthesize an ML pipeline for automated pipeline recommendation.

[0019] Meta-learning-based automated machine learning (AutoML) models may require a training corpus that may contain a large number of pipelines. The training corpus may be generated by collecting a large number of human-written pipelines and applying program analysis methods to extract labels with additional manual annotations. The process of training corpus creation in existing meta-learning-based AutoML approaches may face several challenges due to the limited resources of machine learning pipelines and the variability in the quality of open source pipelines. Due to the limited resources of machine learning pipelines, it may require significant efforts to scrape machine learning (ML) pipelines from various open source communities and repositories. Furthermore, there may be no guarantee that such open source code can be used for commercial purposes. Since open source code may be contributed by data scientists with different levels of skills and experience, the quality of the open source pipelines may vary. Furthermore, due to different environments and outdated libraries, it may not be easy to reproduce or rerun the open source pipelines to get the execution results. Also, the machine learning pipelines contributed to the open source community by professional or novice data scientists may contain a dynamic range of machine learning pipelines. Therefore, it may be difficult to create a fully automated way to extract machine learning components by program parsers. For example, ML pipelines may be written in customized functions rather than standard API calls. This means that using manual or semi-manual approaches to extract machine learning components may be time-consuming and error-prone. That is, it may require significant effort to collect ML pipelines, label ML components, or rewrite ML pipelines manually. Therefore, developing a training corpus may not be easy.

[0020] The disclosed system can provide a fully automated way to synthesize a large number of high-performance ML pipelines that may be intellectual property (IP) safe. With more ML pipelines and potentially better performance, a better metamodel for the AutoML system may be trained by the synthesized training corpus. The disclosed system can obtain a training corpus that may be sustainable, scalable, extensible, and IP safe. As mentioned above, manual creation of the training corpus creation may be time-consuming and cost-ineffective. Maintaining the training corpus is also a major issue because libraries used in the human-written ML pipelines may no longer exist and thus the training corpus may be outdated. However, the disclosed system can generate the ML pipelines based on the data type information and task specifications associated with each tabular dataset of a set of tabular datasets. The disclosed system can then generate a database of ML pipelines by obtaining variants of the ML pipelines based on options associated with at least one pipeline component of the ML pipeline. The versions of the libraries used in the generation of the ML pipelines may be recorded. The latest version of the libraries may be used in the generation process of the ML pipelines. The database for the ML pipeline is automatically generated based on the specified version of the library, and the training corpus can be reconstructed when needed to train the metamodel and never becomes outdated. Furthermore, the disclosed system can obtain a training corpus that can be scalable.

[0021] The disclosed system can obtain a training corpus that may be scalable. The disclosed system can add new pre-processing components or try new ML algorithms to evaluate the performance of new elements under existing tabular datasets. Meanwhile, it may not be easy to evaluate the effect of new pre-processing components that may appear in some human-written ML pipelines, since such new pre-processing components may not be widely used. Thus, the training corpus may not have enough training samples of such pre-processing components. Embodiments of the present disclosure will be described with reference to the accompanying drawings.

[0022] FIG. 1 is a diagram depicting an example environment relevant to the composition of a machine learning (ML) pipeline for automated pipeline recommendation, configured in accordance with at least one embodiment described herein. With reference to FIG. 1, an environment 100 is shown. The environment 100 may include a system 102, a web-based data source 104, a server 106, a database 108, and a communication network 110. The system 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 a set of tabular datasets 112 and a set of code files 114. Further shown in FIG. 1 is a user 116 that may be associated with (e.g., an operator of) the system 102.

[0023] The system 102 may include suitable logic, circuitry, interfaces, and / or code that may be configured to obtain a training corpus that may include a number of high-performance ML pipelines. Such a corpus may be used to train a meta-model for an AutoML application, such as generating automated pipeline recommendations for an input dataset. Examples of the system 102 may 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 (e.g., a cloud server), or a group of servers. In one or more embodiments, the system 102 may include a user-side terminal device and a server communicatively coupled to the user-side terminal device. The system 102 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 instances, the system 102 may be implemented using a combination of hardware and software.

[0024] 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 an 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, data including a set of tabular datasets 112 and a set of code files 114 may be received from the web-based data source 104 and stored in the database 108. In an embodiment, the set of tabular datasets 112 may include at least one dataset from a proprietary data source that may be different (not linked) from the web-based data source 104.

[0025] The server 106 may include appropriate logic, circuitry, and interfaces, and / or code that may be configured to retrieve data that may include a set of tabular datasets 112 and a set of code files 114. Each of the set of code files 114 may include computer executable code for an ML task. Based on the request(s), the retrieved data may be shared with the system 102. The server 106 may perform operations through a web application, a cloud application, an HTTP request, a repository operation, a file transfer, or the like. Exemplary implementations of the server 106 may include, but are not limited to, a database server, a file server, a web server, an application server, a mainframe server, or a cloud computing server.

[0026] In at least one embodiment, the server 106 may be implemented as multiple distributed cloud-based resources using a number of techniques known to those skilled in the art. Those skilled in the art will appreciate that the scope of the present disclosure is not limited to the implementation of the server 106 and the system 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 system 102 without departing from the scope of the present disclosure. In certain embodiments, the server 106 may host the database 108. Alternatively, the server 106 may be separate from the database 108 or may be communicatively coupled to the database 108.

[0027] The database 108 may be configured to store the set of tabular datasets 112 and the set of code files 114. 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 system 102. The device storing the database 108 may be configured to receive a query for the set of tabular datasets 112 and the set of code files 114 from the system 102. In response, the device of the database 108 may be configured to retrieve and provide the queried set of tabular datasets 112 and the set of code files 114 to the system 102 based on the received query. In some embodiments, the database 108 may be hosted on multiple servers stored in the same or different locations. The operations of 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 cases, database 108 may be implemented using software.

[0028] The communication network 110 may include a communication medium through which the system 102 can communicate with the server 106, 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). The various devices in the environment 100 may be configured to connect to the communication network 110 according to a variety of 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, IEEE 802.11, Light Fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communications, wireless access points (AP), device-to-device communications, cellular communications protocols, and / or Bluetooth (BT) communications protocols, or combinations thereof.

[0029] Each dataset in the set of tabular datasets 112 may include data in a tabular format. A tabular dataset may store data in rows and columns, where a row may represent an entry and a column may represent a feature associated with the data. The set of tabular datasets 112 may be in a suitable format in the database 108, such as csv, tsv, txt, or json. The set of code files 114 may include code, such as import statements for packages and ML pipelines associated with the set of tabular datasets 112.

[0030] The recommendation model may be an ML model that may be trained to identify relationships between inputs, such as features in a training dataset, and output ML pipeline recommendations. The recommendation model may be defined by its hyperparameters, e.g., number of weights, cost function, input size, number of layers, etc. The parameters of the recommendation model may be adjusted and weights updated to approach a global minimum of the cost function for the recommendation model. After several epochs of training on feature information in the training dataset, the recommendation model may be trained to generate ML pipeline recommendations.

[0031] The recommendation model may include electronic data that may be implemented, for example, as a software component of an application executable on the system 102. The recommendation model may rely on libraries, external scripts, or other logic / instructions for execution by a processing device. The recommendation model may include code and routines configured to enable a computing device, such as the system 102, to perform one or more operations, such as ML pipeline recommendation. Additionally or alternatively, the recommendation model 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). Alternatively, in some embodiments, the recommendation model may be implemented using a combination of hardware and software.

[0032] In operation, the system 102 may receive data that may include a set of tabular datasets 112 and a set of code files 114, each of which may include computer executable code for a particular ML task. Examples of ML tasks may include, but are not limited to, a classification task, a regression task, a clustering task, a generative task, or an adversarial learning task. In an example embodiment, the tabular dataset may be associated with information related to home prices, and the ML task may be a task of predicting the sale price of a home. The code files associated with the tabular dataset may include functions to process the dataset and train a regression model for the task of predicting the sale price of a home. More details regarding the receipt of data are provided further, for example, in FIG. 3 (302).

[0033] In some cases, the tabular datasets may be used by data scientists or researchers for different tasks. For example, an employee dataset may be used to predict turnover or classify employees into different classes (e.g., efficient or inefficient). The tasks may depend on the features contained in the dataset. It may be important to identify the tasks supported by each dataset. Thus, the system 102 may generate a task specification corresponding to each tabular dataset in the set of tabular datasets 112. Details related to generating task specifications are provided further, for example, in FIG. 3 (304).

[0034] The system 102 may determine data type information for features of each tabular dataset in the set of tabular datasets 112. The data type information may specify a feature type for each column of the tabular dataset. Examples of such feature types may include, but are not limited to, numeric features, categorical features, datetime features, text features, URL features, non-generalizable features (i.e., identifiers), customized features, or context-specific features. The information about the feature type may help the system 102 determine the exact preprocessing components to apply to each feature.

[0035] The system 102 can extract application programming interface (API) methods associated with the ML pipeline components from the set of code files. For example, different pre-processing APIs and ML models used in the code files may be extracted using static program analysis methods. Details related to the API methods are further provided, for example, in FIG. 3 (308). Details related to data type information and API methods are further provided, for example, in FIG. 3.

[0036] From the information collected in the previous steps (API methods, ML models, data type information, etc.), several ML pipelines may be generated with default options. An ML pipeline may be an ML program or ML kernel, which may typically include one or more pre-processing components for a given dataset and at least one ML model for training on the training features of that dataset. The pre-processing components may be applied to a subset or the entirety of the training features, and the ML models may be applied to all of the training features after a possible feature selection step. The default options may be based on statistics about pop usage of the API methods or ML models.

[0037] The system 102 can generate an ML pipeline based on the data type information and the task specification. In particular, a rule-based method can be used with respect to the data type information and the task specification to determine whether a particular API method or ML model can be selected as an ML component of the ML pipeline for a given tabular dataset. The system 102 can explore a plurality of options associated with various pipeline components of the ML pipeline and obtain a variant of the ML pipeline based on an option (of the plurality of options) associated with at least one pipeline component of the ML pipeline. Details regarding the variant of the ML pipeline are further provided, for example, in FIG. 3 (310).

[0038] A database of ML pipelines may be required to create a training corpus for training a pipeline recommendation model. The system 102 may generate a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets 112. Details related to the database of ML pipelines are further provided in, for example, FIG. 3.

[0039] The system 102 may select a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach (e.g., a Bayesian optimization approach). Details related to selecting the set of candidate ML pipelines are further provided, for example, in FIG. 3. After selection, the system 102 may execute the set of candidate ML pipelines to train an ML model based on the training data and evaluate the performance of each candidate ML pipeline in the set of candidate ML pipelines on the test data. Each candidate ML pipeline is executed on the test data to obtain a performance score. The execution of the candidate ML pipelines may include training a model and evaluating the candidate ML pipeline. During the evaluation, the performance score of each ML pipeline may be compared to a threshold score.

[0040] The system 102 can obtain a training corpus of ML pipelines from a set of candidate ML pipelines for an evaluation-based ML pipeline recommendation task. Details regarding the evaluation of performance and the selection of the training corpus of ML pipelines are further provided in, for example, FIG.

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

[0042] FIGURE 2 is a block diagram illustrating an example system for synthesizing a machine learning (ML) pipeline for automated pipeline recommendation, configured in accordance with at least one embodiment described herein. FIGURE 2 will be described in conjunction with elements from FIGURE 1. With reference to FIGURE 2, a block diagram 200 of the system 102 is shown. The system 102 may include a processor 202, a memory 204, a network interface 206, an input / output (I / O) device 208, and a display device 208A.

[0043] The processor 202 may include suitable logic, circuitry, and / or interfaces that may be configured to execute program instructions associated with various operations performed by the system 102. The processor 202 may be configured to receive data that may include the set of tabular datasets 112 and the set of code files 114. Each of the set of code files 114 may include computer executable code for a machine learning (ML) task. The processor 202 may be configured to generate a task specification corresponding to each tabular dataset of the set of tabular datasets 112. The processor 202 may be configured to determine data type information for features of each tabular dataset of the set of tabular datasets 112. The processor 202 may be configured to extract a plurality of application programming interface (API) methods associated with ML pipeline components from the set of code files 114. The processor 202 may be configured to generate an ML pipeline based on the data type information and the task specification. The processor 202 may be configured to obtain a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline. The processor 202 may be configured to generate a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets 112. The processor 202 may be configured to select a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach. The processor 202 may be configured to execute the set of candidate ML pipelines to train an ML model based on training data and evaluate performance of each candidate ML pipeline of the set of candidate ML pipelines on test data. The processor 202 may be configured to obtain a training corpus of ML pipelines from the set of evaluated ML pipelines for an ML pipeline recommendation task based on the evaluation.

[0044] The processor 202 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 applicable computer-readable storage medium. For example, the processor 202 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.

[0045] 2 as a single processor, the processor 202 may include any number of processors configured to individually or collectively perform or direct the performance of any number of operations of the system 102 described in this disclosure. Additionally, one or more of the processors may reside on one or more different electronic devices, such as different servers. In some embodiments, the processor 202 may be configured to interpret and / or execute program instructions and / or process data stored in the memory 204. Some examples of the processor 202 are 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.

[0046] The memory 204 may include suitable logic, circuitry, interfaces, and / or code that may be configured to store the set of tabular data sets 112 and the set of code files 114. The memory 204 may store program instructions executable by the processor 202. In certain embodiments, the memory 204 may be configured to store an operating system and associated application specific information. The memory 204 may include computer-readable storage media for carrying or storing computer-executable instructions or data structures. Such computer-readable storage media may include any available media that can be accessed by a general-purpose or special-purpose computer, such as the processor 202. By way of example, and not limitation, such computer-readable storage media may include tangible or non-transitory computer-readable storage 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 devices, flash memory devices (e.g., solid-state memory devices), or other storage media 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 202 to perform a certain operation or group of operations in connection with the system 102.

[0047] The network interface 206 may include suitable logic, circuitry, interfaces, and / or code that may be configured to establish communications between the system 102, the database 108 server / device, and the web-based data source 104 over the communications network 110. The network interface 206 may be implemented using various known technologies to support wired or wireless communications of the system 102 over the communications network 110. The network interface 206 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 coder / decoder (codec) chipset, a subscriber identity module (SIM) card, and / or a local buffer.

[0048] The I / O device 208 may include appropriate logic, circuitry, interfaces, and / or code that may be configured to receive user input. For example, the I / O device 208 may receive a first user input corresponding to a request for data that may include a set of tabular data sets 112 and a set of code files 114. The I / O device 208 may include various input and output devices that may be configured to communicate with other components, such as the processor 202 and the network interface 206. 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 208A) and a speaker.

[0049] The display device 208A may include appropriate logic, circuitry, interfaces, and / or code that may be configured to display the automated pipeline recommendations. The display device 208A may be configured to receive user input (e.g., a first user input) from the user 116. In such a case, the display device 208A may be a touch screen that receives the user input. The display device 208A may be implemented by 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.

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

[0051]

[0023] Figure 3 illustrates a flowchart of an example method for synthesizing a machine learning (ML) pipeline for automated pipeline recommendation, according to an embodiment of the present disclosure. Figure 3 is described in conjunction with elements of Figures 1 and 2. With reference to Figure 3, a flowchart 300 is shown. The method illustrated in flowchart 300 may begin at 302 and may be performed by any suitable system, apparatus, or device, such as the example system 102 of Figure 1 or the processor 202 of Figure 2.

[0052] Although shown in discrete blocks, the steps and operations associated with one or more of the blocks of flowchart 300 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0053] At block 302, data may be received that includes a set of tabular datasets 112 and a set of code files 114. Each of the set of code files 114 may include computer executable code for an ML task. Examples of ML tasks may include, but are not limited to, a classification task, a regression task, a clustering task, a generative task, or an adversarial learning task. In an embodiment, the processor 202 may be configured to receive data that may include a set of tabular datasets 112 and a set of code files 114. The set of tabular datasets 112 may include one or both of synthetic tabular datasets and real-world tabular datasets. Each dataset may be in raw format or in a format such as csv, tsv, txt, or json. According to an embodiment, the set of tabular datasets 112 may be received from a web-based data source 104. Licenses, terms, and conditions associated with the set of tabular datasets 112 may be verified to ensure that commercial use is permissible for each tabular dataset in the set of tabular datasets 112. A subset of the set of tabular datasets 112 may be removed because the license associated with the subset may not permit commercial use of the subset.

[0054] At block 304, a task specification may be generated corresponding to each tabular dataset in the set of tabular datasets 112. In an embodiment, the processor 202 may be configured to generate a task specification corresponding to each tabular dataset.

[0055] In an embodiment, the task specification for each tabular dataset in the set of tabular datasets 112 may include a type of ML task that may be performed using the corresponding tabular dataset and one or more target features of the corresponding tabular dataset that may be required for the type of ML task. The task specification may be a task type such as a classification task, a regression task, a clustering task, or a generative task that may be performed on the corresponding tabular dataset. The target feature may be a target column (to be predicted) of the corresponding tabular dataset. As an example, a tabular dataset in the set of tabular datasets 112 may be related to a home price prediction problem. The tabular dataset may include features such as lot area, home condition, year built of the home, pool area, and sale price of the home. The task specification may specify the task type as a regression task for home price prediction, and the target feature may be the sale price of the home. In some cases, the task specification for a tabular dataset may have multiple task types depending on the user 116 or the selection of the target feature.

[0056] In one embodiment, the data (received at 302) may include data types of features associated with at least a subset of the set of tabular datasets 112. The data types may be generated based on application of multiple AutoML tools, such as “SapientML”, “Mljar-supervised®”, etc., to the tabular datasets of the set of tabular datasets 112. Each AutoML tool may generate information associated with the set of data types. Alternatively, the data types may be generated based on a pre-trained ML model, such as “SortingHat”, specifically designed to predict data types of features in the tabular datasets of the set of tabular datasets 112. A particular set of data types may be selected for the tabular dataset based on a voting mechanism.

[0057] In some cases, a task specification associated with each tabular dataset in the set of tabular datasets 112 may not be available. In such cases, a task specification for each tabular dataset in the set of tabular datasets 112 may be generated by selecting one or more code files associated with the tabular dataset and performing a static program analysis of such code files to extract a type or types of ML tasks that can be performed using the dataset and one or more target features in the dataset. The metadata and one or more code files associated with each tabular dataset may be assumed to be available on a web-based data source, such as the web-based data source 104. The conditions associated with each tabular dataset in the set of tabular datasets 112 may then be verified to filter out tabular datasets that cannot be used for commercial purposes. The filtered set of tabular datasets may be referred to as the set of tabular datasets 112.

[0058] The task specification for each tabular dataset of the set of tabular datasets 112 may be determined based on application of a static program analysis method to one or more code files associated with the corresponding tabular dataset. According to an embodiment, the one or more code files associated with the corresponding tabular dataset may be parsed to extract abstract syntax tree (AST) information based on the static program analysis method. Then, key function calls and arguments within the key function calls may be identified from the one or more code files using the AST. For example, the key function call may be "Model.fit(X,Y)" for training an ML model. The argument "y" may be used to extract a type of ML task and determine a target feature. Furthermore, the class name of the ML model used in the one or more code files may be used to determine whether the ML model is for a classification task or a regression task. An example of a mapping of ML models to types of ML tasks for each tabular dataset of the set of tabular datasets 112 is presented in Table 1 as follows: [Table 1] From Table 1, it can be seen that the type of ML task can be classification or regression. For example, if the ML model is "RandomForestClassifier", the type of ML task can be classification. It should be noted that the data provided in Table 1 can be construed merely as an example and not as limiting the present disclosure. A task specification associated with the corresponding tabular dataset may then be generated.

[0059] At block 306, data type information for features of each tabular dataset of the set of tabular datasets 112 may be determined. In an embodiment, the processor 202 may be configured to determine data type information for features of each tabular dataset. The data type information may specify a feature type for each feature of the tabular dataset. By way of example, the feature type may include a numeric type, a categorical type, a date and time type, a text type, a Uniform Resource Locator (URL) type, an identifier type, a customized type, a context-specific type, and the like. The feature type may be determined to determine a pre-processing component that may be applied to the corresponding feature during a pre-processing stage of the ML pipeline. By way of example, the feature type may be determined based on application of a number of AutoML tools, such as “SapientML”, “Mljar-supervised®”, etc., to a tabular dataset of the set of tabular datasets 112. Alternatively, the data type of the feature may be determined based on a pre-trained ML model, such as “SortingHat”, to predict the data type of a feature on a tabular dataset of the set of tabular datasets 112. Tools such as "SapientML" and "Mljar-supervised" may follow a rule-based approach, while "SortingHat" may follow a supervised learning method. Feature types inferred from "SapientML" and "Mljar-supervised" may be mapped to feature types inferred from "SortingHat". In some cases, classifications inferred from "SortingHat" may be considered as a basis for determining feature types. For each tabular dataset in the set of tabular datasets 112, an example of mapping of feature types inferred from "SortingHat", "SapientML", and "Mljar-supervised" is presented in Table 2 as follows: [Table 2] The data provided in Table 2 is merely an example and should not be construed as limiting the present disclosure.

[0060] At block 308, application programming interface (API) methods associated with the ML pipeline component may be extracted from the set of code files. In one embodiment, the processor 202 may be configured to extract the API methods associated with the ML pipeline component from the set of code files. A static program analysis method may be used to extract the API methods used in the ML pipeline component of the set of code files. More details regarding the extraction of API methods are provided further in, for example, FIG. 4.

[0061] In one embodiment, the ML pipeline components may include a data preprocessing component, a feature selection component, a feature engineering component, a model selection component, and a model training component. Each code file in the set of code files may typically consist of zero or more preprocessing components, such as a data preprocessing component, and one ML model component. A given data preprocessing component may be applied to a subset of the corresponding tabular dataset or to the entire set of features, and the ML model may be applied to the entire set of features.

[0062] Data preprocessing components may be used to preprocess the tabular datasets of the set of tabular datasets 112. Data preprocessing components may include, for example, missing value handling components, data imbalance components, and feature scaling components, feature encoding components, etc. For example, missing values ​​in a column “BsmtQual” corresponding to basement height may be handled using the missing value handling component “sklearn.impute.SimpleImputer”. In another example, missing values ​​in a column “GarageArea” corresponding to garage size in square feet may be handled using the missing value handling component “pandas.DataFrame.fillna”. Data imbalances in the tabular datasets may be handled using data imbalance components such as “imblearn.under_sampling”, “imblearn.over_sampling.SMOTENC”, etc. Features in the tabular datasets may be scaled using scaling components such as “sklearn.preprocessing.StandardScaler”, “sklearn.preprocessing.MinMaxScaler”, etc. The features of the tabular dataset may be encoded using an encoding component such as “sklearn.preprocessing.LabelEncoder” or “sklearn.preprocessing.OneHotEncoder”. A feature selection component may select a subset of features from a set of features associated with a tabular dataset of the set of tabular datasets 112. Examples of feature selection components may include “panda.DataFrame.drop”, “sklearn.feature_selection.RFE”, etc. A feature engineering component may extract features from a corresponding tabular dataset. For example, feature engineering components may include “patsy.dmatrices”, “sklearn.cluster.KMeans”, etc.The model selection component may select an ML model, such as a regression model, for the corresponding tabular dataset. For example, the model selection and evaluation component may include "sklearn.model_selection.learning_curve", "sklearn.model_selection.cross_val_predict", etc. The model training component may be used to train the selected ML model. The ML pipeline component may include feature extraction components, such as "pandas.to_datetime", "sklearn.feature_extraction.text.TfidfVectorizer", etc. The ML pipeline component may further include categorical encoder components, such as "pandas.get_dummies", "sklearn.preprocessing.LabelEncoder", etc.

[0063] An ML pipeline may be generated based on the data type information and the task specification at block 310. In an embodiment, the processor 202 may be configured to generate the ML pipeline based on the data type information and the task specification.

[0064] Based on the extracted API methods associated with the ML pipeline components and / or references to implementations of other AutoML libraries, default options for APIs and ML algorithms may be determined. As an example, “rule-based” methods, “sklearn” pipelines, and “ColumnTransformer” may be used to automatically generate an ML pipeline. The rules for whether to apply an API method, such as a data preprocessing component, to a particular feature may be based on certain conditions that may appear as feature types and / or values ​​for the feature type. For example, a numeric missing value handling component may be applied to a feature if the feature type associated with the corresponding feature is a numeric type and some values ​​in the column associated with the corresponding feature may be missing. The same set of API methods may be applied to a set of columns with the same feature type or condition.

[0065] First, an ML pipeline may be synthesized using default options based on feature types that have majority votes when determined using "SortingHat", "SapientML", and "Mljar-supervised®". Then, because each tool for determining feature types, i.e., "SortingHat", "SapientML", and "Mljar-supervised®", may generate different feature types, all possible feature types inferred by each of the three tools may be evaluated. The feature types that lead to the creation of ML pipelines with the best performance (i.e., those above a threshold) may be used in follow-up explorations.

[0066] In addition to applying default options for the pre-processing components and ML algorithms, an order of API methods may be determined. Note that the total number of possible ML pipelines may be large due to the number of permutations or combinations of API methods that may be included in the ML pipeline for a given dataset. Thus, the number of possible pre-processing orders may be limited. As an example, the order of API methods may be: missing value handling component, feature extraction component, categorical encoder component, target column split component, data imbalance component, feature engineering component, scaling component, and feature selection component. As another example, the order of API methods may be: missing value handling component, first feature extraction component, categorical encoder component, first scaling component, target column split component, second feature extraction component, second scaling component, feature engineering component, data imbalance component, and feature selection component. As another example, the order of API methods may be: feature type inference, ID column drop component, data cleaning component, missing value handling component, feature extraction component (extract features of datetime, text, or URL type), categorical encoding component, numeric feature scaling component, customized feature engineering component, feature selection component, data imbalance component, target transformation component, and ML model component. Note that the order of API methods may not have a significant impact on the viability and performance of the resulting ML pipeline.

[0067] At block 312, a variant of the ML pipeline may be obtained based on an option associated with at least one pipeline component of the ML pipeline. In one embodiment, the processor 202 may be configured to obtain a variant of the ML pipeline.

[0068] In an embodiment, each of the options may correspond to an optional parameter that may be acceptable for an API method of the plurality of API methods, an algorithm that may be acceptable for the API method, a selection to skip the API method for generation of an ML pipeline, or a selection of an ML model for an ML pipeline. The optional parameters in the selected pipeline component may be modified while the remaining pipeline components and ML models may be unchanged and include default options. For example, optional parameters for the API method "sklearn.preprocessing.Imputer" may be missing value, strategy, axis, and verbose. A first ML pipeline may be obtained by taking default values ​​for missing value, strategy, axis, and verbose. For example, the default strategy may be "mean". A second ML pipeline may be obtained by customizing the strategy with "median". Missing values ​​in a column may be replaced by the median. Additionally or alternatively, a variant of the ML pipeline may be obtained based on a variant of an algorithm that may be acceptable for the API method. The exploration of API methods may be expanded based on the expansion of various algorithms that may be used in a particular API method. For example, a numeric feature scaling API method may use "StandardScale" or "log1p".

[0069] Variants of ML pipelines may be obtained based on selection of skipping API methods for generation of ML pipelines. As an example, a first ML pipeline may be obtained based on inclusion of its API method for dropping identifier (ID) columns. A second ML pipeline may be obtained based on removal of its API method for dropping identifier (ID) columns. Variants of ML pipelines may be obtained based on selection of ML models. For example, a first ML pipeline may be obtained by selecting “RandomForestClassifier” as the ML model. A second ML pipeline may be obtained by selecting “ExtraTreesClassifier” as the ML model. Selection may be based on performance scores for individual ML models. An example of performance scores of ML pipelines generated based on exploration of API methods is presented in Table 3 as follows: [Table 3] From Table 3, it can be seen that a first ML pipeline may be generated based on selecting "RandomForestClassifier" as the ML model, and a second ML pipeline may be generated based on selecting "ExtraTreesClassifier" as the ML model. Since the performance score associated with the second ML pipeline is higher than the performance score associated with the first ML pipeline, the second ML pipeline may be retained. That is, "ExtraTreesClassifier" may be used as the ML model. It should be noted that the data provided in Table 3 are merely examples and should not be construed as limiting the present disclosure.

[0070] At block 314, a database of ML pipelines may be generated based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets 112. In an embodiment, the processor 202 may be configured to generate the database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets. Each entity in the database of ML pipelines may include a tuple “(X,y)”, where “X” may be a set of training features and “y” may be a goal, such as a performance score, for the corresponding ML pipeline. Examples of training features are provided in Table 4. In an embodiment, the database of ML pipelines may include statistical features associated with the set of tabular datasets 112, learning-based meta-features associated with the set of tabular datasets, or hybrid meta-features associated with the set of tabular datasets.

[0071] In an example embodiment, the pipeline components of the ML pipeline may include a missing number component that may have two options, a missing category component that may have two options, a datetime component that may have two options, a text component that may have three options, a URL component that may have two options, a category encoder component that may have three options, a scaling component that may have four options, a principal component analysis (PCA) component that may have three options, a feature selection component that may have two options, an imbalance component that may have three options, and a transformed target component that may have three options. The total possible combinations of the various options of the pipeline components may be, for example, a product of 2, 3, 2, 3, 2, 3, 4, 3, 2, 3, 3, and may be 46,656. If the number of choices for the ML models of the ML pipeline includes 17 classification models or 15 regression models, the total possible combinations of the ML pipeline based on the exploration of the pipeline components and ML models may be approximately 750,000. Thus, the set of pipelines that may be generated may include "750,000" variations. Similarly, the variations of the ML pipeline for each tabular dataset in the set of tabular datasets 112 may be explored to generate a database of ML pipelines. Note that the exact number of explorations may depend on the feature types and conditions that appear in the features of the corresponding tabular dataset. An example database of ML pipelines is presented in Table 4 as follows: [Table 4] In Table 4, "m" may represent the ML model used in the ML pipeline, "1" in the "dcn" column may represent the application of the data cleaning component to features that may be of numeric type in the ML pipeline, "1" in the "dcc" column may represent the application of the data cleaning component to features of categorical type in the ML pipeline, "2" in the "mn" column may represent the application of option "2" of the missing number component to features of numeric type in the ML pipeline, and "1" in the "mc" column may represent the application of option "2" of the missing number component to features of categorical type in the ML pipeline. A "1" in the "dt" column may represent the inclusion of application of option "1" of the feature extraction (category) component to datetime type features in the ML pipeline, a "2" in the "text" column may represent the inclusion of application of option "2" of feature extraction to text type features in the ML pipeline, a "1" in the "URL" column may represent the inclusion of application of option "1" of feature extraction to URL type features in the ML pipeline, a "2" in the "ce" column may represent the inclusion of option "2" of the category encoder component in the ML pipeline, a "3" in the "ns" column may represent the inclusion of option "3" of the numerical scaling component in the ML pipeline, a "1" in the "fe" column may represent the inclusion of option "1" of the feature engineering component in the ML pipeline, and a "1" in the "pca" column may represent the inclusion of option "1" of the principal component analysis module in the ML pipeline. A "0" in a column may represent the exclusion of the feature associated with the corresponding column in the ML pipeline. For example, a "0" in the "fe" column may represent the exclusion of the feature engineering component in the ML pipeline. Each row in Table 4 may represent one ML pipeline. In other words, an executable ML pipeline may be reconstructed from the information recorded in each row. Each column may represent an option used in a variant of the ML pipeline.Please note that the data provided in Table 4 is merely an example and should not be construed as limiting the present disclosure.

[0072] At block 316, a set of candidate ML pipelines may be selected from the database of ML pipelines based on the optimization approach. In one embodiment, the processor 202 may be configured to select the set of candidate ML pipelines from the database of ML pipelines. The set of candidate ML pipelines may consist of ML pipelines that have a predicted performance score (from the proxy model) that exceeds a score threshold.

[0073] To find the best performing ML pipelines (i.e., ML pipelines with scores above a threshold), it is not always feasible to perform an exhaustive search, especially with a large set of candidate pipelines (i.e., a large search space). Thus, the goal of creating a training corpus of ML pipelines for pipeline recommendation is not to find the top 1 ML pipeline, but to collect "good" ML pipelines that may have acceptable performance scores. To achieve this goal, an optimization approach may be used to iteratively select a set of candidate ML pipelines from a database of ML pipelines and evaluate the performance of such selections against test data.

[0074] In an embodiment, the optimization approach may use a Bayesian Optimization (BO) approach. The BO approach is a sequential design strategy for global optimization of black-box functions to find an optimal solution. The BO approach of the present disclosure may select multiple candidate ML pipelines for the next search round to obtain a set of candidate ML pipelines from a database of ML pipelines. For a given target search space, each option for each pre-processing component may be iteratively enumerated to construct one candidate ML pipeline. The target search space may be provided as an input. For example, instead of searching all possible ML pipelines, the selection of candidate ML pipelines may be limited to the top "k" candidate ML pipelines among all previously searched ML pipelines. Synthesizing a set of candidate ML pipelines, even for the entire comprehensive search space, may not take significant time, and generating all of the set of candidate ML pipelines may be tractable.

[0075] A pre-processing component from an ML pipeline may be applied to a group of features with the same feature type or condition. In an embodiment, different options of a pre-processing component may be applied to different features even if they have the same feature type or condition. For example, a Numeric Scaling component with option "(StandardScaler(with_mean=True))" may not be useful for all numeric type features. A mix of different options or no scaling may lead to better performance. On the other hand, all possible combinations may make it impossible to perform a comprehensive search. Therefore, a Bayesian optimization approach may be used to explore possible good candidates with higher performance.

[0076] In one embodiment, the processor 202 may be configured to train a posterior distribution model on the records of the database of ML pipelines. The processor 202 may be configured to select a set of candidate ML pipelines from the database of ML pipelines using an optimization approach with the trained posterior distribution model. The posterior distribution model may be a simplified, i.e., computationally efficient, model that can estimate a relationship between a set of training features “X” and a target “y” (e.g., a performance score). As an example, the posterior distribution model may be a “Gaussian Process Regressor” model. Both the training and inference of such a model may be much faster than the evaluation of the actual ML pipelines.

[0077] In one embodiment, the processor 202 may be configured to train multiple posterior distribution models on the records of the database of ML pipelines. The trained multiple posterior distribution models may be used to select a set of candidate ML pipelines.

[0078] Each posterior distribution model of the plurality of posterior distribution models may be trained on features of a tabular dataset of the set of tabular datasets. A plurality of posterior distribution models may be trained for use with a flat model of selection of a set of candidate ML pipelines, where a posterior distribution model may be constructed for each dataset. Thus, inputs to the flat structure of the model may be different for different datasets. As an example, inputs to the flat structure of the model may include both dataset meta-features and ML pipeline meta-features. The dataset meta-features may include dataset-level features and column-level features. The pipeline meta-features may include column-level ML components. That is, a set of pre-processing and ML model component options applied to individual columns may be grouped as a pipeline meta-feature.

[0079] Alternatively, multiple posterior distribution models may be trained to be used for a hierarchical model of selection of a set of candidate ML pipelines. The structure of the hierarchical model may include two layers. A top layer of ML models may be associated with an ML component. Each ML model in the top layer may be a classifier model that may recommend one ML component option. Each ML model in the top layer may be provided with input. The input may be an average of the performance scores of the evaluated ML pipelines that may utilize a dataset, metafeatures associated with the dataset, a column-level dataset, metafeatures of the columns, an option of an ML component that may be applied to the corresponding column as a training feature "Xt", or an option of an ML component as a target "yt". The output of the ML models in the top layer may be possible options of the ML component to be applied to the corresponding column. The outputs of the ML models in the top layer may be combined as inputs to the next stage. That is, one candidate ML pipeline may be composed of various options of ML components that may be applied to different columns. The likelihood of each candidate pipeline may be calculated as a multiplication of the probabilities of the ML models in the top layer. The set of candidate ML pipelines may be sorted based on the likelihood. Candidate ML pipelines with higher likelihood may be evaluated first.

[0080] In an embodiment, the selection of the set of candidate ML pipelines from the database of ML pipelines may be performed iteratively based on an ML metadata model or an optimization search model (e.g., Bayesian optimization). The optimization search model may select the top “N” candidate ML pipelines from the variants of the ML pipeline based on a first option associated with at least one pipeline component of the ML pipeline. Thereafter, the optimization search model may select the top “N” candidate ML pipelines from the variants of the ML pipeline based on a second option associated with at least one pipeline component of the ML pipeline. Thus, the optimization search model may select the top candidate ML pipelines available at that time. Thus, the optimization search model may select the set of candidate ML pipelines from the database of ML pipelines in a top-down approach.

[0081] At block 318, the set of candidate ML pipelines may be executed to train an ML model based on the training data and to evaluate the performance of each candidate ML pipeline in the set of candidate ML pipelines on the test data. In an embodiment, the processor 202 may be configured to execute the set of candidate ML pipelines to train an ML model based on the training data and to evaluate the performance of each candidate ML pipeline.

[0082] In an embodiment, multiple templates corresponding to multiple API methods may be generated. The set of candidate ML pipelines may be generated based on the multiple generated templates. Details regarding multiple templates are further provided in, for example, FIG. 5.

[0083] Once a set of candidate ML pipelines is generated, we assign each candidate ML pipeline “X n+1" may be performed based on an input tabular dataset. The input dataset may be split into training data and test data. The training data may be used to train an ML model based on the ML pipeline, and the test data may be used to generate a performance score "y n+1 ". A candidate ML pipeline "X n+1 Execution of the "" may include training a model and evaluating the candidate ML pipelines. In some embodiments, parallel processing may be used to run multiple candidate ML pipelines simultaneously to reduce the overall time for evaluation.

[0084] At block 320, a training corpus of ML pipelines may be obtained. In an embodiment, the processor 202 may be configured to obtain a training corpus of ML pipelines from a set of candidate ML pipelines for the ML pipeline recommendation task based on the evaluation. The process of running the candidate ML pipelines to evaluate their performance may continue until a termination condition is met. The termination condition may be reaching a threshold score for the composed pipeline. Alternatively, the termination condition may be the total number or percentage of original candidates from the set of candidate ML pipelines that have to be evaluated. Alternatively, the termination condition may be the performance gain of the set of candidate ML pipelines. If the condition is not met, then (X n+1 ,y n+1 ) pairs may be incorporated into the training corpus of an ML pipeline.

[0085] In one embodiment, a training corpus of ML pipelines may include at least a subset of the set of evaluated ML pipelines. The training corpus may be obtained based on a determination that the performance for each pipeline in the subset exceeds a threshold performance. For example, the set of evaluated ML pipelines may include "A" evaluated ML pipelines. A subset of the set of evaluated ML pipelines, which may include "B" evaluated ML pipelines, may be included in the training corpus of ML pipelines. The performance of each candidate ML pipeline of the "B" evaluated ML pipelines may be greater than a threshold performance, e.g., "0.8".

[0086] Flowchart 300 is depicted as discrete operations such as 302, 304, 306, 308, 310, 312, 314, 316, 318, 320, etc. However, in certain embodiments, such discrete 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.

[0087] FIG. 4 illustrates a flowchart of an example method for extracting a plurality of application programming interface (API) methods associated with an ML pipeline component, according to an embodiment of the present disclosure. FIG. 4 is described in conjunction with elements of FIG. 1, FIG. 2, and FIG. 3. With reference to FIG. 4, a flowchart 400 is shown. The method illustrated in the flowchart 400 may begin at 402 and may be performed by any suitable system, apparatus, or device, such as the example system 102 of FIG. 1 or the processor 202 of FIG. 2. Although illustrated in discrete blocks, steps and operations associated with one or more of the blocks of the flowchart 400 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0088] A code file may be selected from a set of code files at block 402. In one embodiment, the processor 202 may be configured to select a code file from a set of code files.

[0089] At block 404, the contents of the code file may be parsed to generate an abstract syntax tree (AST). In one embodiment, the processor 202 may be configured to parse the contents of the code file to generate the AST. The parser may be a program that may be part of a compiler and may be used to analyze the code file. The parsing of the code file may be used to generate the AST. The AST may include nodes in a tree format. Each node may be associated with a "construct" in the code file such that the generated AST may provide information related to the structure of the code file.

[0090] At block 406, a first API method that may be used to load a tabular dataset of the set of tabular datasets 112 and a second API method that may be used to train an ML model on the tabular dataset may be identified using the AST. In an embodiment, the processor 202 may be configured to use the AST to identify a first API method that may be used to load the tabular dataset of the set of tabular datasets 112 and a second API method that may be used to train an ML model on the tabular dataset. A static program analysis method may be applied to extract the first API method (e.g., "pandas.read_csv()" that may load a tabular dataset) and the second API method (e.g., "model.fit()" that may train an ML model).

[0091] At block 408, variables used in the second API method may be identified. In an embodiment, the processor 202 may be configured to identify variables used in the second API method. As an example, the second API method may be model.fit(X,y). The arguments used inside the model.fit() function call may be "X" and "y". Thus, the variables used in the second API method may be identified as "X", which may be a variable of the training data frame, and "y", which may be the "prediction target".

[0092] At block 410, an intermediate set of API methods that occur in the code file between the first API method and the second API method using at least one of the variables may be collected. In one embodiment, the processor 202 may be configured to collect the intermediate set of API methods from the code file, for example by backtracing from the second API method to the first API method, and record the intermediate set of API methods that may involve either "X" or "y".

[0093] At block 412, a parent module name of the first API method, the second API method, and the intermediate set of API methods may be stored in a database, such as database 108. The first API method, the second API method, and the intermediate set of API methods may be part of the plurality of API methods. In an embodiment, the processor 202 may be configured to store a parent module name of the first API method, the second API method, and the intermediate set of API methods in database 108. A parent module may be a module that can call another module, for example, a child module. A parent module name and a complete path of the first API method, the second API method, and the intermediate set of API methods may be obtained and stored in database 108.

[0094] Although flowchart 400 is shown as discrete operations, such as 402, 404, 406, 408, 410, and 412, in certain embodiments, such discrete 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.

[0095] FIG. 5 illustrates a flowchart of an example method for generating an ML pipeline based on a subset of templates, according to an embodiment of the present disclosure. FIG. 5 is described in conjunction with elements of FIG. 1, FIG. 2, FIG. 3, and FIG. 4. Referring to FIG. 5, a flowchart 500 is shown. The method illustrated in the flowchart 500 may begin at 502 and may be performed by any suitable system, apparatus, or device, such as the example system 102 of FIG. 1 or the processor 202 of FIG. 2. Although illustrated in discrete blocks, steps and operations associated with one or more of the blocks of the flowchart 500 may be divided into additional blocks, combined into fewer blocks, or eliminated, depending on the particular implementation.

[0096] At block 502, a plurality of templates corresponding to the plurality of API methods may be generated. In an embodiment, the processor 202 may be configured to generate a plurality of templates corresponding to the plurality of API methods. A template corresponding to a given API method may be a function call with a given input of an applied function. The template may provide a wrapping function around a given API method or a customized class module. In an embodiment, each template of the plurality of templates may be an API call object for which one or more features may be selected from a corresponding tabular dataset as input.

[0097] Many programming languages ​​have ML libraries or packages to support the development of ML pipeline components through an object-oriented approach. For example, programming platforms such as Python provide libraries such as “scikit-learn” that include several ML pipeline components. Multiple templates may be constructed using existing ML libraries. The libraries may provide pipeline functions and column transformer functions that may be used for the creation of templates. By using the API methods associated with the pipeline functions and the API methods associated with the column transformer functions, the templates of the subset of templates may be represented through a tuple of “(template_name, library API)” if a library API is used, or through a tuple of “(template_name, customized class name)” if a customized class is implemented. “template_name” may represent the name of the corresponding template.

[0098] At block 504, a subset of templates may be selected from the plurality of templates based on data type information, task specification, and content of a corresponding tabular dataset from the set of tabular datasets 112. In an embodiment, the processor 202 may be configured to select a subset of templates from the plurality of templates. As described above, the data type information may be a feature type for each feature of the corresponding tabular dataset. The task specification for a given tabular dataset may include a type of ML task that may be executable using the given tabular dataset and one or more target features of the corresponding tabular dataset that may be required for the type of ML task. As an example, the given tabular dataset may be related to a home price prediction problem. The tabular dataset may include features such as lot area, home condition, home build year, house number, and home sale price. The feature types for lot area, home condition, home build year, house number, and home sale price may be numeric type, categorical type, date-time type, identifier type, and numeric type, respectively. The task specification may specify the ML task as a home price prediction task, and the target feature may be the home sale price. For the above example, multiple templates that may be selected may include a template corresponding to an API method for data cleaning, a template corresponding to an API method for category cleaning, a template corresponding to an API method for handling missing numbers, etc.

[0099] At block 506, a ML pipeline may be generated based on the subset of the templates. In an embodiment, the processor 202 may be configured to generate the ML pipeline based on the subset of the templates. As an example, a programming library such as "scikit-learn" may provide a pipeline function and a column transform function to generate the ML pipeline. The programming library may assemble the subset of the templates in a particular order to generate the ML pipeline.

[0100] In one embodiment, the ML pipeline may include a set of API call objects corresponding to a subset of the templates, and the ML pipeline may be generated with default options that may differ from the options associated with the at least one pipeline component of the ML pipeline. An example of a subset of templates corresponding to multiple API methods is provided in Table 5 as follows: [Table 5] From Table 5, it can be seen that an ML pipeline can be generated by assembling a set of API call objects corresponding to a subset of templates in the sequence "1" through "7." The data provided in Table 5 is merely an example and should not be construed as limiting the present disclosure.

[0101] Although flowchart 500 is shown as discrete operations, such as 502, 504, and 506, in certain embodiments, such discrete 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.

[0102] Figure 6 illustrates a flowchart of an example method for generating ML pipeline recommendations according to an embodiment of the present disclosure. Figure 6 is described in conjunction with elements from Figures 1, 2, 3, 4, and 6. With reference to Figure 6, a flowchart 600 is shown. The method illustrated in flowchart 600 may begin at step 602 and may be performed by any suitable system, apparatus, or device, such as the example system 102 of Figure 1 or the processor 202 of Figure 2.

[0103] At block 602, a recommendation model may be trained for an ML pipeline recommendation task on the training corpus of the ML pipeline. In an embodiment, the processor 202 may be configured to train the recommendation model on the training corpus of the ML pipeline. The recommendation model may be an ML model that may be trained to identify relationships between inputs, such as features in a training dataset, and outputs of ML pipeline recommendations. Training of the recommendation model may be performed in an online or offline phase using a suitable supervised, semi-supervised, self-supervised, or unsupervised learning approach.

[0104] After the recommendation model is trained, the model may be ready for deployment on a server or a local workstation. After the recommendation model is deployed, a new tabular dataset may be received in block 604, which may be different from the set of tabular datasets 112. In an embodiment, the processor 202 may be configured to receive the new tabular dataset. The new tabular dataset may be a dataset for which ML pipeline recommendations need to be provided.

[0105] At block 606, inputs for the recommendation model may be generated based on the new tabular dataset. In an embodiment, the processor 202 may be configured to generate inputs for the recommendation model based on the new tabular dataset. For example, dataset-level metafeatures and / or column-level metafeatures associated with the new tabular dataset may be extracted. The inputs may be generated based on the extracted dataset-level metafeatures and / or column-level metafeatures.

[0106] The input may be provided to a recommendation model at block 608. In one embodiment, the processor 202 may be configured to provide the input to a recommendation model.

[0107] At block 610, an ML pipeline recommendation may be generated as an output of a recommendation model for the input. In an embodiment, the processor 202 may be configured to generate an ML pipeline recommendation as an output of a recommendation model for the input. The trained recommendation model may predict an ML pipeline to be used based on the input. For example, for a home price prediction dataset, the ML pipeline recommendation may include computer executable code representing a data preprocessing component (to preprocess the home price prediction dataset) and other components such as a feature engineering component and a model selection component (to train a regression model, such as a linear regression model).

[0108] Although flowchart 600 is shown as discrete operations, such as 602, 604, 606, 608, and 610, in certain embodiments, such discrete 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.

[0109]

[0023] Figure 7 illustrates an example scenario for the generation of an ML pipeline generated based on a subset of templates, according to at least one embodiment described in this disclosure. Figure 7 is described in conjunction with elements of Figures 1, 2, 3, 4, 5, and 6. With reference to Figure 7, an example scenario 700 is illustrated. The example scenario 700 may include a generated ML pipeline 702.

[0110] As shown in FIG. 7, a programming library, such as “scikit-learn,” may be used to generate the ML pipeline 702. Specifically, a pipeline function and a column transformer function may be used to generate the ML pipeline. The programming library may assemble a subset of templates in a particular order to generate the ML pipeline 702. It should be noted that the scenario 700 in FIG. 7 is merely an example, and such example should not be construed as limiting the present disclosure.

[0111] 8A and 8B collectively illustrate an example scenario for ML pipeline generation based on a subset of data type information, task specifications, and templates, according to at least one embodiment described herein. FIGS. 8A and 8B are described in conjunction with elements of FIGS. 1, 2, 3, 4, 5, 6, and 7. With reference to FIGS. 8A and 8B, an example scenario 800 is illustrated. The example scenario 800 may include a tabular dataset 802, a code file 804, data type information 808A, a number of API methods 810A, a template 812A, and an ML pipeline 814A. The example scenario 800 may include a set of operations 806, 808, 810, 812, and 814. The set of operations may be performed by the system 102 to generate an ML pipeline based on the data type information, as described herein. It should be noted that the scenario 800 of FIGS. 8A and 8B is for illustrative purposes and should not be construed as limiting the scope of the present disclosure.

[0112] In step 806, an operation of task specification generation may be performed. In an embodiment, the processor 202 may be configured to generate a task specification corresponding to the tabular dataset 802. The tabular dataset 802 may be related to a house price prediction problem. The task specification for the tabular dataset 802 may include a type of ML task, such as a regression task, that can be performed using the tabular dataset 802. Furthermore, the task specification for the tabular dataset 802 may include a target feature, such as "sales price." Details related to the task specification are further provided, for example, in FIG. 3.

[0113] At 808, an operation of determining data type information may be performed. In one embodiment, the processor 202 may be configured to determine data type information 808A for features of the tabular dataset 802. With reference to FIG. 8A, the data type information 808A for the tabular dataset 802 may specify a feature type for each feature of the tabular dataset 802 as one of an ID type, a numeric type, a categorical type, and a text type. More details regarding the data type information are provided further in, for example, FIG. 3 (306).

[0114] At 810, an operation may be performed to extract API methods 810A. In an embodiment, the processor 202 may be configured to extract API methods 810A associated with the ML pipeline components from the code file 804. A static program analysis method may be used to extract API methods 810A used in the ML pipeline components of the code file 804. With reference to FIG. 8A, the API methods 810A may include “pandas.DataFrame.dropna”, “numpy.log”, “pandas.get_dummies”, and “pandas.to_datetime”. More details regarding the extraction of API methods are provided further in, for example, FIG. 4.

[0115] An operation of generating a plurality of templates may be performed at step 812. In an embodiment, the processor 202 may be configured to generate a plurality of templates 812A corresponding to a plurality of API methods 810A. The processor 202 may then be configured to select a subset of templates from the plurality of templates 812A based on the data type information, the task specification, and the contents of the tabular dataset 802. Details regarding the plurality of templates generation are provided further, for example, in FIG.

[0116] At 814, an operation of performing ML pipeline generation may be performed. In an embodiment, the processor 202 may be configured to generate the ML pipeline 814A based on a subset of the templates. Details regarding ML pipeline generation are further provided, for example, in Figures 3 and 5. It should be noted that the scenario 800 of Figure 8 is for illustrative purposes and should not be construed as limiting the scope of the present disclosure.

[0117] 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 (such as the exemplary system 102) to perform operations. The operations may include receiving data including a set of tabular datasets (e.g., the set of tabular datasets 112 of FIG. 1 ) and a set of code files (e.g., the set of code files 114 of FIG. 1 ). Each code file includes computer-executable code for a machine learning (ML) task. The operations may include generating a task specification corresponding to each tabular dataset of the set of tabular datasets (e.g., the set of tabular datasets 112 of FIG. 1 ). The operations may include determining data type information for features of each tabular dataset of the set of tabular datasets (e.g., the set of tabular datasets 112 of FIG. 1 ). The operations may further include extracting a plurality of application programming interface (API) methods associated with ML pipeline components from the set of code files (e.g., the set of code files 114 of FIG. 1 ). The operations may further include generating an ML pipeline based on the data type information and the task specification. The operations may further include obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline. The operations may further include generating a database of ML pipelines based on the ML pipeline and the variant for each tabular dataset of the set of tabular datasets. The operations may further include selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach. The operations may further include running the set of candidate ML pipelines to evaluate performance of each candidate ML pipeline of the set of candidate ML pipelines on the test data. The operations may further include obtaining a training corpus of ML pipelines from the evaluated set of ML pipelines for an evaluation-based ML pipeline recommendation task.

[0118] As used in this disclosure, the term "module" or "component" can refer to a specific hardware implementation configured to perform the actions of the module or component, and / or a software object or software routine that may be stored and / or executed on general-purpose hardware (e.g., computer-readable media, processing device, etc.) of the system 102. In some embodiments, different components, modules, engines, and services described in this disclosure can be implemented as objects or processes that run on the system 102 (e.g., as separate threads). Although some of the systems and methods described in this disclosure are generally described as being implemented in software (stored and / or executed on general-purpose hardware), specific hardware implementations or combinations of software and specific hardware implementations are also possible and contemplated. As used herein, a "computing entity" can be any system 102 as previously defined in this disclosure, or a combination of any modules or sub-modules that run on the system 102.

[0119] The terms used in this disclosure, particularly in the appended claims (e.g., the body of the appended claims), are generally intended as "open" terms (e.g., the term "including" should be interpreted as "including, but not limited to," the term "having" should be interpreted as "having at least," the term "including" should be interpreted as "including, but not limited to," etc.).

[0120] Furthermore, if a specific number of claim recitations to be introduced is intended, such intent is expressly stated in the claim, and in the absence of such a statement, 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 claim recitations. However, the use of such phrases should not be construed as meaning that the introduction of a claim recitation with the indefinite article "a" or "an" limits any particular claim that includes such an introduced claim recitation to an embodiment that includes only one such recitation, even if the same claim includes the introductory phrases "one or more" or "at least one" and an indefinite article such as "a" or "an" (e.g., "a" and / or "an" should be construed to mean "at least one" or "one or more"). The same applies to the use of definite articles used to introduce claim recitations.

[0121] In addition, even if a particular number of introduced claim recitations is explicitly recited, one of ordinary skill in the art will recognize that such recitation should be interpreted to mean at least the recited number (e.g., the recitation "two recitations" without other modifiers means at least two recitations, or more than two recitations). Furthermore, when idiomatic expressions similar to "such as at least one of A, B, and C" or "such as one or more of A, B, and C" are used, such constructions are generally intended to include A only, B only, C only, both A and B, both A and C, both B and C, or A, B, and C, etc.

[0122] Additionally, any disjunctive phrase presenting two or more alternative terms, whether in the present document, claims, or drawings, should be understood to contemplate the possibility of including one of the terms, either 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."

[0123] All examples and conditional language described in this disclosure are intended for educational purposes to aid the reader in understanding the disclosure and the concepts contributed by the inventor to advance the art, and should be construed as not being limited to such specifically described examples and conditions. Although the embodiments of the present disclosure have been described in detail, various changes, substitutions, and alterations can be made without departing from the spirit and scope of the present disclosure.

[0124] The following supplementary notes are further disclosed regarding the embodiments including the above examples. (Appendix 1) A processor-executable method comprising: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular dataset of the set of tabular datasets; extracting from the set of code files a plurality of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; running the set of candidate ML pipelines and evaluating performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. method. (Appendix 2) 2. The method of claim 1, wherein the task specification for each tabular dataset in the set of tabular datasets includes a type of ML task that can be performed using the corresponding tabular dataset and one or more target features of the corresponding tabular dataset that are required for the type of ML task. (Appendix 3) The task specification for the task specification is: selecting, from the set of code files, one or more code files associated with each tabular data set of the set of tabular data sets; performing a static program analysis of the code file to extract the type of ML task and the one or more target features. The method described in Appendix 2. (Appendix 4) Extracting the plurality of API methods includes: selecting a code file from the set of code files; parsing the content of the code file to generate an abstract syntax tree (AST); using the AST to identify a first API method used to load a tabular dataset of the set of tabular datasets and a second API method used to train an ML model on the tabular dataset; identifying variables used in the second API method; collecting an intermediate set of API methods that reside in the code file between the first API method and the second API method using at least one of the variables; storing in a database a parent module name of the first API method, the second API method, and the intermediate set of API methods; the first API method, the second API method, and the intermediate set of API methods are part of the plurality of API methods; The method described in Appendix 1. (Appendix 5) 2. The method of claim 1, wherein the ML pipeline components include a data preprocessing component, a feature selection component, a feature engineering component, a model selection component, and a model training component. (Appendix 6) generating a plurality of templates corresponding to the plurality of API methods; selecting a subset of templates from the plurality of templates based on the data type information, the task specification, and content of a corresponding tabular dataset of the set of tabular datasets; and generating the ML pipeline based on the subset of templates. The method described in Appendix 1. (Appendix 7) 7. The method of claim 6, wherein each template of the plurality of templates is an API call object, and one or more features from the corresponding tabular dataset are input for the API call object. (Appendix 8) 7. The method of claim 6, wherein the ML pipeline includes a set of API call objects corresponding to a subset of the templates, and the ML pipeline is generated using default options that differ from options associated with the at least one pipeline component of the ML pipeline. (Appendix 9) 2. The method of claim 1, wherein each of the options corresponds to an optional parameter acceptable to an API method of the plurality of API methods, an algorithm acceptable to the API method, a selection of skipping the API method for generation of the ML pipeline, or a selection of an ML model for the ML pipeline. (Appendix 10) 2. The method of claim 1, wherein the selection of the set of candidate ML pipelines from the database of ML pipelines is performed iteratively based on an ML metadata model or an optimization search model. (Appendix 11) 2. The method of claim 1, wherein the optimization approach uses a Bayesian optimization approach. (Appendix 12) training a posterior distribution model on the records of the database in an ML pipeline; and using the optimization approach with the trained posterior distribution model to select the set of candidate ML pipelines from a database of ML pipelines. The method described in Appendix 1. (Appendix 13) training a plurality of posterior distribution models on the records of the database in an ML pipeline; The set of candidate ML pipelines is selected using a plurality of trained posterior distribution models. The method described in Appendix 1. (Appendix 14) 14. The method of claim 13, wherein each posterior distribution model of the plurality of posterior distribution models is trained based on features of records corresponding to a tabular dataset of the set of tabular datasets. (Appendix 15) 14. The method of claim 13, wherein the multiple posterior distribution models are trained to be used for hierarchical selection of the set of candidate ML pipelines. (Appendix 16) 2. The method of claim 1, wherein the training corpus of ML pipelines includes at least a subset of the set of ML pipelines evaluated, and the training corpus is obtained based on a determination that performance for each pipeline in the subset exceeds a threshold performance. (Appendix 17) 2. The method of claim 1, wherein the database of the ML pipeline includes statistical features associated with the set of tabular datasets, learning-based metafeatures associated with the set of tabular datasets, or hybrid metafeatures associated with the set of tabular datasets. (Appendix 18) training a recommendation model for the ML pipeline recommendation task on the training corpus of the ML pipeline; receiving a new tabular dataset after development of the recommendation model that is different from the set of tabular datasets; generating inputs for the recommendation model based on the new tabular dataset; providing said input to said recommendation model; and generating an ML pipeline recommendation as an output of the recommendation model for the input. The method described in Appendix 1. (Appendix 19) One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause a system to perform operations, the operations including: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular dataset of the set of tabular datasets; extracting from the set of code files a plurality of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; running the set of candidate ML pipelines and evaluating performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. storage medium. (Appendix 20) a memory configured to store instructions; and a processor, coupled to the memory, configured to execute the instructions to perform a process; The process comprises: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular dataset of the set of tabular datasets; extracting from the set of code files a plurality of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; running the set of candidate ML pipelines and evaluating performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. system. [Explanation of symbols]

[0125] 102 System 104 Web-Based Data Sources 108 Database 110 Communication Network 112 A set of tabular data sets 114 A set of code files 204 Memory 206 Network Interface 208 I / O Devices 302 receives data including a set of tabular datasets and a set of code files, each of which contains computer-executable code for a machine learning (ML) task. 304 Generate a task specification for each tabular dataset in a set of tabular datasets. 306 Determine the data type for each feature of a set of tabular datasets. Extract multiple application programming interface (API) methods related to 308 ML pipeline components from a set of code files. 310 Generate ML pipelines based on data type information and task specifications Obtain a variant of an ML pipeline based on options associated with at least one pipeline component of the 312 ML pipeline. 314 Generate a database of ML pipelines based on the ML pipelines and transformations for each tabular dataset in a set of tabular datasets. 316 Select a set of candidate ML pipelines from a database of ML pipelines based on an optimization approach. Run the set of candidate ML pipelines and evaluate the performance of each candidate ML pipeline in the set on the test data. For the ML pipeline recommendation task based on 320 evaluations, we obtain a training corpus of ML pipelines from a set of evaluated ML pipelines. 402 Select a code file from a set of code files 404 Parse the contents of a code file and generate an Abstract Syntax Tree (AST) 406 Using the AST, identify a first API method used to load a tabular dataset of a set of tabular datasets and a second API method used to train an ML model on the tabular dataset. 408 Identify variables used in the second API method 410 Using at least one of the variables, collect an intermediate set of API methods that occur between the first API method and the second API method in the code file. 412 Store parent module names of the first API method, the second API method, and the intermediate set of API methods in the database. The first API method, the second API method, and the intermediate set of API methods are parts of the multiple API methods. 502 Generate multiple templates for multiple API methods 504. Selecting a subset of templates from the plurality of templates based on data type information, task specifications, and content of corresponding tabular datasets from a set of tabular datasets. Generate ML pipelines based on a subset of 506 templates Train a recommendation model for the ML Pipeline recommendation task on the 602 ML Pipeline training corpus 604 After the recommendation model is deployed, a new tabular dataset that is different from the set of tabular datasets is received. 606 Generate input for a recommendation model based on a new tabular dataset 608 Providing Input to the Recommendation Model 610 ML Pipeline Recommendations are generated as the output of a recommendation model for an input 802 Tabular Datasets 804 Code File 806 Task Specification Generation 808 Data type information determination 808A Data Type Information 810 Application Programming Interface (API) Method Extraction 810A Multiple API Methods 812 Template Generation 812A Multiple Templates 814 ML Pipeline Generation 814A ML Pipeline

Claims

1. 16. A processor-executable method comprising: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular data set in the set of tabular data sets; extracting from the set of code files a number of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; executing the set of candidate ML pipelines to evaluate performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. method.

2. 2. The method of claim 1 , wherein the task specification for each tabular dataset in the set of tabular datasets includes a type of the ML task that can be performed using a corresponding tabular dataset and one or more target features of the corresponding tabular dataset that are required for the type of ML task.

3. The task specification for the task specification may include: selecting, from the set of code files, one or more code files associated with each tabular data set of the set of tabular data sets; performing a static program analysis of the code file to extract the type of the ML task and the one or more target features. The method of claim 2.

4. Extracting the plurality of API methods includes: selecting a code file from the set of code files; parsing the contents of the code file to generate an abstract syntax tree (AST); using the AST to identify a first API method used to load a tabular dataset of the set of tabular datasets and a second API method used to train an ML model on the tabular dataset; identifying variables used in the second API method; collecting an intermediate set of API methods that reside in the code file between the first API method and the second API method using at least one of the variables; storing in a database a parent module name of the first API method, the second API method, and the intermediate set of API methods; the first API method, the second API method, and the intermediate set of API methods are part of the plurality of API methods; The method of claim 1.

5. 2. The method of claim 1 , wherein the ML pipeline components include a data preprocessing component, a feature selection component, a feature engineering component, a model selection component, and a model training component.

6. generating a plurality of templates corresponding to the plurality of API methods; selecting a subset of templates from the plurality of templates based on the data type information, the task specification, and content of a corresponding tabular dataset of the set of tabular datasets; and generating the ML pipeline based on the subset of templates. The method of claim 1.

7. The method of claim 6 , wherein each template of the plurality of templates is an API call object, and wherein one or more features from the corresponding tabular dataset are inputs for the API call object.

8. 7. The method of claim 6, wherein the ML pipeline includes a set of API call objects corresponding to a subset of the templates, and the ML pipeline is generated with default options that differ from options associated with the at least one pipeline component of the ML pipeline.

9. 2. The method of claim 1 , wherein each of the options corresponds to an optional parameter acceptable to an API method of the plurality of API methods, an algorithm acceptable to the API method, a selection to skip the API method for generation of the ML pipeline, or a selection of an ML model for the ML pipeline.

10. The method of claim 1 , wherein the selection of the set of candidate ML pipelines from the database of ML pipelines is performed iteratively based on an ML metadata model or an optimization search model.

11. The method of claim 1 , wherein the optimization approach uses a Bayesian optimization approach.

12. training a posterior distribution model on the records of the database in an ML pipeline; and using the optimization approach with the trained posterior distribution model to select the set of candidate ML pipelines from a database of ML pipelines. The method of claim 1.

13. training a plurality of posterior distribution models on the records of the database in an ML pipeline; The set of candidate ML pipelines is selected using a plurality of trained posterior distribution models. The method of claim 1.

14. The method of claim 13 , wherein each posterior distribution model of the plurality of posterior distribution models is trained based on features of records corresponding to a tabular dataset of the set of tabular datasets.

15. The method of claim 13 , wherein the multiple posterior distribution models are trained to be used for hierarchical selection of the set of candidate ML pipelines.

16. 2. The method of claim 1 , wherein the training corpus of ML pipelines includes at least a subset of a set of ML pipelines that were evaluated, and the training corpus is obtained based on a determination that performance for each pipeline in the subset exceeds a threshold performance.

17. 2. The method of claim 1 , wherein the database of an ML pipeline comprises statistical features associated with the set of tabular datasets, learning-based meta-features associated with the set of tabular datasets, or hybrid meta-features associated with the set of tabular datasets.

18. training a recommendation model for the ML pipeline recommendation task on the training corpus of the ML pipeline; receiving a new tabular dataset that is different from the set of tabular datasets after the recommendation model is developed; generating inputs for the recommendation model based on the new tabular dataset; providing said input to said recommendation model; and generating an ML pipeline recommendation as an output of the recommendation model for the input. The method of claim 1.

19. One or more non-transitory computer-readable storage media configured to store instructions that, in response to being executed, cause a system to perform operations, the operations including: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular data set in the set of tabular data sets; extracting from the set of code files a number of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; executing the set of candidate ML pipelines to evaluate performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. storage medium.

20. A memory configured to store instructions; and a processor, coupled to the memory, configured to execute the instructions to perform a process; The process comprises: receiving data comprising a set of tabular datasets and a set of code files, each of the code files comprising computer-executable code for a machine learning (ML) task; generating a task specification corresponding to each tabular dataset of the set of tabular datasets; determining data type information for a feature of each tabular data set in the set of tabular data sets; extracting from the set of code files a number of application programming interface (API) methods associated with ML pipeline components; generating a ML pipeline based on the data type information and the task specification; obtaining a variant of the ML pipeline based on an option associated with at least one pipeline component of the ML pipeline; generating a database of ML pipelines based on the ML pipelines and the transformations for each tabular dataset of the set of tabular datasets; selecting a set of candidate ML pipelines from the database of ML pipelines based on an optimization approach; executing the set of candidate ML pipelines to evaluate performance of each candidate ML pipeline in the set of candidate ML pipelines on test data; and obtaining a training corpus of ML pipelines from the set of evaluated ML pipelines for a ML pipeline recommendation task based on the evaluation. system.