humaticslab / attentionbasedmultimodalrnn Goto Github PK
View Code? Open in Web Editor NEWAn unofficial Pytorch implementation of Attention based Multi-Modal New Product Sales Time-series Forecasting
License: MIT License
An unofficial Pytorch implementation of Attention based Multi-Modal New Product Sales Time-series Forecasting
License: MIT License
AttentionBasedMultiModalRNN/utils.py
Line 32 in 2138c05
when I run python train.py --data_folder dataset
Traceback (most recent call last):
File "train.py", line 85, in
train_dataset = CustomImageDataset(config.TRAIN_DATASET, dataset_path, transform=ds_trans)
File "AttentionBasedMultiModalRNN-main/utils.py", line 32, in init
self.color = [color_dict[x] for x in self.json_df['exact_color'].tolist()]
File "/usr/local/anaconda3/lib/python3.6/site-packages/pandas/core/frame.py", line 2906, in getitem
indexer = self.columns.get_loc(key)
File "/usr/local/anaconda3/lib/python3.6/site-packages/pandas/core/indexes/base.py", line 2900, in get_loc
raise KeyError(key) from err
KeyError: 'exact_color'
The 'exact_color' is not in the colums of train.csv or test.csv, should it be 'color' ?
Can you check your code again to make sure that it can run directly?
I encountered a lot of bugs when I ran this code.
Dear HumaticsLAB,
First of all, thanks for sharing your code.
I ran this model with all default parameters except instead of 12 weeks for 6 weeks and for model I chose "cross".
The WAPE I got is 53.46 while the WAPE in GTM paper for Cross model with Gtrend is 59.0.
I used your formula for WAPE in code. I highlighted the row in this picture
In the last four rows of this image, i got the same values by running models, only cross with Gtrend is different.
Could you please help me? I need to know how produce the same scores as you did for my comparison part as base-line models.
Bests,
Maryam
AttentionBasedMultiModalRNN/KNN.py
Line 207 in 74a5c9b
IndexError: tuple index out of range
there is 6 placeholder is the string, but 2 parameter are given.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.