Comments (5)
Hey @Composmentis ! We are still building convenience methods for saving and loading models. We'll be tracking that work on #8
I expect that to be merged within the week.
Closing as duplicate
from tensorrec.
Hi James,
I'm still unclear on @Composmentis 's initial question, i.e. how does saving/loading models enable feeding a previously unseen user to an already trained model with tensorrec?
Thanks!
from tensorrec.
Hey @borisrev -- A user is simply a collection of feature values, so a TensorRec does not know or care if it has seen the user in training.
I interpreted the initial question to mean "I want to train a TensorRec model and save it. In the future, I will want to load it and get predictions for new users." The missing link, at the time of the initial question, is that TensorRec did not have methods for saving and loading the models.
from tensorrec.
Let's say you're using an identity matrix for the user matrix when training as in the MovieLens example. After training, if you want to pass a new user to predict() along with same item_features used in training, what dimensions would then be appropriate for the new user_features matrix? A row of all 0s with the same number of columns as the user matrix used during training?
Thanks for the quick reply!
from tensorrec.
Ahh sorry I was unclear -- A TensorRec model does not know or care if it has seen the user in training unless the system is built with "Indicator Features". In the scenario you've outlined, the identity matrix for users is a set of indicator features, so all users will need to be present at fit() time.
The number of user/item features must be the same both at fit() and predict() time.
The counter-example would be the Book Crossing dataset with user_indicator and item_indicator set to False. In this case, the features are only metadata and the TensorRec model would not care if the user/item was present during training.
from tensorrec.
Related Issues (20)
- TFLite export - Input and output nodes HOT 3
- How to use tensorrec to do online serving?
- Error: Pack node (stack_24) axis attribute is out of bounds: 1 HOT 1
- Validation techniques HOT 1
- Trouble saving models HOT 2
- How to exclude user's liked items from the predictions? HOT 1
- Unexpected outcomes from custom prediction graph
- How can i get similar users?
- Tensorrec environment issues HOT 5
- Inferences' issue HOT 1
- How to make Tensorrec have stable results HOT 2
- Temporal dynamics
- Fix simple typo: predictiones -> predictions
- How to write kNN by TensorRec?
- Error on dimensionality HOT 1
- Error - tensorflow has no attribute`get_default_session()` HOT 3
- module 'tensorflow' has no attribute 'get_default_session' HOT 4
- About users Features matrix
- Performance issues in the program
- Question - install of tensorrec only once
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 tensorrec.