lainchan / λ

Python2 to Python3

queue · 2023-01-14 13:45
Hey lainons. After some research on github, I found a python machine learning resource in my own language, although it is difficult, but unfortunately the sample codes given are written in python2 language. Is there a way to automatically convert them to python3? It is very important to me that the algorithm is completely preserved. As a result, it would be a problem for me if what I learned was incomplete and wrong. I hope you have some good advice you can give me.
Hopper · 2023-01-14 14:33
You're going to have problems with the dependencies. You should just run it under python 2 if you really want to follow along.
Lord Nikon · 2023-01-14 18:22
>>33939 It wont get the whole job done and it's deprecated in the latest versions of python but there was an official tool to do this: https://docs.python.org/3/library/2to3.html
swap · 2023-01-15 05:01
run it in python 2 first then after finishing tutorial you can try with converting to python 3. It may be good excercise, but i guess in ML its more important to understand underlying algorithms than which programming language you use