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
guillaume-chervet
changed the title
Add Python Typing to statitics to train/evaluate function
Add Python Typing to statitics to train/evaluate/evaluate function
May 24, 2023
guillaume-chervet
changed the title
Add Python Typing to statitics to train/evaluate/evaluate function
[Easy] Add Python Typing to statitics to train/evaluate/evaluate function
May 24, 2023
Use a dataclass instead of a dictionnary:
actually:
statistics = {
"ok": 0,
"ko": 0,
"total": 0
}
we want:
@DataClass
class Statistics:
ok: int =0
ko: int = 0
total: int = 0
The text was updated successfully, but these errors were encountered: