Comments (8)
It's meant to be a preprocessor. You are correct about it doesn't fit the whole network and so isn't as supervised as it could be. There are plenty of pre-trained networks that stop at this point and can be plugged into a larger network model. step_embed
(name changed) does this but let's you use it as an input for any type of model.
from embed.
Word2vec and similar can only stop there because there's both an enormous amount of data and significant earlier pre-processing (e.g. skip-gram tokenizing, matrix decomp, etc.). Have you had any luck with this technique for any tasks beyond word embeddings, or seen others do so? I notice the vignette stops short of evaluating improvement in the task itself.
I'm worried the description/explanation is a bit misleading, because it seems to suggest this step learns embeddings like in Guo/Berkhahn. That's certainly what I thought (and was so excited about!) before I looked at the code, and I've had to warn a couple others who had the same initial interpretation. I see now that paper is referenced in the README and vignette but not the function doc; perhaps removing it altogether would avoid this confusion?
from embed.
There's a step that allows for other predictors in the network. Let me know if you have any thoughts in this.
from embed.
@topepo step_embed2
is looking better!
if I'm reading this correctly, as in the linked blogpost this makes a separate input/embed layer for each categorical in ...
, but forces each of them to have the same output dimension (num_terms
)? One number is probably a good default but it would be nice to vary the output dimension on a per-categorical basis (vector input). If you have store_id
s (high cardinality) and store_type
s (much lower cardinality), you probably don't want them to have the same output size.
Now is probably not the right time, but it could also be neat to do a heuristic default for the output dimension; the most up-to-date exposition of deep categorical embeddings I know of is lesson 3 of fast.ai (https://github.com/fastai/fastai/blob/master/courses/dl1/lesson3-rossman.ipynb), which uses min(50, (c + 1)/2)
as the output dimension where c
is the number of categories present for that input.
from embed.
One number is probably a good default but it would be nice to vary the output dimension on a per-categorical basis
Sure. I'll do that in the next version though (unless you want to put in a PR). I've got to get a working version out soon.
do a heuristic default for the output dimension
I've seen that and it does seen reasonable. I'm all for reasonable defaults but I'd rather add a small number and make a note about that in the docs.
I'll give it a few days for others to take a look at and then replace the current step_embed
with this version.
from embed.
@topepo I'd be happy to make a PR for that, but I won't have time to start until mid next-week, so please don't wait around for me!
from embed.
Closed due to inactivity
from embed.
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.
from embed.
Related Issues (20)
- Cannot `update()` a tuneable `step_umap()` HOT 2
- Create groupings in the reference of pkgdown HOT 1
- Poisson models fail for likelihood encodings HOT 2
- Release embed 0.2.0 HOT 1
- FR: For each of the UMAP clusters, information/ID on values (from which columns) assigned to which UMAP clusters would be nice HOT 6
- step_umap crashing Rstudio HOT 18
- catboost method to embed categorical variables HOT 11
- Release embed 1.0.0 HOT 1
- step_woe errors uninformatively if outcome isn't a factor HOT 2
- Allow step_collapse_stringdist to accept different distance methods HOT 2
- Metrice argument for step_umap function HOT 2
- Custom metric for step_umap HOT 2
- Upkeep for embed HOT 1
- remove tidyr_new_interface() check HOT 1
- Test that all tunable.step_*() are specified correctly HOT 1
- Use rlang errors HOT 1
- step_embed() should have `keep_original_cols` argument HOT 1
- Release embed 1.1.0 HOT 1
- Add missing infrastructure tests HOT 1
- Release embed 1.1.1 HOT 1
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 embed.