dskg's People
Forkers
leiloong yorick76ee python-lzh baberryyoung wallon-ai songfgh 1780041410 wilson-zhang liupeng89 liuweiping2020 mrxianche shawnxiee windowzzhhuu dongwandou smallperks wangbq18 a2393439531 shengyp lironghuo respapercode damengde hapengzi grgau rorschach27 yuntianyt mdheller xrosliangdskg's Issues
MemoryError
when I load file from local and start gen filter mat,I came through this issue. Do I must use GPU to run this code? My computer is 64 bit and 8 G.
Error In handle_eval, 这是怎么回事,另外你的训练代码有分享的计划吗?
MemoryError Traceback (most recent call last)
in ()
2 for i in range(epoch, max_epoch):
3 if i % 20 == 0:
----> 4 handle_eval(i=i, last_mean_loss=last_mean_loss, valid=True, test=False)
5 last_mean_loss = model.train()
6 epoch += 1
in handle_eval(i, last_mean_loss, valid, test)
49 def handle_eval(i=0, last_mean_loss=1000, valid=True, test=False):
50 if valid:
---> 51 jfr, efr = joint_eval(test_data=valid_data, filter_mat=vfilter_mat, rev_rel=vrev_rel)
52 jrr, rr = joint_eval_raw(test_data=valid_data, filter_mat=vfilter_mat, rev_rel=vrev_rel)
53
in joint_eval(test_data, filter_mat, rev_rel)
12
13 ep = eval_entity_prediction(model, data=test_data, filter_mat=filter_mat, return_probs=True)
---> 14 efr = cal_r(ep, label, filter_mat)
15 if use_jeval:
16 rp = eval_relation_prediction(model, rev_rel_test_data, filter_mat=None, return_probs=True).T
in cal_r(probs, label, filter_mat)
1 def cal_r(probs, label, filter_mat):
----> 2 filter_probs = probs * filter_mat
3
4 filter_probs[range(len(label)), label] = probs[range(len(label)), label]
5 filter_ranks = cal_ranks(filter_probs, method='min', label=label)
MemoryError:
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.