문제

I am trying to extract a row from a Deedle Frame and convert it to a flat (1x4) DenseMatrix. All missing values have been dropped and the values in the Frame are numerical.

My code:

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

produces the error:

error FS0192: internal error: convMethodRef: could not bind to method

It is interesting to note that also:

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

produces the same error.

I have updated to 11.0.061030.00 (update 4) with .Net 4.5.50709, but still facing the same issue.

도움이 되었습니까?

해결책

Are you referencing Math.NET Numerics v2 or v3?

In v3 there is no DenseMatrix.ofSeq but instead DenseMatrix.ofColumnSeq and DenseMatrix.ofRowSeq.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top