---
title: "update(_:with:eventHandler:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/fullyconnectednetworkclassifier/update(_:with:eventhandler:)"
---

# update(_:with:eventHandler:)

Updates a fully connected network classifier model with a new sequence of examples.

## Declaration

```swift
func update<InputSequence>(_ transformer: inout FullyConnectedNetworkClassifierModel<Scalar, Label>, with input: InputSequence, eventHandler: EventHandler? = nil) async throws where InputSequence : Sequence, InputSequence.Element == AnnotatedFeature<MLShapedArray<Scalar>, Label>
```

## Parameters

- `transformer`: A fully connected network classifier model to update.
- `input`: A sequence of examples.
- `eventHandler`: An event handler.
