public void AddToProblem(SVMProblem problem, string lable, IEnumerable <KeyValuePair <string, double> > xValues)
        {
            var xx = CreateNodes(xValues);

            if (!Lables.ContainsKey(lable))
            {
                Lables.Add(lable, Lables.Count + 100 + 1);
            }
            problem.Add(xx, Lables[lable]);
        }
        public virtual IEnumerable <double> CreateWeightLables(params string[] lables)
        {
            var ls = new List <double>();

            foreach (var lable in lables)
            {
                if (Lables.ContainsKey(lable))
                {
                    ls.Add(Lables[lable]);
                }
            }
            return(ls);
        }