/// <summary> /// Create basic MLFactory object with input and output variables /// </summary> /// <param name="dicMParameters"></param> /// <returns></returns> public static MLFactory CreateMLFactory(Dictionary <string, string> dicMParameters) { try { MLFactory f = new MLFactory(); //extract features and label strings and create CNTK input variables var strFeatures = dicMParameters["features"]; var strLabels = dicMParameters["labels"]; var dynamicAxes = dicMParameters["network"].Contains("LSTM"); //create config streams f.CreateIOVariables(strFeatures, strLabels, DataType.Float, dynamicAxes); return(f); } catch (Exception) { throw; } }