使用JEP在j语言中运行python代码

2024-06-25 23:01:31 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用JEP在java中运行this python library。我使用以下代码向python发送参数。在

NDArray<int[]> r = new NDArray<>(twf, 1, twf.length);
    NDArray<int[]> d = new NDArray<>(ndpw, 1, ndpw.length);
    jep.set("r", r);
    jep.set("d", d);
    jep.set("gamma", gamma);
    jep.set("smooth_win", smooth_win);
    jep.set("s", s);
    jep.set("n", n);

最后我犯了这个错误。在

< class 'AttributeError' >: 'ImmutableDenseNDimArray' object has no attribute '_to_mpmath'

我寻找原因,但一无所获。 这个错误是什么意思?在

编辑:

{rday>在库的第^行使用。我想错误与那条线有关。在

这是图书馆里的一行:

^{pr2}$

Tags: new错误javathislengthwinintndarray