<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n" -->

---
title: Should you discretize features for Machine Learning?
description: Learn about discretizing continuous features for Machine Learning and the recommendation not to use it unless it provides a meaningful benefit to the model.
canonical: https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Should you discretize features for Machine Learning? | daily.dev
og:description: Learn about discretizing continuous features for Machine Learning and the recommendation not to use it unless it provides a meaningful benefit to the model.
og:url: https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n
og:image: https://api.daily.dev/og/posts/PpX4eON6n.png
og:image:alt: Should you discretize features for Machine Learning?
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Should you discretize features for Machine Learning?

**[Planet Python](https://daily.dev/sources/planetpython)** · 2 min read · 2 upvotes · 0 comments

## Summary

Learn about discretizing continuous features for Machine Learning and the recommendation not to use it unless it provides a meaningful benefit to the model.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.dataschool.io/discretization-for-machine-learning/>

---

Tags: [#machine-learning](https://daily.dev/tags/machine-learning), [#scikit](https://daily.dev/tags/scikit), [#feature-engineering](https://daily.dev/tags/feature-engineering)

[View this post on daily.dev](https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Should you discretize features for Machine Learning?","url":"https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n"},"datePublished":"2024-04-10T16:48:19.396Z","dateModified":"2024-05-09T08:39:06.345Z","description":"Learn about discretizing continuous features for Machine Learning and the recommendation not to use it unless it provides a meaningful benefit to the model.","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d47832bf7f5deea109425c6e6c997f68?_a=AQAEufR","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/d47832bf7f5deea109425c6e6c997f68?_a=AQAEufR","isAccessibleForFree":true,"articleSection":"Planet Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/eac3cc584cb043b5a242d13752bd3d0c","url":"https://daily.dev/sources/planetpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/should-you-discretize-features-for-machine-learning--ppx4eon6n","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"machine-learning,scikit,feature-engineering","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet Python","item":"https://daily.dev/sources/planetpython"},{"@type":"ListItem","position":3,"name":"Should you discretize features for Machine Learning?"}]}
```

