CS 6601 assignment 4 Fall 2020 Georgia Institute Of Technology
CS 6601 assignment 4 Fall 2020 Georgia Institute Of Technology from __future__ import division import numpy as np from collections import Counter import time class DecisionNode: """Class to represent a single node in a decision tree. left (DecisionNode): left child node. right (DecisionNode): right child node. decision_function (func): function to decide left or right node. """ = left = right ion_function = decision_function _label = class_label def decide(self, feature): """Get a child node based on the decision function. Args: feature (list(int)): vector for feature. Return: Args: """
Geschreven voor
- Instelling
- Georgia Institute Of Technology
- Vak
- CS 6601
Documentinformatie
- Geüpload op
- 5 augustus 2021
- Aantal pagina's
- 9
- Geschreven in
- 2021/2022
- Type
- OVERIG
- Persoon
- Onbekend
Onderwerpen
-
assignment4
-
cs 6601
Ook beschikbaar in voordeelbundel