AIMA.Core.Learning.Inductive.DecisionTree.predict C# (CSharp) Method

predict() public method

public predict ( Example e ) : Object
e AIMA.Core.Learning.Framework.Example
return Object
        public virtual Object predict(Example e)
        {
            String attrValue = e.getAttributeValueAsString(attributeName);
            if (nodes.ContainsKey(attrValue))
            {
                return nodes[attrValue].predict(e);
            }
            else
            {
                throw new ApplicationException("no node exists for attribute value "
                        + attrValue);
            }
        }