You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Result: add mutable extra dict for arbitrary attributes; objective: add MinimizeAttribute/MaximizeAttribute (works with built-ins or extra keys); docs+example; bump DB version to 0.1; tests
The `extra` field is stored in the database using a compressed pickle and is tracked for in-place mutations, so updating keys will be persisted automatically on commit.
122
+
123
+
### Using custom attributes as metrics
124
+
125
+
You can drive the search by any built-in `Result` field or a key in `Result.extra` using the new flexible objectives:
126
+
127
+
```python
128
+
from opentuner.search.objective import MinimizeAttribute, MaximizeAttribute
129
+
130
+
# Example: minimize a custom latency value stored in Result.extra['p95_ms']
If the attribute name matches a concrete column (e.g., `time`, `accuracy`), ordering is done directly in SQL. Otherwise, ordering falls back to in-Python comparisons.
0 commit comments