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); } }
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); } }