Show / Hide Table of Contents

Class Sequential

The Sequential model is a linear stack of layers. You can create a Sequential model by passing a list of layer instances to the constructor

Inheritance
System.Object
Keras
Base
BaseModel
Sequential
Implements
System.IDisposable
Inherited Members
BaseModel.Compile(StringOrInstance, String, String[], Single[], String, String[], NDarray[])
BaseModel.Fit(NDarray, NDarray, Nullable<Int32>, Int32, Int32, Callback[], Single, NDarray[], Boolean, Dictionary<Int32, Single>, NDarray, Int32, Nullable<Int32>, Nullable<Int32>)
BaseModel.Evaluate(NDarray, NDarray, Nullable<Int32>, Int32, NDarray, Nullable<Int32>, Callback[])
BaseModel.Predict(NDarray, Nullable<Int32>, Int32, Nullable<Int32>, Callback[])
BaseModel.TrainOnBatch(NDarray, NDarray, NDarray, Dictionary<Int32, Single>)
BaseModel.TestOnBatch(NDarray, NDarray, NDarray)
BaseModel.PredictOnBatch(NDarray)
BaseModel.ToJson()
BaseModel.SaveWeight(String)
BaseModel.Save(String)
BaseModel.LoadWeight(String)
BaseModel.LoadModel(String)
BaseModel.ModelFromJson(String)
BaseModel.ModelFromYaml(String)
BaseModel.SaveOnnx(String)
BaseModel.Summary(Nullable<Int32>, Single[])
BaseModel.SaveTensorflowJSFormat(String, Boolean)
Base.Parameters
Base.None
Base.Init()
Base.ToPython()
Base.InvokeStaticMethod(Object, String, Dictionary<String, Object>)
Base.InvokeMethod(String, Dictionary<String, Object>)
Base.Item[String]
Keras.Instance
Keras.keras
Keras.keras2onnx
Keras.tfjs
Keras.Dispose()
Keras.ToTuple(Array)
Keras.ToList(Array)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Models
Assembly: Keras.dll
Syntax
public class Sequential : BaseModel, IDisposable

Constructors

| Improve this Doc View Source

Sequential()

Initializes a new instance of the Sequential class.

Declaration
public Sequential()
| Improve this Doc View Source

Sequential(BaseLayer[])

Initializes a new instance of the Sequential class.

Declaration
public Sequential(BaseLayer[] layers)
Parameters
Type Name Description
BaseLayer[] layers

The layers.

Methods

| Improve this Doc View Source

Add(BaseLayer)

You can also simply add layers via the .Add() method

Declaration
public void Add(BaseLayer layer)
Parameters
Type Name Description
BaseLayer layer

The layer.

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX