Sequential..::..Compile Method (String, String, String, Regulizers)

Configures the model for training.

Namespace:  SiaNet
Assembly:  SiaNet (in SiaNet.dll)

Syntax


public void Compile(
	string optimizer,
	string loss,
	string metric,
	Regulizers regulizer
)
Public Sub Compile ( _
	optimizer As String, _
	loss As String, _
	metric As String, _
	regulizer As Regulizers _
)
public:
void Compile(
	String^ optimizer, 
	String^ loss, 
	String^ metric, 
	Regulizers^ regulizer
)

Parameters

optimizer
Type: String
The optimizer function name used for training the model.
loss
Type: String
The function name with which the training loss will be minimized.
metric
Type: String
The metric name to be evaluated by the model during training and testing.
regulizer
Type: SiaNet..::..Regulizers
The regulizer instance to apply penalty on layers parameters.