Code Monkey home page Code Monkey logo

hft-cnn's People

Contributors

shimshim46 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

hft-cnn's Issues

cnn-hierarchy code error

when i run this mode, it throws the error that 'X_tst' 'Y_tst' not defined。 it should be 'x_tst' ,'y_tst' in cnn_train.py

Regarding implementation in long text

Hello,

I am trying to do hierarchical multi-label text categorization. Do you think the methodology in this paper can be implemented for long text as well? I have collection of news articles which are at average 700 words in length and which have upto 8 labels. Do you think the methodology included in this paper by changing certain hyper parameters could be implemented?

self.device=device

执行命令的时候报错,报错内容如下:
Traceback (most recent call last):
File "train.py", line 207, in
main()
File "train.py", line 166, in main
y_pred = train_problem(current_depth="flat", upper_depth=None, class_num=len(learning_categories), fine_tuning=fine_tuning, embedding_weight=embedding_weight, input_data=input_network_data, model_type=model_type, learning_categories=learning_categories)
File "train.py", line 40, in train_problem
network_output = cnn_train.main(params)
File "E:\▒▒▒▒▒\▒▒▒▒▒▒▒\▒▒▒ܹ▒▒▒\HFT-CNN-master\cnn_train.py", line 121, in main
updater = MyUpdater(train_iter, optimizer, params["output_dimensions"], device=params["gpu"])
File "E:\▒▒▒▒▒\▒▒▒▒▒▒▒\▒▒▒ܹ▒▒▒\HFT-CNN-master\MyUpdater.py", line 36, in init
self.device = device
AttributeError: can't set attribute

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.