Example #1
0
        private double GetClassificationScore(Item item, Individual individual)
        {
            var itemClass = classification.ClassifyItem(item, individual);

            if (itemClass == item.Class)
            {
                return(1.0);
            }

            if (Math.Abs((int)itemClass - (int)item.Class) == 1)
            {
                return(0.4);
            }

            return(0);
        }