【问题标题】:Extract row from Deedle and convert to Matrix从 Deedle 中提取行并转换为矩阵
【发布时间】:2013-11-20 15:33:52
【问题描述】:

我正在尝试从 Deedle Frame 中提取一行并将其转换为平面 (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),但仍然面临同样的问题。

【问题讨论】:

  • 这看起来像是一个 F# 编译器错误 - 您使用的是哪个版本的 F# 或 Visual Studio?
  • @Tomas:感谢您的帮助。我在 VS12 v11.0.60610.01 更新 3; MS .Net 4.5.50709

标签: f# deedle math.net mathnet-numerics


【解决方案1】:

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

在 v3 中没有 DenseMatrix.ofSeq 而是 DenseMatrix.ofColumnSeqDenseMatrix.ofRowSeq

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-02-21
    • 2021-10-14
    • 2011-11-15
    • 2016-04-06
    相关资源
    最近更新 更多