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