/// <summary> /// Creates a classification neural network from the specified byte array. /// </summary> /// <param name="buffer">The buffer to read the <see cref="ClassificationNetwork"/> from.</param> /// <returns>The <see cref="ClassificationNetwork"/> this method creates.</returns> public static new ClassificationNetwork FromMemory(byte[] buffer) { return(ClassificationNetwork.FromString(UTF8Encoding.UTF8.GetString(buffer))); }
/// <summary> /// Creates a classification neural network from the specified file. /// </summary> /// <param name="fileName">A string that contains the name of the file from which to create the <see cref="ClassificationNetwork"/>.</param> /// <returns>The <see cref="ClassificationNetwork"/> this method creates.</returns> public static new ClassificationNetwork FromFile(string fileName) { return(ClassificationNetwork.FromString(File.ReadAllText(fileName, Encoding.UTF8))); }