harbor run -t openthoughts/tasktrove-exp-flat25-subtle-debug-v3-5k-subtle-3476harbor download openthoughts/tasktrove-exp-flat25-subtle-debug-v3-5k-subtle-3476Workspace note: This workspace contains a partially broken implementation at /app/starter_code.py. You must fix the bugs and complete the implementation there so that the adapt.utils module provides the required functionality described below.
ORIGINAL TASK (rewritten to reflect the above workspace note)
Task description: Implement the adapt.utils module to provide data handling helpers, model/estimator validation and copying utilities, default Keras model builders, a gradient wrapper with a custom gradient, and synthetic data generators used by the tests. The current code is partially broken and located at /app/starter_code.py; you must fix the bugs and complete the implementation there.
What you need to implement (functional requirements)
network argument to be a Model instance, got: {no_net}"network argument can't be duplicated. Recorded exception: {exception_msg}"network argument is not compiled yet. Please use model.compile(optimizer, loss)."tireli argument is not compiled yet. Please use model.compile(optimizer, loss)." (where tireli is the display_name)estimator argument is a sklearn ClassifierMixin instance whereas the considered object handles only regression task. Please provide a sklearn RegressionMixin instance or a tensorflow Model instance."tireli argument is a sklearn ClassifierMixin instance " (where tireli is the display_name)estimator argument is a sklearn RegressionMixin instance whereas the considered object handles only classification task. Please provide a sklearn ClassifierMixin instance or a tensorflow Model instance."tireli argument is a sklearn RegressionMixin instance " (where tireli is the display_name)estimator argument can't be duplicated. Recorded exception: {exception_msg}"Self-contained requirements and constraints
Acceptance criteria (mapping to tests)
Deliverables
This task results in a self-contained, test-driven utility module that provides data handling utilities, estimator/model copying utilities, default neural network builders, a differentiable gradient wrapper, and synthetic data generators required by the tests.