SiaNet/Sequential.cs
/// <summary>
/// Loads the model from the saved json to the Sequential model instance.
/// </summary>
/// <param name="filePath">The file path.</param>
/// <returns></returns>
Loads the model from the saved json to the Sequential model instance.
Loads the model from the saved json to the Sequential model instance .
public static Sequential LoadModel(string filePath)
        {
            string jsondata = File.ReadAllText(filePath);
            Sequential model = JsonConvert.DeserializeObject<Sequential>(jsondata, new JsonSerializerSettings() { TypeNameHandling = TypeNameHandling.Auto });
            return model;
        }
public static Sequential LoadModel ( string filePath ) { string jsondata = File . ReadAllText ( filePath ) ; Sequential model = JsonConvert . DeserializeObject < Sequential > ( jsondata , new JsonSerializerSettings ( ) { TypeNameHandling = TypeNameHandling . Auto } ) ; return model ; }
Loads the model from the saved json to the Sequential model instance.
Loads the model from the saved json to the Sequential model instance .
None
filePath
string
The file path.
The file path .