in each reaction
LHS = np.array([[1,1,0,0], [0,0,1,0], [0,0,1,0]]) --> #three rows for 3 different reactions这将导致该反应的倾向函数(见下文) 前几天,当我遇到索引错误时,我问了一个问题:index 3 is out of bounds for axis 0</
请阅读:,我看过与这个问题相关的所有其他答案,没有一个能解决我的具体问题,所以请继续阅读下面的内容。
我有下面的代码。代码所做的基本工作是保留Title列,然后将其余的列连接到一个列中,以便能够创建余弦矩阵。主要问题是recommendations函数,它将输入一个标题,并根据该标题返回前10位匹配,但我最后得到的是index 0 is out of bounds for axis 0 with size0错误,我不知道为什么。# gettin the