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

Liga: the ML-enhanced SQL part of Rikai (The Hackathon) #13

Closed
3 tasks done
da-tubi opened this issue Jan 6, 2023 · 0 comments
Closed
3 tasks done

Liga: the ML-enhanced SQL part of Rikai (The Hackathon) #13

da-tubi opened this issue Jan 6, 2023 · 0 comments
Assignees

Comments

@da-tubi
Copy link
Collaborator

da-tubi commented Jan 6, 2023

Hackathon

by @da-tubi and @Renkai

Here is the result of the hackathon:

Liga v.s. Rikai

Liga v.s. Rikai (Linguistic)

The pronounciation of Liga in Wuu Chinese and Rikai in Japanese is almost the same.
The meaning of Liga or Rikai is understanding in English or 理解 in Chinese.

Liga v.s. Rikai (Demo Notebook)

Liga v.s. Rikai (Software Engineering)

Rikai is too complicated to maintain and it is dedicated for computer vision. Liga is designed to modularize Rikai, we only need the ML-enhanced SQL part of Rikai:

  • the ML_PREDICT magic syntax for Spark SQL (also ML_TRANSFORM , ML_FORECAST )
  • MLflow integration
  • ModelType design
- Rikai: ML_PREDICT/ModelType/MLflow/PyTorch/Computer Vision/Rikai format
+ Liga: ML_PREDICT/ModelType/MLflow/Sklearn

Liga v.s. Rikai (Pypi)

rikai

  • rikai 0.1.15

liga

  • liga 0.2.0dev3 0.2.0
    • liga-mlflow 0.2.0
    • liga-sklearn 0.2.0
    • liga-torch
    • liga-vision
      • liga-torchvision

Liga

Using the Pants build tool

Enable Python Linter and Checker

Before

# no linter and cheker

After

bin/lint
bin/check

How to test

Before

sbt publishLocal

cd python
# create a python virtualenv
pip install -e . # pip install -e .[all] to install all optional extras (see "Install from pypi")

Now

sbt assembly

bin/test

Launch the Jupyter Lab

Before

sbt publishLocal

cd python
# create a python virtualenv
pip install -e . # pip install -e .[all] to install all optional extras (see "Install from pypi")
jupyterlab

Now

sbt assembly

bin/lab sklearn

Plans

The Liga project is started as a hackathon project at Tubi. Here is the Plans:

  1. Fork Rikai to Liga and remove the not-used code
  2. Integrate liga-sklearn to verify the usability of Liga
  3. Extensible Registeries #17
@da-tubi da-tubi changed the title Liga: the ML-enhanced SQL part of Rikai Liga: the ML-enhanced SQL part of Rikai (The Hackathon) Jan 6, 2023
@da-tubi da-tubi added this to the 4th annual Tubi Hackathon! milestone Jan 7, 2023
@da-tubi da-tubi closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants