News for hackers. Stuff that matters.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by sirlunchalot on Saturday June 08, 2024 @04:06AM (#40616087)
Could you be a bit more specific about what you mean by "You could learn how to use python"? What resources would you recommend to learn how to work around problems the OP has? What basic procedures/resources can you recommend to "learn python"? I work as a software developer alongside my studies and often face the same problems as OP that I would like to avoid. Very grateful for any tips!
Re:Ask HN: Machine Learning Engineers, what do you do at work? by globular-toast on Saturday June 08, 2024 @02:01PM (#40619251)
Basically just use virtual environments via the venv module. The only thing you really need to know is that Python doesn't support having multiple versions of a package installed in the same environment. That means you need to get very familiar with creating (and destroying) environments. You don't need to know any of this if you just use tools that happen to be written in Python. But if you plan to write Python code then you do. It should be in Python books really, but they tend to skip over the boring stuff.
Re:Ask HN: Machine Learning Engineers, what do you do at work? by d0mine on Sunday June 09, 2024 @09:25AM (#40624269)
How do you learn anything in the space of software engineering? In general, there are many different problems and even more solutions with different tradeoffs.

To avoid spending hours on fixing broken environments after a single "pip install", I would make it easy to rollback to a known state. For example, recreate virtualenv from a lock requirements file stored in git: `pipenv sync` (or corresponding command using your preferred tool).