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

# update(_:with:eventHandler:)

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

## Declaration

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

## Parameters

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