Ravindra BagaleCourses & study guides English Track your progress

32. Machine Learning मध्ये Features आणि Labels

Data Science

32.2 Numeric, Category आणि Text Features

का गरजेचे आहे. प्रत्येक column एकाच प्रकारचे feature नसतो. Models numbers आणि text वेगळ्या पद्धतीने हाताळतात (तपशील पुढील chapters मध्ये).

हे काय आहे.

  • Numeric features — counts, ₹ रक्कम, km, minutes.
  • Category features — city name, payment mode, store id (मर्यादित labels).
  • Text features — review वाक्ये, complaint notes (वेगळी तयारी लागते; NLP block नंतर).

कसे करायचे.

  1. प्रत्येक column लिहा आणि numeric / category / text / ignore mark करा.
  2. पहिल्या ML models (ch33+) साठी numeric (+ साध्या categories) पासून सुरू करा.
  3. लांब free text NLP chapters साठी ठेवा, जोपर्यंत mentor वेगळे सांगत नाही.
import pandas as pd

row = {
 "items": 4, # numeric
 "distance_km": 3.2, # numeric
 "city": "Pune", # category
 "payment": "UPI", # category
 "note": "please call at gate", # text — later
}
print(row)

Ravindra Bagale's Tip

Start with numeric features, because they are the easiest to use in a model. Add category features after that, and move to text features only when the basics work well. A strong base of simple features will help you more than a quick jump to difficult ones.