Exemple #1
0
 protected override void CheckModelType() {
     var modelType = ReadString();
     switch (modelType) {
         case "Perceptron":
             delegateModelReader = new PerceptronModelReader(reader);
             break;
         case "GIS":
             delegateModelReader = new GISModelReader(reader);
             break;
         case "QN":
             delegateModelReader = new QNModelReader(reader);
             break;
         default:
             throw new InvalidDataException("Unknown model format: " + modelType);
     }
 }
Exemple #2
0
        protected override void CheckModelType()
        {
            var modelType = ReadString();

            switch (modelType)
            {
            case "Perceptron":
                delegateModelReader = new PerceptronModelReader(reader);
                break;

            case "GIS":
                delegateModelReader = new GISModelReader(reader);
                break;

            case "QN":
                delegateModelReader = new QNModelReader(reader);
                break;

            default:
                throw new InvalidDataException("Unknown model format: " + modelType);
            }
        }