Пример #1
0
        protected override void OverrideModel(IMLSpecifications.LearningType learningType)
        {
            switch (learningType)
            {
            case IMLSpecifications.LearningType.Classification:
                m_Model = new RapidlibModel(RapidlibModel.ModelType.kNN);
                break;

            case IMLSpecifications.LearningType.Regression:
                m_Model = new RapidlibModel(RapidlibModel.ModelType.NeuralNetwork);
                break;

            default:
                break;
            }
        }
Пример #2
0
        /// <summary>
        /// Instantiates a rapidlibmodel
        /// </summary>
        /// <param name="learningType"></param>
        public override RapidlibModel InstantiateRapidlibModel(IMLSpecifications.LearningType learningType)
        {
            // Switch local learning type
            switch (learningType)
            {
            case IMLSpecifications.LearningType.Classification:
                learningChoice = CR_LearningChoice.Classification;
                break;

            case IMLSpecifications.LearningType.Regression:
                learningChoice = CR_LearningChoice.Regression;
                break;

            default:
                break;
            }
            // Update local and parent learning type
            SetLearningType();
            // Return new model
            return(base.InstantiateRapidlibModel(learningType));
        }
 protected override void OverrideModel(IMLSpecifications.LearningType learningType)
 {
     m_Model = new RapidlibModel(RapidlibModel.ModelType.NeuralNetwork);
 }
 /// <summary>
 /// Instantiates a rapidlibmodel
 /// </summary>
 /// <param name="learningType"></param>
 public override RapidlibModel InstantiateRapidlibModel(IMLSpecifications.LearningType learningType)
 {
     SetLearningType();
     return(base.InstantiateRapidlibModel(learningType));
 }