GithubHelp home page GithubHelp logo

tulip-lab / open-code Goto Github PK

View Code? Open in Web Editor NEW
14.0 14.0 13.0 4.58 MB

Open Source Projects from TULIP Lab

License: GNU General Public License v3.0

Python 4.11% MATLAB 2.55% Objective-C 0.04% R 2.41% HTML 0.08% CSS 0.05% C 82.98% C++ 1.75% Jupyter Notebook 5.93% Shell 0.10%

open-code's People

Contributors

chriszhangpodo avatar tuliplab avatar xhan97 avatar zhuye88 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

open-code's Issues

Issue in DLM.py and also a question

Hi, I opened this issue because executing Eval.py gives me the following error:

Traceback (most recent call last):
File "Eval.py", line 117, in
valuelist = walk_forward(train_X,train_Y,test_X, test_Y,grid_search,scaler)
File "Eval.py", line 30, in walk_forward
model = build_model(history_x,history_y,lstm_unit=x[0],drop_rate=x[1],dense_unit=x[2],batch_size=x[3],epochs=x[4])
File "/mnt/c/Users/User/Desktop/UniUD/LabAI/open-code-master/DLM/DLM.py", line 45, in build_model
dense_unit)
File "/mnt/c/Users/User/Desktop/UniUD/LabAI/open-code-master/DLM/DLM.py", line 27, in model_attention_applied_before_lstm
attention_mul = attention_block(inputs,TIME_STEPS,INPUT_DIM)
File "/mnt/c/Users/User/Desktop/UniUD/LabAI/open-code-master/DLM/DLM.py", line 21, in attention_block
output_attention_mul = merge([inputs, a_probs], name='attention_mul', mode='mul')
TypeError: 'module' object is not callable

Upon a closer code inspection I figured out what the problem was:
line 21 of DLM.py

output_attention_mul = merge([inputs, a_probs], name='attention_mul', mode='mul')

constains merge, a layer not implemented in more recent versions of Keras.

I tried changing that line to

output_attention_mul = Multiply()([inputs, a_probs])

and now the code seems to work. Could you please confirm whether my fix is valid or not?

I also have a question concerning Setting.py: since I'm trying to recreate the results of your paper "Tourism demand forecasting - A deep learning approach" can I please know which were the actual settings used to get the values in the tables 2,3,4 and 6,7,8 or the article?

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.