Giter VIP home page Giter VIP logo

neural-decision-forests's People

Contributors

fubel avatar jingxil avatar mulx10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

neural-decision-forests's Issues

Missing requirements

There were some additional requirements not mentioned in the README (or a requirements file). That might be because of an assumption that the user has Anaconda instead of a vanilla pip environment. In any case, this also requires sklearn and scipy, which you don't get from merely pip installing pytorch.

'loss is NaN' problem

while updating pi with theta fixed, the result of new_pi in the first step is too large, using softmax to normalize new_pi will get output near to zero. And in next step wo get NAN new_pi

How to add non-linearity and set parameters to get good results?

As mentioned in the README file, 'By adding the nonlinearity in the routing function, the accuraries can reach 0.6502 and 0.9753 respectively on the UCI_Yeast and UCI_Letter'.

Actually, I have tried many settings but the accuracies are not that high. So could you tell me how to add non-linearity to get good results (e.g. yeast and letter)? Thank you very much!

Compatibility problem since PyTorch Update

Since PyTorch updated, 'volatile' no longer works in the newest version. Running the current code will result in CUDA memory error if 'volatile' was not changed into 'with torch.no_grad():'.

Error encountered when testing on adult dataset

Hi Jingxil, thanks for making this great repository public for everyone! I really appreciate your work here. And I firstly tried MNIST classification using the default setting, everything is perfect. Issues came when I tried UCI_Adult classification, like shown below:
WARNING: RUN WITHOUT GPU Use adult dataset Epoch 1 : Two Stage Learing - Update PI Traceback (most recent call last): File "train.py", line 217, in <module> main() File "train.py", line 213, in main train(model, optim, db, opt) File "train.py", line 124, in train target_batches.append(cls_onehot[target]) IndexError: tensors used as indices must be long, byte or bool tensors

The command I used is:
python train.py -dataset adult -n_class 14 -n_tree 80 -tree_depth 10 -batch_size 1000 -epochs 100
Please note that the n_class parameter is adjusted accordingly already.

Do you have any idea where I did things not correctly? Thanks!

Non-linearity in the routing function mentioned in readme file

The routing function is a running product of decisions where each decision is a value obtained by employing non-linearity (sigmoid) over f. As you have you mentioned in the readme file, "By adding the nonlinearity in the routing function, the accuraries can reach 0.6502 and 0.9753 respectively on the UCI_Yeast and UCI_Letter." The routing function is already a product of values obtained after non-linear operation. So, how and where to again implement this non-linearity?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.