0

我正在尝试从 Deedle 中提取一行Frame并将其转换为 flat (1x4) DenseMatrix。所有缺失值都已删除,并且 中的值Frame是数字。

我的代码:

let matrix =
    let curr = seq { yield frame.GetRowAt(10).As<float>() |> Series.values }
    DenseMatrix.ofSeq curr

产生错误:

错误 FS0192:内部错误:convMethodRef:无法绑定到方法

有趣的是还要注意:

let try2 =
    let mySeq = seq { yield seq { 1.0 .. 10.0} }
    DenseMatrix.ofSeq mySeq

产生相同的错误。

我已使用 .Net 4.5.50709 更新到 11.0.061030.00(更新 4),但仍然面临同样的问题。

4

1 回答 1

1

您引用的是 Math.NET Numerics v2 还是 v3?

在 v3 中,没有DenseMatrix.ofSeq但取而代之的是DenseMatrix.ofColumnSeqand DenseMatrix.ofRowSeq

于 2013-12-04T16:07:09.210 回答