How alteryx/evalml works
Main Components and Their Purpose
• AutoML Engine: Represented by the automl module (found in evalml/automl). This component is responsible for orchestrating the search over candidate pipelines. It interacts with various submodules like automl_algorithm, pipelines, callbacks, and search progress.
• Pipeline Components: The pipelines module (in evalml/pipelines) contains different pipeline types (binary classification, regression, time series, multiclass classification, etc.) as well as the individual building blocks (preprocessors, estimators, transformers) found in subdirectories such as components/estimators and components/transformers.
• Data Checks: The data_checks module (in evalml/data_checks) contains a suite of checks (null values, class imbalance, multicollinearity, etc.) that are performed on the input data to certify its quality before modeling.
• Preprocessing: The preprocessing module (in evalml/preprocessing) is designed for data splitting and custom data pre‐processing functions.
• Model Understanding: This module (in evalml/model_understanding) gives insights into model behavior through techniques (partial dependence, permutation importance, decision boundaries, and force plots).
• Objectives: The objectives module (in evalml/objectives) provides domain-specific evaluation metrics as well as objective functions (like cost benefit matrices, fraud cost calculations, etc.) that help guide the pipeline optimization.
• Tuners: The tuners module (in evalml/tuners) encapsulates hyperparameter tuning algorithms including grid search, random search, and Bayesian optimization.
• Utilities: The utils module contains support functions (logging, CLI tools, nullable type handling) and serves as a backbone for the internal operations of each major module.
• Testing & CI/CD: Although not part of runtime architecture, the very extensive tests and GitHub workflows (in .github and evalml/tests) indicate that there is an automated continuous testing and integration process supporting the project.
Relationships and Interactions
• Data Flow: Start by indicating how input data (loaded via demo datasets or user-supplied data) flows into the preprocessing component where it is split and cleaned by performing data checks.
• Orchestration: The AutoMLSearch class (in automl) receives the prepared data and communicates with the pipeline construction modules to generate numerous candidate pipelines.
• Model Evaluation: Once pipelines are executed, the model understanding tools consume the pipeline outputs to produce interpretable visualizations or metrics.
• Hyperparameter Tuning: The tuners module integrates with the AutoML Engine to optimize pipelines over multiple iterations.
• External Dependencies: Highlight that EvalML integrates with external libraries (e.g., Woodwork, scikit-learn) which are implicitly referenced in the utilities and update checker.
Architectural Patterns and Design Strategies
• Modular Design: The project embraces a highly modular organization where each major concern (data checking, pipeline candidates, model evaluation, etc.) is encapsulated in its own submodule.
• Plug-and-Play Components: The design allows different estimators/transformers and tuners to be swapped depending on the problem type (binary, multiclass, time series, regression, etc.), evident from the structured separation in the file tree.
• Extensible API: The clear separation of concerns indicates that users can extend functionality (for example, add custom data checks or pipeline components) without altering the core engine.