コード例 #1
0
 public NetMLCreator(NetMLObject netMLObject)
 {
     this.netMLObject = netMLObject;
     if (netMLObject.AlgorithmusClassification == "classification")
     {
         netMLClassificatonCreator = new NetMLClassificatonCreator(netMLObject);
     }
     else if (netMLObject.AlgorithmusClassification == "clustering")
     {
         netMLClusteringCreator = new NetMLClusteringCreator(netMLObject);
     }
     else if (netMLObject.AlgorithmusClassification == "regression")
     {
         netMLRegressionCreator = new NetMLRegressionCreator(netMLObject);
     }
 }
コード例 #2
0
        public NetMLCreator(string netMLCreationString)
        {
            NetMLParser netMLParser = new NetMLParser();
            var         result      = netMLParser.Parse(netMLCreationString);

            this.netMLObject = result;
            if (netMLObject.AlgorithmusClassification == "classification")
            {
                netMLClassificatonCreator = new NetMLClassificatonCreator(netMLObject);
            }
            else if (netMLObject.AlgorithmusClassification == "clustering")
            {
                netMLClusteringCreator = new NetMLClusteringCreator(netMLObject);
            }
            else if (netMLObject.AlgorithmusClassification == "regression")
            {
                netMLRegressionCreator = new NetMLRegressionCreator(netMLObject);
            }
        }