Git Product home page Git Product logo

Comments (9)

huangtinglin avatar huangtinglin commented on June 3, 2024

您好。这个bug我也不太确定呢,我并没遇到,您能分享下您的操作系统环境、Python版本之类的信息吗?

from knowledge_graph_based_intent_network.

Aristomd avatar Aristomd commented on June 3, 2024

我之前在window上遇到过,应该是操作系统的问题,windows系统多进程那里有问题,把多进程那里拆开写就好了,或者换到linux

from knowledge_graph_based_intent_network.

JbwFrank avatar JbwFrank commented on June 3, 2024

我之前在window上遇到过,应该是操作系统的问题,windows系统多进程那里有问题,把多进程那里拆开写就好了,或者换到linux

您好,我在windows上也遇到了这个问题,请问您具体是怎么操作的呢?

from knowledge_graph_based_intent_network.

changqingla avatar changqingla commented on June 3, 2024

用Linux系统就不会报错了

from knowledge_graph_based_intent_network.

QianGuYiDi avatar QianGuYiDi commented on June 3, 2024

我之前在window上遇到过,应该是操作系统的问题,windows系统多进程那里有问题,把多进程那里拆开写就好了,或者换到linux

您好,我在windows上也遇到了这个问题,请问您具体是怎么操作的呢?

我也遇到了同样的问题,想问您一下是怎么解决的,如何把多线程那里拆开写

from knowledge_graph_based_intent_network.

QianGuYiDi avatar QianGuYiDi commented on June 3, 2024

我之前在window上遇到过,应该是操作系统的问题,windows系统多进程那里有问题,把多进程那里拆开写就好了,或者换到linux

想问一下具体该怎样把多线程那里拆开写呢?

from knowledge_graph_based_intent_network.

QianGuYiDi avatar QianGuYiDi commented on June 3, 2024

您好,最近在学习该工作的代码,通过调用给出的命令行参数,训练过程中evaluate.py文件的test_one_user(x)函数,在“user_pos_test = test_user_set[u]”处报错“name 'test_user_set' is not defined”。调试了一段时间没有找到出错的原因,想请问一下您是否知道原因?

您好,您的问题解决了吗?是怎样解决的?

from knowledge_graph_based_intent_network.

Aristomd avatar Aristomd commented on June 3, 2024

from knowledge_graph_based_intent_network.

15715558546 avatar 15715558546 commented on June 3, 2024

def test_one_user(x):
# user u's ratings for user u
rating = x[0]
# uid
u = x[1]
# user u's items in the training set
try:
training_items = train_user_set[u]
except KeyError:
training_items = []
# user u's items in the test set
user_pos_test = test_user_set[u]
all_items = set(range(0, n_items))
test_items = list(all_items - set(training_items))
# Assuming ranklist_by_heapq and ranklist_by_sorted are available
# and Ks is a global variable or passed as a parameter
if args.test_flag == 'part':
r, auc = ranklist_by_heapq(user_pos_test, test_items, rating, Ks)
else:
r, auc = ranklist_by_sorted(user_pos_test, test_items, rating, Ks)
return get_performance(user_pos_test, r, auc, Ks)
168行改为:
batch_result = [test_one_user(x) for x in user_batch_rating_uid]

from knowledge_graph_based_intent_network.

Related Issues (20)

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.