Node(String label) {
this.label = label;
this.isLeaf = true;
}
Node(String feature, double threshold) {
this.feature = feature;
this.threshold = threshold;
this.isLeaf = false;
}
}
// Fungsi untuk menghitung entropi
Beri Komentar
Belum ada komentar. Jadilah yang pertama untuk memberikan komentar!