harbor run -t openthoughts/tasktrove-mix-h10-reward-binary-v2-mix-h10-binary-2361harbor download openthoughts/tasktrove-mix-h10-reward-binary-v2-mix-h10-binary-2361Task: Implement a Python package dualing under /app/dualing with a core.model module that provides Base and Siamese classes exactly as the tests expect.
What to implement
init(self, name=None)
call(self, x=None)
Optional: Do not override any default behavior that would conflict with test expectations. The tests will create a Base with and without a name and verify the name attribute.
The tests also rely on the ability to assign a callable to an instance attribute named call, e.g., new_base.call = lambda x: x. Therefore, you do not need to implement a specific call method on Base for the tests to work (the tests will monkey-patch an attribute on the instance).
init(self, B)
self.B should be the provided base object when initialization succeeds.
compile(self, *args, **kwargs)
step(self, *args, **kwargs)
fit(self, *args, **kwargs)
evaluate(self, *args, **kwargs)
predict(self, *args, **kwargs)
extract_embeddings(self, x)
Notes and details
File structure to create
Implementation goes in /app/dualing/ (as a package) so that tests importing from dualing.core.model will succeed.