Comments (9)
@grayicon oh, I think now I understand. I removed this line in this commit. Does it look good now?
Yes,It can work now, Thanks for your effort.
from rtdl.
Thank you for the report. Currently, the main branch contains significant amount of unfinished work not released to PyPI, so bugs are expected, and use it at your own risk.
P.S. The formatted version of the above bug report:
instead of this:
is_last_bin = bin_indices + 1 == torch.as_tensor(list(map(len, bin_edges)))
it should be this:
is_last_bin = bin_indices + 1 == torch.as_tensor(list(map(len, bin_edges))).unsqueeze(-1))
from rtdl.
@grayicon is it actually a bug?
bin_indices + 1
has the shape(n_objects, n_features)
as_tensor(list(map(len, bin_edges)))
has the shape(n_features,)
- According to broadcasting rules, the result
is_last_bin
has the shape(n_objects, n_features)
from rtdl.
Feel free to reopen the issue if needed.
from rtdl.
@grayicon is it actually a bug?
bin_indices + 1
has the shape(n_objects, n_features)
as_tensor(list(map(len, bin_edges)))
has the shape(n_features,)
- According to broadcasting rules, the result
is_last_bin
has the shape(n_objects, n_features)
The above desc is right in theory, but in fact i found the real bug lie in the line #590 of rtdl.data.py "bin_edges = torch.as_tensor(bin_ratios)", which cause the state "as_tensor(list(map(len, bin_edges)))" has the shape (n_objects,)
from rtdl.
So it seems to be the issue reported here, right?
from rtdl.
So it should be now resolved by 7929497
Please, let me know if the issue still there
from rtdl.
So it should be now resolved by 7929497
Please, let me know if the issue still there
The bin_egdes is a list of torch tensor, So it doesn't support the opera of 'torch.as_tensor'. Consequently, I just comment this line "bin_edges = torch.as_tensor(bin_ratios)", and it will works when call of "map(len, bin_edges) below".
from rtdl.
@grayicon oh, I think now I understand. I removed this line in this commit. Does it look good now?
from rtdl.
Related Issues (20)
- Code error, should be module_type and not str
- typos in CatEmbeddings
- wrong condition in _LVR_encoding
- LGBMRegressor on California Housing dataset is 0.68 >> 0.46 HOT 2
- embedding of categorical variables HOT 3
- Bugs in piecewise-linear encoding HOT 2
- Cannot link in the document of zero HOT 4
- Add additional validation when constructing PLE
- Regression results about the RTDL models. HOT 1
- How to resume training? HOT 3
- Typos? HOT 1
- rtdl example on dataset with categorical variables HOT 2
- How to get the probablity in each multiclass? HOT 1
- when to support torch 2? HOT 2
- How to get feature importance scores or attention heatmap HOT 2
- About piecewise_linear_encoding HOT 4
- Training fails (sometimes) when using several GPUs HOT 4
- VAE from microsoft
- Possibly wrong initialization in LinearEmbeddings HOT 2
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 rtdl.