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: """
Written for
- Institution
-
Georgia Institute Of Technology
- Course
-
CS 6601
Document information
- Uploaded on
- August 5, 2021
- Number of pages
- 9
- Written in
- 2021/2022
- Type
- Other
- Person
- Unknown
Subjects
Also available in package deal