/// <summary> /// Parses string in order to initialize IOLayer object /// </summary> /// <param name="strValue">string to parse</param> /// <returns>IOLayer</returns> private IOLayer ParseLayer(string strValue) { var fet = strValue.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); var itm = new IOLayer(); itm.Name = fet[0]; // itm.Representation = /* itm.Name == "NumFeatures" ?*/ "Dimension:";// : "One-Hot-Vector:"; itm.Dimension = int.Parse(fet[1]); return(itm); }
/// <summary> /// Parses string in order to initialize IOLayer object /// </summary> /// <param name="strValue">string to parse</param> /// <returns>IOLayer</returns> private IOLayer ParseLayer(string strValue) { var fet = strValue.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries); var itm = new IOLayer(); itm.Name = fet[0]; // itm.Representation = "Shape"; var inDim = fet[1].Split(MLFactory.m_ValueSpearator).Take(3).ToList(); itm.Dimension = $"{string.Join(";",inDim)}"; return(itm); }