Comments (2)
Hi @gczh, thanks for the suggestion. Added support for passing multiple attributes in a single call in the commit above.
Re Disco: the current matrix factorization library doesn't support it (ankane/disco#24).
from neighbor.
Solved this by doing the following:
class SomeModel < ApplicationRecord
has_neighbors :embeddings, :factors
has_neighbors :factors
...
end
@ankane Although, it'll be nice if we could do something like in the original question. That would be more intuitive!
Thank you so much for making this tool that greatly contributes to Ruby's ML ecosystem!
PS: If it's not too much to ask here, @ankane, is there any way to use Disco to generate factors in almost real-time (when there is new data, update the model) Would that be expensive resource-wise?
from neighbor.
Related Issues (11)
- Ideas
- Limiting and ordering results HOT 2
- Is there a good way to support multiple embeddings tied to a particular record? HOT 2
- Best practice for not loading embeddings throughout the app? HOT 4
- `nearest_neighbors` on average of relational vectors? HOT 2
- Ideas
- Update OpenAI quickstart to use Cosine like their documentation HOT 1
- Access to `neighbor_distance` when using `nearest_neighbors`
- Is it possible to create a word embedding in Ruby without using OpenAI HOT 3
- missing keyword: :distance HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neighbor.