swapuniba / clayrs Goto Github PK
View Code? Open in Web Editor NEWComplexly represent contents, build recommender systems, evaluate them. All in one place!
Home Page: https://swapuniba.github.io/ClayRS
License: GNU General Public License v3.0
Complexly represent contents, build recommender systems, evaluate them. All in one place!
Home Page: https://swapuniba.github.io/ClayRS
License: GNU General Public License v3.0
Is your feature request related to a problem? Please describe.
Currently, we have an interesting variety of possible back-ends for mathematical processing. However, to minimize the differences and allow a quick transition between them, frameworks like Ivy are growing and allowing users/developers/researchers/etc to implement their models through an agnostic interface and execute them in any back-end they want. This solution would also make PyTorch not a mandatory dependency for the project, and we would be able to install ClayRS along a specific back-end with commands like pip install clayrs[tf]
or pip install clayrs[torch]
- which also complies with HuggingFace, for instance.
Describe the solution you'd like
Something like this would be interesting if I have more than one backend available:
from clayrs.backend import use_tensorflow
use_tensorflow()
If there is only one backend available, use it as default with an info/warning message in the first usage.
Additional context
Filling this issue while attending Marco Polignano's lecture at RecSys Summer School 2023 :)
Is your feature request related to a problem? Please describe.
Is it a plan to evolve and include Collaborative Filtering in the package? It would be exciting if we could have methods like matrix factorization off-the-shelf, considering that the validation and evaluation are the same in many cases.
Describe the solution you'd like
I want to be able to import a Matrix Factorization with something like this:
from clayrs import recsys as rs
strategy = rs.MatrixFactorization(...)
collaborative_rs = rs.CollaborativeFilteringRS(strategy, ...)
Describe alternatives you've considered
There are a few models already implemented in other frameworks shared during previous editions of RecSys, including DRecPy, which also provides efficient memory-disk management.
Additional context
Filling this issue while attending Marco Polignano's lecture at RecSys Summer School 2023 :)
At the moment, the default number of cpus for the recsys module is 0, meaning that all possible cpus will be used: this is a problem since python multiprocessing relies on pickling contexts which may be slow depending on the environment (mainly colab).
Change the default value to 1 to improve ease of use and speed for the above cases
Is your feature request related to a problem? Please describe.
Currently, it takes a long time to install the package and it also requires the installation of other resources - such as MySQL - which may often not be used. Is it possible to reduce the mandatory dependencies to the core ones, and require other ones as long as the user needs them?
Describe the solution you'd like
For example, NLTK only downloads text corpora when requested by the user. Following these optics, I am a user that will likely never use such a package for knowledge-aware recommenders or building knowledge graphs, but I have a great interest in using it for Collaborative Filtering - and perhaps, in the future, Sequential and Session-based recommendation.
Additional context
Filling this issue while attending Marco Polignano's lecture at RecSys Summer School 2023 :)
At the moment, retrieving properties from DBPedia is quite slow (20 min for 1682 contents).
Consider the possibility to improve it
At the moment, the class Transformer of the content analyzer has embedded inside the pooling operation which is instead done for the other embedding techniques by the Words2Sentence class, Words2Doc class, etc.
Fix this to improve coherence
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.