Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Easy] Add Python Typing to statitics to train/evaluate/evaluate function #8

Open
guillaume-chervet opened this issue May 24, 2023 · 0 comments

Comments

@guillaume-chervet
Copy link
Owner

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

@guillaume-chervet guillaume-chervet converted this from a draft issue May 24, 2023
@guillaume-chervet 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 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
@guillaume-chervet guillaume-chervet moved this from Todo to Draft in MLOpsPython May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Draft
Development

No branches or pull requests

1 participant