how can I calculate Entropy in for discrete attribute
Jump to turn (6)
- 1how can I calculate Entropy in for discrete attribute
- 2could you give me the top ten libraries for calculate entropy in python
- 3فرمول انتروپی برای ویژگی های گسسته رو بهم میدی
- 4مطمئن هستی که این فرمول برای گسسته ها درست هست؟
- 5میشه اون رو هم بهم بدی
- 6Sample Attribute 1 (Nominal) Attribute 2 (Ordinal) Attribute 3 (Discrete) Attrib
- User
how can I calculate Entropy in for discrete attribute
- Assistant
To calculate entropy for a discrete attribute, follow these steps:
-
Gather data: Start by collecting a dataset with the discrete attribute you want to calculate entropy for. The attribute should have multiple possible values.
-
Count instances: Count the number of instances for each unique value of the attribute. This will give you the frequency or count of each value. Let's say there are N different values for the attribute, and for each value i, there are n[i] instances.
-