{"schemaVersion":"1.0","record":{"label":"scikit-learn","description":"Python machine-learning library with preprocessing, estimators, evaluation and composable pipelines.","aliases":["sklearn"],"kind":"software","website":"https://scikit-learn.org/","overview":"scikit-learn is a Python library for predictive analysis, clustering, preprocessing and model selection. It supplies reusable estimators and pipeline components rather than a standalone visual workbench, allowing developers to assemble and evaluate data-analysis workflows in Python.","license":"Open-source BSD-licensed software, including commercial use.","lifecycle":"active","example":false,"features":[{"name":"Preprocessing and estimator pipelines","status":"supported","detail":"Pipelines combine transformations with prediction and support evaluation without fitting preprocessing on held-out data.","useCase":"Programmatic classification, regression and evaluation of tabular datasets","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://scikit-learn.org/stable/common_pitfalls.html","locator":"Consistent preprocessing and data leakage","retrievedAt":"2026-10-07T16:55:11Z","kind":"vendor"}]},{"name":"Categorical and GPU support","status":"limited","detail":"Support varies by estimator; native histogram boosting accepts categorical features, while GPU execution is limited to compatible configured estimators.","useCase":"Programmatic classification, regression and evaluation of tabular datasets","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://scikit-learn.org/stable/faq.html","locator":"GPU support, categorical variables and deep-learning scope","retrievedAt":"2026-10-07T16:55:34Z","kind":"vendor"},{"url":"https://scikit-learn.org/stable/modules/ensemble.html","locator":"Histogram boosting categorical and missing-value behavior","retrievedAt":"2026-10-07T16:55:34Z","kind":"vendor"}]},{"name":"Persisted model portability","status":"limited","detail":"Python-object persistence requires compatible environments; cross-version loading is unsupported and pickle-derived formats require trusted artifacts.","useCase":"Programmatic classification, regression and evaluation of tabular datasets","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://scikit-learn.org/stable/model_persistence.html","locator":"Version compatibility, pickle trust, skops and ONNX limits","retrievedAt":"2026-10-07T16:56:42Z","kind":"vendor"}]}],"alternatives":[],"slug":"scikit-learn","draftAlternatives":[{"targetSlug":"weka","status":"limited","detail":"Can replace Weka for classification, regression and evaluation when users prefer Python code. Visual workflows and saved Java models require reconstruction rather than assumed interchange.","useCase":"Programmatic classification, regression and evaluation of tabular datasets","platforms":["Windows","macOS","Linux"],"region":"Version, build and integration requirements apply","evidence":[{"url":"https://scikit-learn.org/stable/","locator":"Algorithms, preprocessing, model selection and BSD licensing","retrievedAt":"2026-10-07T16:55:22Z","kind":"vendor"},{"url":"https://ml.cms.waikato.ac.nz/weka/","locator":"Java machine-learning workbench","retrievedAt":"2026-10-07T16:44:40Z","kind":"vendor"},{"url":"https://scikit-learn.org/stable/model_persistence.html","locator":"Version compatibility, pickle trust, skops and ONNX limits","retrievedAt":"2026-10-07T16:56:42Z","kind":"vendor"}]},{"targetSlug":"orange-data-mining","status":"limited","detail":"Covers supported tabular predictive modeling and evaluation through Python estimators and pipelines. Orange visual workflows need reconstruction; identical preprocessing, models and results are not established.","useCase":"Tabular classification, regression and model evaluation","platforms":["Windows","macOS","Linux"],"region":"Estimator, input-data and dependency requirements apply","evidence":[{"url":"https://scikit-learn.org/stable/","locator":"Algorithms, preprocessing, model selection and BSD licensing","retrievedAt":"2026-10-07T16:55:22Z","kind":"vendor"},{"url":"https://scikit-learn.org/stable/common_pitfalls.html","locator":"Consistent preprocessing and data leakage","retrievedAt":"2026-10-07T16:55:11Z","kind":"vendor"},{"url":"https://orangedatamining.com/","locator":"Connected widgets, interactive exploration and extensions","retrievedAt":"2026-10-11T14:23:39Z","kind":"vendor"},{"url":"https://orangedatamining.com/widget-catalog/evaluate/testandscore/","locator":"Classification and regression evaluation; cross-validation and preprocessing","retrievedAt":"2026-10-11T14:23:39Z","kind":"vendor"},{"url":"https://orangedatamining.com/faq/","locator":"No export of a visual workflow as a Python script","retrievedAt":"2026-10-11T14:23:39Z","kind":"vendor"}]}],"evidence":[{"url":"https://scikit-learn.org/stable/","locator":"Algorithms, preprocessing, model selection and BSD licensing","retrievedAt":"2026-10-07T16:55:22Z","kind":"vendor"},{"url":"https://scikit-learn.org/stable/common_pitfalls.html","locator":"Consistent preprocessing and data leakage","retrievedAt":"2026-10-07T16:55:11Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://scikit-learn.org/stable/","locator":"Algorithms, preprocessing, model selection and BSD licensing","retrievedAt":"2026-10-07T16:55:22Z","id":"home","title":"scikit-learn","kind":"vendor"},{"url":"https://scikit-learn.org/stable/common_pitfalls.html","locator":"Consistent preprocessing and data leakage","retrievedAt":"2026-10-07T16:55:11Z","id":"pitfalls","title":"Common pitfalls and recommended practices","kind":"vendor"},{"url":"https://scikit-learn.org/stable/install.html","locator":"Platform installation, environments and dependencies","retrievedAt":"2026-10-07T16:55:22Z","id":"install","title":"Installing scikit-learn","kind":"vendor"},{"url":"https://scikit-learn.org/stable/model_persistence.html","locator":"Version compatibility, pickle trust, skops and ONNX limits","retrievedAt":"2026-10-07T16:56:42Z","id":"persist","title":"Model persistence","kind":"vendor"},{"url":"https://scikit-learn.org/stable/faq.html","locator":"GPU support, categorical variables and deep-learning scope","retrievedAt":"2026-10-07T16:55:34Z","id":"faq","title":"scikit-learn FAQ","kind":"vendor"},{"url":"https://scikit-learn.org/stable/modules/ensemble.html","locator":"Histogram boosting categorical and missing-value behavior","retrievedAt":"2026-10-07T16:55:34Z","id":"ensemble","title":"Ensemble models","kind":"vendor"},{"url":"https://ml.cms.waikato.ac.nz/weka/","locator":"Java machine-learning workbench","retrievedAt":"2026-10-07T16:44:40Z","id":"weka","title":"Weka workbench","kind":"vendor"},{"url":"https://orangedatamining.com/","locator":"Connected widgets, interactive exploration and extensions","retrievedAt":"2026-10-11T14:23:39Z","id":"orange-home","title":"Orange visual analysis","kind":"vendor"},{"url":"https://orangedatamining.com/widget-catalog/evaluate/testandscore/","locator":"Classification and regression evaluation; cross-validation and preprocessing","retrievedAt":"2026-10-11T14:23:39Z","id":"orange-evaluation","title":"Orange Test and Score","kind":"vendor"},{"url":"https://orangedatamining.com/faq/","locator":"No export of a visual workflow as a Python script","retrievedAt":"2026-10-11T14:23:39Z","id":"orange-faq","title":"Orange workflow export FAQ","kind":"vendor"}],"overviewCitations":["home","pitfalls"],"licenseCitations":["home"],"sections":[{"id":"workflow","heading":"Modeling workflow","paragraphs":[{"id":"workflow-detail","content":[{"text":"The library covers multiple stages of analysis: preparing features, fitting classifiers or regressors, grouping unlabeled observations and selecting model parameters. Its collection includes linear methods, nearest neighbors, forests and boosting. This breadth is useful when a project needs comparable baselines and evaluation tools within one programming environment rather than committing to a single training algorithm."}],"citations":["home"]}]},{"id":"validation","heading":"Preprocessing and validation","paragraphs":[{"id":"validation-detail","content":[{"text":"Transformations learned during training must also be applied to later inputs. Fitting a scaler or selecting features using the entire dataset before evaluating a held-out subset can leak information and inflate measured performance. A pipeline keeps transformations attached to the estimator and lets cross-validation fit them within the appropriate training subset. It does not remove the need to choose a suitable evaluation design."}],"citations":["pitfalls"]}]},{"id":"features","heading":"Categorical data and hardware","paragraphs":[{"id":"features-detail","content":[{"text":"Data handling is estimator-specific. Histogram gradient boosting supports categorical splits and missing values; categorical cardinality is constrained by max_bins, and unseen prediction categories are treated as missing. Most other estimators require suitable numerical representations. Experimental Array API support enables selected estimators to use GPU-backed arrays, but this is not universal GPU acceleration for the library's tree implementations."}],"citations":["ensemble","faq"]}]},{"id":"persistence","heading":"Saving and deploying models","paragraphs":[{"id":"persistence-detail","content":[{"text":"Pickle, joblib and cloudpickle artifacts can execute code when loaded and should come only from trusted sources. Loading Python objects across scikit-learn versions is unsupported; preserving the training recipe and dependency versions matters for rebuilding models. skops allows inspection of untrusted types but still requires validation. ONNX supports inference without reconstructing the original Python object, with converter coverage limits and a recommendation for sandboxed execution."}],"citations":["persist"]}]},{"id":"availability","heading":"Availability and licensing","paragraphs":[{"id":"availability-detail","content":[{"text":"The project is open source under a BSD license and permits commercial use. Installation documentation covers Windows, macOS and Linux, with Python package environments used to isolate dependencies. NumPy and SciPy underpin the scientific stack; plotting and particular examples add further packages. Operating-system distributions may ship older releases, so a distribution package and the latest upstream documentation need not describe identical capabilities."}],"citations":["home","install"]}]},{"id":"substitution","heading":"Substitution considerations","paragraphs":[{"id":"substitution-detail","content":[{"text":"For users moving from "},{"text":"Weka","targetSlug":"weka"},{"text":", scikit-learn offers overlapping predictive-modeling tasks through Python rather than a Java workbench. Treat migration as rebuilding preprocessing, evaluation and deployment around the chosen estimators. The documented capabilities support that task-level substitution, but do not establish identical fitted models, accuracy or artifact compatibility. Its basic neural-network module also does not make it a general replacement for a full deep-learning framework."}],"citations":["home","weka","faq","persist"]},{"id":"orange-comparison","content":[{"text":"scikit-learn can substitute for "},{"text":"Orange","targetSlug":"orange-data-mining"},{"text":" for supported tabular classification, regression and model evaluation when a team prefers to maintain the analysis as Python code. Its estimator and pipeline APIs make preprocessing and model fitting explicit parts of that program. Orange offers a visual canvas instead, and its FAQ does not support exporting that workflow as a Python script. Rebuild the chosen analysis, matching input attributes, preprocessing, validation splits and estimator settings; neither identical fitted models nor automatic workflow conversion is established."}],"citations":["home","pitfalls","orange-home","orange-evaluation","orange-faq"]}]}]},"id":"Q188","revision":1416,"updatedAt":"2026-10-19T06:19:40Z","sourceUrl":"https://substitutefor.net/entities/Q188?revision=1416"}}