junsu-cho / proxysr Goto Github PK
View Code? Open in Web Editor NEWProxySR (Unsupervised Proxy Selection for Session-based Recommender Systems, SIGIR'21)
ProxySR (Unsupervised Proxy Selection for Session-based Recommender Systems, SIGIR'21)
Could you provide code for next item recommendation with repetitive consumption?
Hi! I failed to run this model due to syntax errors (e.g. line 79 in main.py). Even though I have fixed these errors, the training still broke.
Do you know how to fix this?
Downloads/ProxySR-main/main.py:213: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).
target *= torch.tensor(valid).to(torch.long).to(device)
Traceback (most recent call last):
File "Downloads/ProxySR-main/main.py", line 239, in
main()
File "Downloads/ProxySR-main/main.py", line 88, in main
recalls, mrrs = validate(val_data, model, K, tau)
File "Downloads/ProxySR-main/main.py", line 214, in validate
distance = model(sess, length, tau, valid, train=False)
File "Downloads/ProxySR-main/venv/lib/python3.6/site-packages/torch/nn/modules/module.py", line 1102, in _call_impl
return forward_call(*input, **kwargs)
File "Downloads/ProxySR-main/model.py", line 127, in forward
return self.test_phase(batch_size, isValidSession, p_s, s_s_proj[:, -1, :], I_emb, v)
File "Downloads/ProxySR-main/model.py", line 151, in test_phase
if not isValidSession[i]: continue
RuntimeError: CUDA error: an illegal instruction was encountered
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1.
Could you provide code for next item recommendation with repetitive consumption?
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.