PyLathe
Lathe.py is a wrapper of the machine-learning module for Julia, Lathe, ported into Python.\
- Ensure you have julia.py installed:
sudo pip3 install julia
- There is a known bug on systems with the Aptitude package manager where the Julia executable will fail to load. Unfortunately the issue is with julia.py trying to access Julia in a directory which Apt does not put Julia.
Install it!
Bash
sudo pip3 install Lathe (coming soon)
Python
from Lathe.Runtime import ClassicEnvironment
env = ClassicEnvironment()
stats = env.importStats()
stats.mean([5,10,15])
>>> 10
models = env.importModels()
m = models.LinearRegression([5,10,15,20],[10,20,30,40])
ypred = models.predict(m, [5,10,15,20])
print(ypred)
>>> [10. 20. 30. 40.]
(Yes, it's really that easy) Julia Documentation (Python docs coming soon)