GithubHelp home page GithubHelp logo

magistery-tps / rec-sys-client-lib Goto Github PK

View Code? Open in Web Editor NEW

This project forked from magistery-tps/rec-sys

0.0 0.0 0.0 105.82 MB

rec-sys client side api

Home Page: https://magistery-tps.github.io/rec-sys-client-lib/

Python 83.59% Jupyter Notebook 16.41%
airflow bert machine machine-learning-algorithms nmf recommender-system svd

rec-sys-client-lib's Introduction

recsys-client-lib

This library give support for:

  • Access to rec-sys via database repositories.
  • Access to rec-sys REST API to config and update recommenders data.
  • Jobs: Used to build and config similarity matrix (user-user / item-item) required by rec-sys recommenders.

Requirements

Getting Started

Step 1: First Import src directory into python class path:

import sys
sys.path.append('./src')

Step 2: Import DomainContext class. DomainContext is a python class that build and config all services required to interact with rec-sys via REST API or Database Client. DomainContext can be seen as a facade pattern.

from recsys.domain_context import DomainContext

ctx = DomainContext()

Step 3: Access to a REST API client

api_client = ctx.api

# Get user interactions
api_client.interacitons()

See api.recsys.RecSysApi for more detail.

Step 3: Execute a job.

ctx.bert_item_distance_matrix_job('all-mpnet-base-v2').execute()

ctx.svd_distance_matrix_job.execute()

ctx.nmf_distance_matrix_job.execute()

See job for more detail.

Step 4: Also could run jobs from bash.

$ conda activate recsys-client-side

$ python bin/svd_distance_matrix_job.py

$ python bin/nmf_distance_matrix_job.py

$ python bin/all_minilm_l12_v2_bert_item_distance_matrix_job.py

$ python bin/all_mpnet_base_v2_bert_item_distance_matrix_job.py

$ python bin/all_minilm_l6_v2_bert_item_distance_matrix_job.py

$ python bin/multi_qa_mpnet_base_dot_v1_bert_item_distance_matrix_job.py

API Documentation

Go to rec-sys-client-side Documentation.

WIKI

Go to rec-sys WIKI for model project details.

rec-sys-client-lib's People

Contributors

adrianmarino avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.