bpr-torch's People
bpr-torch's Issues
运行
python main.py 没法运行啊 大佬求回复
代码运行有多进程的bug
我在window10平台,pycharm运行代码
出现
n_train=335351, n_test=84790, sparsity=0.00092 cuda:0 Train on 335351 samples, 168 steps per epoch epoch 0 15.64s train loss is [0.6923 = 0.6923 + 0.0000] multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "D:\Users\DBIS\Anaconda3\envs\DGNNRec\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "D:\Users\DBIS\Anaconda3\envs\DGNNRec\lib\multiprocessing\pool.py", line 44, in mapstar model.fit(learning_rate=0.001, batch_size=2000, epochs=50, verbose=5, early_stop=False) File "D:\projects\BPR-Torch\model\bpr.py", line 227, in fit result = self.test(batch_size=batch_size) File "D:\projects\BPR-Torch\model\bpr.py", line 276, in test batch_result = pool.map(test_one_user, user_batch_rating_uid) File "D:\Users\DBIS\Anaconda3\envs\DGNNRec\lib\multiprocessing\pool.py", line 266, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "D:\Users\DBIS\Anaconda3\envs\DGNNRec\lib\multiprocessing\pool.py", line 644, in get raise self._value AttributeError: 'int' object has no attribute 'n_items'
错误,请问如何解决?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.