コード例 #1
0
        public MetaSVMConfiguration GetConfiguration()
        {
            MetaSVMConfiguration retVal = new MetaSVMConfiguration();

            retVal.parameter = Parameters[0];
            retVal.Name      = Name;
            retVal.stds      = standardClassifiers.Select(x => x.GetConfiguration()).ToList();

            return(retVal);
        }
コード例 #2
0
        public static MetaSVMConfiguration Deserialize(string input)
        {
            MetaSVMConfiguration msvmc = new MetaSVMConfiguration();
            var bits = input.Split(META_SEPARATOR);

            msvmc.Name            = bits[0];
            msvmc.parameter.C     = double.Parse(bits[1]);
            msvmc.parameter.Gamma = double.Parse(bits[2]);

            foreach (var item in bits.Skip(3))
            {
                msvmc.stds.Add(SVMConfiguration.Deserialize(item));
            }

            return(msvmc);
        }