SiaNet/Sequential.cs
/// <summary>
/// Saves the model in json format to the file path.
/// </summary>
/// <param name="filePath">The file path.</param>
Saves the model in json format to the file path.
Saves the model in json format to the file path .
public void SaveModel(string filePath)
        {
            string modelJson = JsonConvert.SerializeObject(this
                                                    , Formatting.Indented
                                                    , new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.Auto });
            File.WriteAllText(filePath, modelJson);
        }
public void SaveModel ( string filePath ) { string modelJson = JsonConvert . SerializeObject ( this , Formatting . Indented , new JsonSerializerSettings ( ) { TypeNameHandling = TypeNameHandling . Auto } ) ; File . WriteAllText ( filePath , modelJson ) ; }
Saves the model in json format to the file path.
Saves the model in json format to the file path .
filePath
string
The file path.
The file path .