Added get_predictions on QueryResult
Created a get_predictions function that:
- Loads a model registered with DagsHub-hosted MLFlow
- Locally performs inference on it and either appends to a column, and/or returns it for further use.
Can you redo the linter/long-lines commits with line length set to 120, please? Too many changes, which tells me that it was probably done with 80.
What are you using to format?
If it's black, rerun it with --line-length 120 (AFTER you roll back the commits)
I hope to move to pyproject.toml one day so I can keep this consistent :)
On it!
Interesting note, black does not format comments if they are over the length limit, but flake8 raises issues. What's the preferred approach?
Interesting note, black does not format comments if they are over the length limit, but flake8 raises issues. What's the preferred approach?
I just line break them manually, so it makes sense logically. I switched from black+flake8 to ruff recently, it's a lot faster so I usually get complaints about long line lengths immediately. But it also doesn't break comments
Thank you for being so thorough!
Closing as this is part of https://github.com/DagsHub/client/pull/513